| java.lang.Object | |
| ↳ | com.atlassian.confluence.schedule.persistence.dao.CachedScheduledJobDao |
Provides an implementation for storing data used by the ScheduleJobManager. Runtime/transient data is stored into Cache's (either ehcache or coherence caches) for quick access. The caches do not expire, and are sufficiently large not to fill up. There is currently no checking if they are full, and this will cause issues if this occurs. Use of cache's will allow the data to be synchronised across cluster nodes by coherence. Runtime/transient data includes the scheduled job status, and the default cron expressions. Persistent data is stored into Bandana, it's not intended to be used for high-frequency updates. Persistent data includes persisted history (when enabled), and the job configuration (changed cron expression, enabled/disabled flag).
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 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.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.confluence.schedule.persistence.dao.ScheduledJobDao
| |||||||||||
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 |
|---|---|
| job | 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.