Class ReplayJobStatus

java.lang.Object
org.xwiki.job.AbstractJobStatus<R>
org.xwiki.job.DefaultJobStatus<ReplayRequest>
org.xwiki.extension.job.history.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 $
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.xwiki.job.event.status.JobStatus

    org.xwiki.job.event.status.JobStatus.State
  • Constructor Summary

    Constructors
    Constructor
    Description
    ReplayJobStatus(ReplayRequest request, ObservationManager observationManager, LoggerManager loggerManager)
    Creates a new job status.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    int
     
    void
    setCurrentRecordNumber(int currentRecordNumber)
    Sets the number of the history record that is currently being replayed.

    Methods inherited from class org.xwiki.job.AbstractJobStatus

    answered, ask, ask, cancel, getEndDate, getError, getJobType, getLog, getLog, getLoggerTail, getLogTail, getParentJobStatus, getProgress, getQuestion, getQuestionTimeLeft, getRequest, getStartDate, getState, ignoreLogs, isCancelable, isCanceled, isIsolated, isSerialized, isSubJob, setCancelable, setEndDate, setError, setIsolated, setLoggerTail, setParentJobStatus, setStartDate, setState, startListening, stopListening

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

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

    • 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