Package com.xwiki.admintools.jobs
Class HealthCheckJobStatus
- java.lang.Object
-
- org.xwiki.job.AbstractJobStatus<R>
-
- org.xwiki.job.DefaultJobStatus<HealthCheckJobRequest>
-
- com.xwiki.admintools.jobs.HealthCheckJobStatus
-
- All Implemented Interfaces:
org.xwiki.job.event.status.CancelableJobStatus,org.xwiki.job.event.status.JobStatus
@Unstable public class HealthCheckJobStatus extends org.xwiki.job.DefaultJobStatus<HealthCheckJobRequest>
The status of the health check job.- Since:
- 1.0
- Version:
- $Id$
-
-
Constructor Summary
Constructors Constructor Description HealthCheckJobStatus(String jobType, HealthCheckJobRequest request, org.xwiki.observation.ObservationManager observationManager, org.xwiki.logging.LoggerManager loggerManager)Create a new health check job status.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<JobResult>getJobResults()Get the list issues list from the job.booleanhasLevel(JobResultLevel level)Check if any job result has a specific level of severity.-
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
-
HealthCheckJobStatus
public HealthCheckJobStatus(String jobType, HealthCheckJobRequest request, org.xwiki.observation.ObservationManager observationManager, org.xwiki.logging.LoggerManager loggerManager)
Create a new health check job status.- Parameters:
jobType- the job typerequest- the request provided when the job was startedobservationManager- the observation managerloggerManager- the logger manager
-
-
Method Detail
-
getJobResults
public List<JobResult> getJobResults()
Get the list issues list from the job.- Returns:
- list with
JobResultcontaining errors.
-
hasLevel
public boolean hasLevel(JobResultLevel level)
Check if any job result has a specific level of severity.- Parameters:
level- represents the searched level of severity.- Returns:
trueif there is any match for the given level, orfalseotherwise.
-
-