Package org.xwiki.extension.job.history
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 $
-
-
Constructor Summary
Constructors Constructor Description ReplayJobStatus(ReplayRequest request, ObservationManager observationManager, LoggerManager loggerManager)
Creates a new job status.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtensionJobHistoryRecord
getCurrentRecord()
int
getCurrentRecordNumber()
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, setStartDate, setState, startListening, stopListening
-
-
-
-
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 startedobservationManager
- the observation managerloggerManager
- 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
-
-