Class EntityJobStatus<T extends EntityRequest>

  • Type Parameters:
    T - the request type
    All Implemented Interfaces:
    org.xwiki.job.event.status.CancelableJobStatus, org.xwiki.job.event.status.JobStatus

    public class EntityJobStatus<T extends EntityRequest>
    extends org.xwiki.job.DefaultJobStatus<T>
    Generic job status for a job that performs an EntityRequest.
    Since:
    7.2M1
    Version:
    $Id: 65fee7a71387516ecf2ab8025fb13f1e53d6d91f $
    • 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
      EntityJobStatus​(String jobType, T request, org.xwiki.observation.ObservationManager observationManager, org.xwiki.logging.LoggerManager loggerManager, org.xwiki.job.event.status.JobStatus parentJobStatus)
      Creates a new instance.
      EntityJobStatus​(T request, org.xwiki.observation.ObservationManager observationManager, org.xwiki.logging.LoggerManager loggerManager, org.xwiki.job.event.status.JobStatus parentJobStatus)
    • Method Summary

      • 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

      • EntityJobStatus

        public EntityJobStatus​(T request,
                               org.xwiki.observation.ObservationManager observationManager,
                               org.xwiki.logging.LoggerManager loggerManager,
                               org.xwiki.job.event.status.JobStatus parentJobStatus)
        Creates a new instance.
        Parameters:
        request - the request provided when the job was started
        observationManager - the observation manager
        loggerManager - the logger manager
        parentJobStatus - the status of the parent job, or null if this job doesn't have a parent
      • EntityJobStatus

        public EntityJobStatus​(String jobType,
                               T request,
                               org.xwiki.observation.ObservationManager observationManager,
                               org.xwiki.logging.LoggerManager loggerManager,
                               org.xwiki.job.event.status.JobStatus parentJobStatus)
        Creates a new instance.
        Parameters:
        jobType - the type of the job
        request - the request provided when the job was started
        observationManager - the observation manager
        loggerManager - the logger manager
        parentJobStatus - the status of the parent job, or null if this job doesn't have a parent