Class ReplayJobStatus

  • All Implemented Interfaces:
    org.xwiki.job.event.status.CancelableJobStatus, org.xwiki.job.event.status.JobStatus

    public class ReplayJobStatus
    extends org.xwiki.job.DefaultJobStatus<ReplayRequest>
    The status of the job that replays records from the extension job history.
    Since:
    7.1RC1
    Version:
    $Id: 02e2405afd9613360a8df1615042556ee9233649 $
    • Constructor Detail

      • ReplayJobStatus

        public ReplayJobStatus​(ReplayRequest request,
                               ObservationManager observationManager,
                               LoggerManager loggerManager)
        Creates a new job status.
        Parameters:
        request - the request provided when the job was started
        observationManager - the observation manager
        loggerManager - the logger manager
    • Method Detail

      • getCurrentRecordNumber

        public int getCurrentRecordNumber()
        Returns:
        the number of the history record that is currently being replayed
      • setCurrentRecordNumber

        public void setCurrentRecordNumber​(int currentRecordNumber)
        Sets the number of the history record that is currently being replayed.
        Parameters:
        currentRecordNumber - the current record number
      • getCurrentRecord

        public ExtensionJobHistoryRecord getCurrentRecord()
        Returns:
        the record that is currently being replayed