com.atlassian.confluence.schedule
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScheduledJobStatus
public ScheduledJobStatus(ScheduledJobKey scheduledJobKey,
List<ScheduledJobHistory> existingHistory)
getKey
public ScheduledJobKey getKey()
getGroup
public String getGroup()
getJobId
public String 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()