Class FastActionManagerRunnerImpl

    • Constructor Detail

      • FastActionManagerRunnerImpl

        public FastActionManagerRunnerImpl()
    • Method Detail

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