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
  • Constructor Details

    • FastActionManagerRunnerImpl

      public FastActionManagerRunnerImpl()
  • Method Details

    • getRunnable

      public final Runnable getRunnable(Config config)
      Specified by:
      getRunnable in interface BulkWorkflowRunner
      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: BulkWorkflowRunner
      If 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:
      getOptions in interface BulkWorkflowRunner
      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: AbstractWorkflowRunner
      Collects and initializes the Workspace JCR structure with the payload nodes.
      Specified by:
      initialize in interface BulkWorkflowRunner
      Overrides:
      initialize in class AbstractWorkflowRunner
      Parameters:
      queryHelper - the QueryHelper
      config - the Config
      Throws:
      org.apache.sling.api.resource.PersistenceException
      javax.jcr.RepositoryException
    • start

      public void start(Workspace workspace) throws org.apache.sling.api.resource.PersistenceException
      Description copied from interface: BulkWorkflowRunner
      Starts work on the Workspace.
      Specified by:
      start in interface BulkWorkflowRunner
      Overrides:
      start in class AbstractWorkflowRunner
      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: BulkWorkflowRunner
      Used to request stop of a Workspace however workspace may still continue to run in order to allow active payloads to complete.
      Specified by:
      stopping in interface BulkWorkflowRunner
      Overrides:
      stopping in class AbstractWorkflowRunner
      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: BulkWorkflowRunner
      Stops (or pauses) work in the Workspace.
      Specified by:
      stop in interface BulkWorkflowRunner
      Overrides:
      stop in class AbstractWorkflowRunner
      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: BulkWorkflowRunner
      Stops (or pauses) work in the Workspace.
      Specified by:
      stop in interface BulkWorkflowRunner
      Overrides:
      stop in class AbstractWorkflowRunner
      Parameters:
      workspace - the Workspace
      subStatus - 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: BulkWorkflowRunner
      Stops (or pauses) work in the Workspace due to Error.
      Specified by:
      stopWithError in interface BulkWorkflowRunner
      Overrides:
      stopWithError in class AbstractWorkflowRunner
      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.PersistenceException
      javax.jcr.RepositoryException
    • complete

      public void complete(Workspace workspace, Payload payload) throws Exception
      Description copied from interface: BulkWorkflowRunner
      Marks a payload as being completed.
      Specified by:
      complete in interface BulkWorkflowRunner
      Overrides:
      complete in class AbstractWorkflowRunner
      Parameters:
      workspace - the Workspace
      payload - the completed Payload
      Throws:
      Exception
    • run

      public void run(Workspace workspace, Payload payload)
      Description copied from interface: BulkWorkflowRunner
      Processes a payload under the Workspace.
      Specified by:
      run in interface BulkWorkflowRunner
      Overrides:
      run in class AbstractWorkflowRunner
      Parameters:
      workspace - the Workspace
      payload - the Payload to process
    • forceTerminate

      public void forceTerminate(Workspace workspace, Payload payload) throws Exception
      Description copied from interface: BulkWorkflowRunner
      Marks a payload being force terminated.
      Specified by:
      forceTerminate in interface BulkWorkflowRunner
      Specified by:
      forceTerminate in class AbstractWorkflowRunner
      Parameters:
      workspace - the Workspace
      payload - the completed Payload
      Throws:
      Exception