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(com.atlassian.scheduler.config.JobId jobId,
List<ScheduledJobHistory> existingHistory) |
ScheduledJobStatus(ScheduledJobKey scheduledJobKey,
List<ScheduledJobHistory> existingHistory)
Deprecated.
since 7.18. To be removed in 8.0. Use
ScheduledJobStatus(JobId, List)} |
| Modifier and Type | Method and Description |
|---|---|
void |
addHistory(ScheduledJobHistory newHistory) |
long |
getAverageRunningTime() |
String |
getGroup()
Deprecated.
since 7.18. To be removed in 8.0.
|
List<ScheduledJobHistory> |
getHistory() |
String |
getJobId() |
ScheduledJobKey |
getKey()
Deprecated.
since 7.18. To be removed in 8.0.
|
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
@Deprecated public ScheduledJobStatus(ScheduledJobKey scheduledJobKey, List<ScheduledJobHistory> existingHistory)
ScheduledJobStatus(JobId, List)}public ScheduledJobStatus(com.atlassian.scheduler.config.JobId jobId,
List<ScheduledJobHistory> existingHistory)
@Deprecated public ScheduledJobKey getKey()
@Deprecated 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–2022 Atlassian. All rights reserved.