Class MCRJobAction

java.lang.Object
org.mycore.services.queuedjob.MCRJobAction
Direct Known Subclasses:
MCRPackerJobAction, MCRPDFThumbnailJobAction, MCRPIRegisterJobAction

public abstract class MCRJobAction extends Object
MCRJobAction must be extended to do some work for given MCRJob.
Author:
René Adler
  • Field Details

  • Constructor Details

    • MCRJobAction

      public MCRJobAction()
      The constructor of the job action.
    • MCRJobAction

      public MCRJobAction(MCRJob job)
      The constructor of the job action with specific MCRJob.
  • Method Details

    • isActivated

      public abstract boolean isActivated()
      Returns if this action is activated.
      Returns:
      true if activated, false if isn't
    • name

      public abstract String name()
      Returns the name of the action.
      Returns:
      the name
    • execute

      public abstract void execute() throws ExecutionException
      Does the work for given MCRJob.
      Throws:
      ExecutionException
    • rollback

      public abstract void rollback()
      When errors occurs during executing it can be necessary to rollback performed actions