Class ScheduledJobStatus
- java.lang.Object
-
- com.atlassian.confluence.schedule.ScheduledJobStatus
-
- All Implemented Interfaces:
Serializable
public class ScheduledJobStatus extends Object implements Serializable
This class contains the transient runtime state of a single job.This class is thread-safe (and needs to be).
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_HISTORY
-
Constructor Summary
Constructors Constructor Description ScheduledJobStatus(com.atlassian.scheduler.config.JobId jobId, List<ScheduledJobHistory> existingHistory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHistory(ScheduledJobHistory newHistory)
long
getAverageRunningTime()
List<ScheduledJobHistory>
getHistory()
com.atlassian.scheduler.config.JobId
getJobId()
Date
getLastExecution()
Date
getNextExecution()
ExecutionStatus
getStatus()
boolean
isDisabled()
boolean
isEnabled()
boolean
isManuallyRunnable()
void
setNextExecution(Date nextExecution)
void
setStatus(ExecutionStatus status)
-
-
-
Field Detail
-
MAX_HISTORY
public static final int MAX_HISTORY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ScheduledJobStatus
public ScheduledJobStatus(com.atlassian.scheduler.config.JobId jobId, List<ScheduledJobHistory> existingHistory)
-
-
Method Detail
-
getJobId
public com.atlassian.scheduler.config.JobId getJobId()
-
getHistory
public List<ScheduledJobHistory> getHistory()
-
addHistory
public void addHistory(ScheduledJobHistory newHistory)
-
getStatus
public ExecutionStatus getStatus()
-
setStatus
public void setStatus(ExecutionStatus status)
-
getLastExecution
public Date getLastExecution()
-
getNextExecution
public Date getNextExecution()
-
setNextExecution
public void setNextExecution(Date nextExecution)
-
getAverageRunningTime
public long getAverageRunningTime()
-
isEnabled
public boolean isEnabled()
-
isDisabled
public boolean isDisabled()
-
isManuallyRunnable
public boolean isManuallyRunnable()
-
-