public interface ScheduledJobDao
Persistence may be in memory, local cache, clustered cache or to a persistent store.
Intended storage (see implementations):
Modifier and Type | Method and Description |
---|---|
default void |
addHistory(com.atlassian.scheduler.config.JobId jobId,
@Nullable ScheduledJobHistory history,
Date nextOccurrence) |
void |
addHistory(ScheduledJobKey key,
@Nullable ScheduledJobHistory history,
Date nextOccurrence)
Deprecated.
since 7.18. To be removed in 8.0. Use
addHistory(JobId, ScheduledJobHistory, Date) |
default @Nullable ScheduledJobConfiguration |
getScheduledJobConfiguration(com.atlassian.scheduler.config.JobId jobId) |
@Nullable ScheduledJobConfiguration |
getScheduledJobConfiguration(ScheduledJobKey key)
Deprecated.
since 7.18. To be removed in 8.0. Use
getScheduledJobConfiguration(JobId) |
default @Nullable ScheduledJobStatus |
getScheduledJobStatus(com.atlassian.scheduler.config.JobId jobId) |
@Nullable ScheduledJobStatus |
getScheduledJobStatus(ScheduledJobKey key)
Deprecated.
since 7.18. To be removed in 8.0. Use
getScheduledJobStatus(JobId) |
default void |
saveScheduledJobConfiguration(com.atlassian.scheduler.config.JobId jobId,
ScheduledJobConfiguration jobConfiguration) |
void |
saveScheduledJobConfiguration(ScheduledJobKey key,
ScheduledJobConfiguration jobConfiguration)
Deprecated.
since 7.18. To be removed in 8.0. Use
saveScheduledJobConfiguration(JobId, ScheduledJobConfiguration) |
default void |
saveScheduledJobStatus(com.atlassian.scheduler.config.JobId jobId,
ScheduledJobStatus status) |
void |
saveScheduledJobStatus(ScheduledJobKey key,
ScheduledJobStatus status)
Deprecated.
since 7.18. To be removed in 8.0. Use
saveScheduledJobStatus(JobId, ScheduledJobStatus) |
void |
updateNextOccurence(ScheduledJobKey key,
Date nextOccurence)
Deprecated.
since 7.18. To be removed in 8.0. Use
updateNextOccurrence(JobId, Date) |
default void |
updateNextOccurrence(com.atlassian.scheduler.config.JobId jobId,
Date nextOccurrence) |
default void |
updateStatus(com.atlassian.scheduler.config.JobId jobId,
ExecutionStatus status) |
void |
updateStatus(ScheduledJobKey key,
ExecutionStatus status)
Deprecated.
since 7.18. To be removed in 8.0. Use
updateStatus(JobId, ExecutionStatus) |
@Deprecated @Nullable ScheduledJobStatus getScheduledJobStatus(ScheduledJobKey key)
getScheduledJobStatus(JobId)
It's recommended that ScheduleJobStatusManager
be used for
access to a job's status, rather than this call directly. The manager handles cache expiry automatically.
key
- the job keydefault @Nullable ScheduledJobStatus getScheduledJobStatus(com.atlassian.scheduler.config.JobId jobId)
@Deprecated void saveScheduledJobStatus(ScheduledJobKey key, ScheduledJobStatus status)
saveScheduledJobStatus(JobId, ScheduledJobStatus)
key
- the job keystatus
- stores the job status.default void saveScheduledJobStatus(com.atlassian.scheduler.config.JobId jobId, ScheduledJobStatus status)
@Deprecated void updateStatus(ScheduledJobKey key, ExecutionStatus status)
updateStatus(JobId, ExecutionStatus)
{link #saveScheduledJobStatus} should be called first, otherwise the update will be ignored.
default void updateStatus(com.atlassian.scheduler.config.JobId jobId, ExecutionStatus status)
@Deprecated void addHistory(ScheduledJobKey key, @Nullable ScheduledJobHistory history, Date nextOccurrence)
addHistory(JobId, ScheduledJobHistory, Date)
key
- the job keyhistory
- the event that occurrednextOccurrence
- the date that the job is expected to execute nextdefault void addHistory(com.atlassian.scheduler.config.JobId jobId, @Nullable ScheduledJobHistory history, Date nextOccurrence)
@Deprecated void updateNextOccurence(ScheduledJobKey key, Date nextOccurence)
updateNextOccurrence(JobId, Date)
key
- the job keynextOccurence
- the date that the job is expected to execute nextdefault void updateNextOccurrence(com.atlassian.scheduler.config.JobId jobId, Date nextOccurrence)
@Deprecated void saveScheduledJobConfiguration(ScheduledJobKey key, ScheduledJobConfiguration jobConfiguration)
saveScheduledJobConfiguration(JobId, ScheduledJobConfiguration)
key
- the job keyjobConfiguration
- the configurationdefault void saveScheduledJobConfiguration(com.atlassian.scheduler.config.JobId jobId, ScheduledJobConfiguration jobConfiguration)
@Deprecated @Nullable ScheduledJobConfiguration getScheduledJobConfiguration(ScheduledJobKey key)
getScheduledJobConfiguration(JobId)
key
- the job keydefault @Nullable ScheduledJobConfiguration getScheduledJobConfiguration(com.atlassian.scheduler.config.JobId jobId)
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences