Package org.mycore.services.packaging
Class MCRPackerJobAction
java.lang.Object
org.mycore.services.queuedjob.MCRJobAction
org.mycore.services.packaging.MCRPackerJobAction
Used to run a
MCRPacker
inside a MCRJobQueue
- Author:
- Sebastian Hofmann (mcrshofm)
-
Field Summary
Fields inherited from class org.mycore.services.queuedjob.MCRJobAction
job
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
execute()
Does the work for givenMCRJob
.getConfiguration
(String packerId) final boolean
Returns if this action is activated.name()
Returns the name of the action.void
rollback()
When errors occurs during executing it can be necessary to rollback performed actions
-
Constructor Details
-
MCRPackerJobAction
public MCRPackerJobAction() -
MCRPackerJobAction
-
-
Method Details
-
isActivated
public final boolean isActivated()Description copied from class:MCRJobAction
Returns if this action is activated.- Specified by:
isActivated
in classMCRJobAction
- Returns:
true
if activated,false
if isn't
-
name
Description copied from class:MCRJobAction
Returns the name of the action.- Specified by:
name
in classMCRJobAction
- Returns:
- the name
-
getPackerInstance
-
execute
Description copied from class:MCRJobAction
Does the work for givenMCRJob
.- Specified by:
execute
in classMCRJobAction
- Throws:
ExecutionException
-
getParameters
-
getConfiguration
-
rollback
public void rollback()Description copied from class:MCRJobAction
When errors occurs during executing it can be necessary to rollback performed actions- Specified by:
rollback
in classMCRJobAction
-