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 Constructor Description FastActionManagerRunnerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomplete(Workspace workspace, Payload payload)Marks 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.RunnablegetRunnable(Config config)voidinitialize(QueryHelper queryHelper, Config config)Collects and initializes the Workspace JCR structure with the payload nodes.voidrun(Workspace workspace, Payload payload)Processes a payload under the Workspace.voidstart(Workspace workspace)Starts work on the Workspace.voidstop(Workspace workspace)Stops (or pauses) work in the Workspace.voidstop(Workspace workspace, SubStatus subStatus)Stops (or pauses) work in the Workspace.voidstopping(Workspace workspace)Used 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, initialize
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adobe.acs.commons.workflow.bulk.execution.BulkWorkflowRunner
complete, initialize
-
-
-
-
Method Detail
-
getRunnable
public final Runnable getRunnable(Config config)
- Specified by:
getRunnablein interfaceBulkWorkflowRunner- Parameters:
config- the Config- Returns:
- the runnable object that will be used to perform the work.
-
getOptions
public org.apache.sling.commons.scheduler.ScheduleOptions getOptions(Config config)
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
public void start(Workspace workspace) throws org.apache.sling.api.resource.PersistenceException
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
public void stopping(Workspace workspace) throws org.apache.sling.api.resource.PersistenceException
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
public void stop(Workspace workspace) 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 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
public void complete(Workspace workspace, Payload payload) throws Exception
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
public void run(Workspace workspace, Payload payload)
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
public void forceTerminate(Workspace workspace, Payload payload) throws Exception
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
-
-