Class SyntheticWorkflowRunnerImpl
- java.lang.Object
-
- com.adobe.acs.commons.workflow.bulk.execution.impl.runners.AbstractWorkflowRunner
-
- com.adobe.acs.commons.workflow.bulk.execution.impl.runners.SyntheticWorkflowRunnerImpl
-
- All Implemented Interfaces:
BulkWorkflowRunner
@Service public class SyntheticWorkflowRunnerImpl 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 SyntheticWorkflowRunnerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomplete(Workspace workspace, Payload payload)Marks a payload as being completed.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)voidrun(Workspace workspace, Payload payload)Processes a payload under the Workspace.-
Methods inherited from class com.adobe.acs.commons.workflow.bulk.execution.impl.runners.AbstractWorkflowRunner
complete, fail, initialize, initialize, start, stop, stop, stopping, stopWithError
-
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, initialize, start, stop, stop, stopping, stopWithError
-
-
-
-
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;
-
forceTerminate
public void forceTerminate(Workspace workspace, Payload payload) throws org.apache.sling.api.resource.PersistenceException
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:
org.apache.sling.api.resource.PersistenceException
-
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
-
-