public class ScheduledJobStatus extends Object implements Serializable
This class is thread-safe (and needs to be).
Modifier and Type | Field and Description |
---|---|
static int |
MAX_HISTORY |
Constructor and Description |
---|
ScheduledJobStatus(ScheduledJobKey scheduledJobKey,
List<ScheduledJobHistory> existingHistory) |
Modifier and Type | Method and Description |
---|---|
void |
addHistory(ScheduledJobHistory newHistory) |
long |
getAverageRunningTime() |
String |
getGroup() |
List<ScheduledJobHistory> |
getHistory() |
String |
getJobId() |
ScheduledJobKey |
getKey() |
Date |
getLastExecution() |
Date |
getNextExecution() |
ExecutionStatus |
getStatus() |
boolean |
isDisabled() |
boolean |
isEnabled() |
boolean |
isManuallyRunnable() |
void |
setNextExecution(Date nextExecution) |
void |
setStatus(ExecutionStatus status) |
public static final int MAX_HISTORY
public ScheduledJobStatus(ScheduledJobKey scheduledJobKey, List<ScheduledJobHistory> existingHistory)
public ScheduledJobKey getKey()
public String getGroup()
public String getJobId()
public List<ScheduledJobHistory> getHistory()
public void addHistory(ScheduledJobHistory newHistory)
public ExecutionStatus getStatus()
public void setStatus(ExecutionStatus status)
public Date getLastExecution()
public Date getNextExecution()
public void setNextExecution(Date nextExecution)
public long getAverageRunningTime()
public boolean isEnabled()
public boolean isDisabled()
public boolean isManuallyRunnable()
Copyright © 2003–2020 Atlassian. All rights reserved.