@Service public class FastActionManagerRunnerImpl extends AbstractWorkflowRunner implements BulkWorkflowRunner
AUTH_INFO, SERVICE_NAME| Constructor and Description |
|---|
FastActionManagerRunnerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
complete(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String workspacePath,
ActionManager manager,
int success) |
void |
complete(Workspace workspace,
Payload payload)
Marks a payload as being completed.
|
void |
forceTerminate(Workspace workspace,
Payload payload)
Marks a payload being force terminated.
|
org.apache.sling.commons.scheduler.ScheduleOptions |
getOptions(Config config)
If a non-null value is returned, the result of run(..) will be scheduled to run w these options.
|
Runnable |
getRunnable(Config config) |
void |
initialize(QueryHelper queryHelper,
Config config)
Collects and initializes the Workspace JCR structure with the payload nodes.
|
void |
run(Workspace workspace,
Payload payload)
Processes a payload under the Workspace.
|
void |
start(Workspace workspace)
Starts work on the Workspace.
|
void |
stop(Workspace workspace)
Stops (or pauses) work in the Workspace.
|
void |
stop(Workspace workspace,
SubStatus subStatus)
Stops (or pauses) work in the Workspace.
|
void |
stopping(Workspace workspace)
Used to request stop of a Workspace however workspace may still continue to run in order to allow active payloads to complete.
|
void |
stopWithError(Workspace workspace)
Stops (or pauses) work in the Workspace due to Error.
|
complete, fail, initializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomplete, initializepublic final Runnable getRunnable(Config config)
getRunnable in interface BulkWorkflowRunnerconfig - the Configpublic org.apache.sling.commons.scheduler.ScheduleOptions getOptions(Config config)
BulkWorkflowRunnergetOptions in interface BulkWorkflowRunnerconfig - the Configpublic void initialize(QueryHelper queryHelper, Config config) throws org.apache.sling.api.resource.PersistenceException, javax.jcr.RepositoryException
AbstractWorkflowRunnerinitialize in interface BulkWorkflowRunnerinitialize in class AbstractWorkflowRunnerqueryHelper - the QueryHelperconfig - the Configorg.apache.sling.api.resource.PersistenceExceptionjavax.jcr.RepositoryExceptionpublic void start(Workspace workspace) throws org.apache.sling.api.resource.PersistenceException
BulkWorkflowRunnerstart in interface BulkWorkflowRunnerstart in class AbstractWorkflowRunnerworkspace - the Workspaceorg.apache.sling.api.resource.PersistenceExceptionpublic void stopping(Workspace workspace) throws org.apache.sling.api.resource.PersistenceException
BulkWorkflowRunnerstopping in interface BulkWorkflowRunnerstopping in class AbstractWorkflowRunnerworkspace - the Workspaceorg.apache.sling.api.resource.PersistenceExceptionpublic void stop(Workspace workspace) throws org.apache.sling.api.resource.PersistenceException
BulkWorkflowRunnerstop in interface BulkWorkflowRunnerstop in class AbstractWorkflowRunnerworkspace - the Workspaceorg.apache.sling.api.resource.PersistenceExceptionpublic void stop(Workspace workspace, SubStatus subStatus) throws org.apache.sling.api.resource.PersistenceException
BulkWorkflowRunnerstop in interface BulkWorkflowRunnerstop in class AbstractWorkflowRunnerworkspace - the WorkspacesubStatus - SubStatus used to identify cause of stopping for corner casesorg.apache.sling.api.resource.PersistenceExceptionpublic void stopWithError(Workspace workspace) throws org.apache.sling.api.resource.PersistenceException
BulkWorkflowRunnerstopWithError in interface BulkWorkflowRunnerstopWithError in class AbstractWorkflowRunnerworkspace - the Workspaceorg.apache.sling.api.resource.PersistenceExceptionpublic 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
org.apache.sling.api.resource.PersistenceExceptionjavax.jcr.RepositoryExceptionpublic void complete(Workspace workspace, Payload payload) throws Exception
BulkWorkflowRunnercomplete in interface BulkWorkflowRunnercomplete in class AbstractWorkflowRunnerworkspace - the Workspacepayload - the completed PayloadExceptionpublic void run(Workspace workspace, Payload payload)
BulkWorkflowRunnerrun in interface BulkWorkflowRunnerrun in class AbstractWorkflowRunnerworkspace - the Workspacepayload - the Payload to processpublic void forceTerminate(Workspace workspace, Payload payload) throws Exception
BulkWorkflowRunnerforceTerminate in interface BulkWorkflowRunnerforceTerminate in class AbstractWorkflowRunnerworkspace - the Workspacepayload - the completed PayloadExceptionCopyright © 2013–2020 Adobe. All rights reserved.