com.atlassian.confluence.schedule.persistence.dao.ScheduledJobDao |
Known Indirect Subclasses |
Provides the DAO for storing the various scheduled job objects.
Persistence may be in memory, local cache, clustered cache or to a persistent store.
Intended storage (see implementations):
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds to an event to the history, and updates the nextOccurence in the ScheduledJobStatus.
| |||||||||||
Gets the job configuration for the specified job.
| |||||||||||
Gets the default cron expression for the job.
| |||||||||||
The the job history for a specified job.
| |||||||||||
Gets the specified job's status.
| |||||||||||
Stores the job configuration.
| |||||||||||
Stores the default cron expression for a job.
| |||||||||||
Stores the status for the specified job.
| |||||||||||
Updates the nextOccurence in the ScheduledJobStatus.
| |||||||||||
Updates the status in the corresponding ScheduledJobStatus for the job.
|
Adds to an event to the history, and updates the nextOccurence in the ScheduledJobStatus.
key | the job key |
---|---|
history | the event that occurred |
nextOccurence | the date that the job is expected to execute next |
persistHistory | true the history will be persisted |
Gets the job configuration for the specified job.
key | the job key |
---|
Gets the default cron expression for the job.
key | the job key |
---|
The the job history for a specified job.
key | the job key |
---|
Gets the specified job's status.
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 key |
---|
Stores the job configuration.
key | the job key |
---|---|
jobConfiguration | the configuration |
Stores the default cron expression for a job.
key | the job key |
---|
Stores the status for the specified job.
key | the job key |
---|---|
status | stores the job status. |
Updates the nextOccurence in the ScheduledJobStatus.
key | the job key |
---|---|
nextOccurence | the date that the job is expected to execute next |
Updates the status in the corresponding ScheduledJobStatus for the job. {link #saveScheduledJobStatus} should be called first, otherwise the update will be ignored.