Class FastActionManagerRunnerImpl
java.lang.Object
com.adobe.acs.commons.workflow.bulk.execution.impl.runners.AbstractWorkflowRunner
com.adobe.acs.commons.workflow.bulk.execution.impl.runners.FastActionManagerRunnerImpl
- All Implemented Interfaces:
BulkWorkflowRunner
@Service
public class FastActionManagerRunnerImpl
extends AbstractWorkflowRunner
implements BulkWorkflowRunner
-
Field Summary
Fields inherited from class com.adobe.acs.commons.workflow.bulk.execution.impl.runners.AbstractWorkflowRunner
AUTH_INFO, SERVICE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMarks a payload as being completed.voidcomplete(org.apache.sling.api.resource.ResourceResolver resourceResolver, String workspacePath, ActionManager manager, int success) voidforceTerminate(Workspace workspace, Payload payload) Marks a payload being force terminated.org.apache.sling.commons.scheduler.ScheduleOptionsgetOptions(Config config) If a non-null value is returned, the result of run(..) will be scheduled to run w these options.final RunnablegetRunnable(Config config) voidinitialize(QueryHelper queryHelper, Config config) Collects and initializes the Workspace JCR structure with the payload nodes.voidProcesses a payload under the Workspace.voidStarts work on the Workspace.voidStops (or pauses) work in the Workspace.voidStops (or pauses) work in the Workspace.voidUsed to request stop of a Workspace however workspace may still continue to run in order to allow active payloads to complete.voidstopWithError(Workspace workspace) Stops (or pauses) work in the Workspace due to Error.Methods inherited from class com.adobe.acs.commons.workflow.bulk.execution.impl.runners.AbstractWorkflowRunner
complete, fail, initializeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.adobe.acs.commons.workflow.bulk.execution.BulkWorkflowRunner
complete, initialize
-
Constructor Details
-
FastActionManagerRunnerImpl
public FastActionManagerRunnerImpl()
-
-
Method Details
-
getRunnable
- Specified by:
getRunnablein interfaceBulkWorkflowRunner- Parameters:
config- the Config- Returns:
- the runnable object that will be used to perform the work.
-
getOptions
Description copied from interface:BulkWorkflowRunnerIf a non-null value is returned, the result of run(..) will be scheduled to run w these options. If null the job will be immediately run in the same thread.- Specified by:
getOptionsin interfaceBulkWorkflowRunner- Parameters:
config- the Config- Returns:
- The Sling Scheduler options or null;
-
initialize
public void initialize(QueryHelper queryHelper, Config config) throws org.apache.sling.api.resource.PersistenceException, javax.jcr.RepositoryException Description copied from class:AbstractWorkflowRunnerCollects and initializes the Workspace JCR structure with the payload nodes.- Specified by:
initializein interfaceBulkWorkflowRunner- Overrides:
initializein classAbstractWorkflowRunner- Parameters:
queryHelper- the QueryHelperconfig- the Config- Throws:
org.apache.sling.api.resource.PersistenceExceptionjavax.jcr.RepositoryException
-
start
Description copied from interface:BulkWorkflowRunnerStarts work on the Workspace.- Specified by:
startin interfaceBulkWorkflowRunner- Overrides:
startin classAbstractWorkflowRunner- Parameters:
workspace- the Workspace- Throws:
org.apache.sling.api.resource.PersistenceException
-
stopping
Description copied from interface:BulkWorkflowRunnerUsed to request stop of a Workspace however workspace may still continue to run in order to allow active payloads to complete.- Specified by:
stoppingin interfaceBulkWorkflowRunner- Overrides:
stoppingin classAbstractWorkflowRunner- Parameters:
workspace- the Workspace- Throws:
org.apache.sling.api.resource.PersistenceException
-
stop
Description copied from interface:BulkWorkflowRunnerStops (or pauses) work in the Workspace.- Specified by:
stopin interfaceBulkWorkflowRunner- Overrides:
stopin classAbstractWorkflowRunner- Parameters:
workspace- the Workspace- Throws:
org.apache.sling.api.resource.PersistenceException
-
stop
public void stop(Workspace workspace, SubStatus subStatus) throws org.apache.sling.api.resource.PersistenceException Description copied from interface:BulkWorkflowRunnerStops (or pauses) work in the Workspace.- Specified by:
stopin interfaceBulkWorkflowRunner- Overrides:
stopin classAbstractWorkflowRunner- Parameters:
workspace- the WorkspacesubStatus- SubStatus used to identify cause of stopping for corner cases- Throws:
org.apache.sling.api.resource.PersistenceException
-
stopWithError
public void stopWithError(Workspace workspace) throws org.apache.sling.api.resource.PersistenceException Description copied from interface:BulkWorkflowRunnerStops (or pauses) work in the Workspace due to Error.- Specified by:
stopWithErrorin interfaceBulkWorkflowRunner- Overrides:
stopWithErrorin classAbstractWorkflowRunner- Parameters:
workspace- the Workspace- Throws:
org.apache.sling.api.resource.PersistenceException
-
complete
public void complete(org.apache.sling.api.resource.ResourceResolver resourceResolver, String workspacePath, ActionManager manager, int success) throws org.apache.sling.api.resource.PersistenceException, javax.jcr.RepositoryException - Throws:
org.apache.sling.api.resource.PersistenceExceptionjavax.jcr.RepositoryException
-
complete
Description copied from interface:BulkWorkflowRunnerMarks a payload as being completed.- Specified by:
completein interfaceBulkWorkflowRunner- Overrides:
completein classAbstractWorkflowRunner- Parameters:
workspace- the Workspacepayload- the completed Payload- Throws:
Exception
-
run
Description copied from interface:BulkWorkflowRunnerProcesses a payload under the Workspace.- Specified by:
runin interfaceBulkWorkflowRunner- Overrides:
runin classAbstractWorkflowRunner- Parameters:
workspace- the Workspacepayload- the Payload to process
-
forceTerminate
Description copied from interface:BulkWorkflowRunnerMarks a payload being force terminated.- Specified by:
forceTerminatein interfaceBulkWorkflowRunner- Specified by:
forceTerminatein classAbstractWorkflowRunner- Parameters:
workspace- the Workspacepayload- the completed Payload- Throws:
Exception
-