|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScheduledJobDao
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):
Method Summary | |
---|---|
void |
addHistory(ScheduledJobKey key,
ScheduledJobHistory history,
java.util.Date nextOccurence,
boolean persistHistory)
Adds to an event to the history, and updates the nextOccurence in the ScheduledJobStatus. |
ScheduledJobConfiguration |
getScheduledJobConfiguration(ScheduledJobKey key)
Gets the job configuration for the specified job. |
java.lang.String |
getScheduledJobDefaultCronExpression(ScheduledJobKey key)
Gets the default cron expression for the job. |
java.util.List<ScheduledJobHistory> |
getScheduledJobHistory(ScheduledJobKey key)
The the job history for a specified job. |
ScheduledJobStatus |
getScheduledJobStatus(ScheduledJobKey key)
Gets the specified job's status. |
void |
saveScheduledJobConfiguration(ScheduledJobKey key,
ScheduledJobConfiguration jobConfiguration)
Stores the job configuration. |
void |
saveScheduledJobDefaultCronExpression(ScheduledJobKey key,
java.lang.String cronExpressionDefault)
Stores the default cron expression for a job. |
void |
saveScheduledJobStatus(ScheduledJobKey key,
ScheduledJobStatus status)
Stores the status for the specified job. |
void |
updateNextOccurence(ScheduledJobKey key,
java.util.Date nextOccurence)
Updates the nextOccurence in the ScheduledJobStatus. |
void |
updateStatus(ScheduledJobKey key,
ExecutionStatus status)
Updates the status in the corresponding ScheduledJobStatus for the job. |
Method Detail |
---|
ScheduledJobStatus getScheduledJobStatus(ScheduledJobKey key)
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
void saveScheduledJobStatus(ScheduledJobKey key, ScheduledJobStatus status)
key
- the job keystatus
- stores the job status.void updateStatus(ScheduledJobKey key, ExecutionStatus status)
key
- status
- void addHistory(ScheduledJobKey key, ScheduledJobHistory history, java.util.Date nextOccurence, boolean persistHistory)
key
- the job keyhistory
- the event that occurrednextOccurence
- the date that the job is expected to execute nextpersistHistory
- true the history will be persistedvoid updateNextOccurence(ScheduledJobKey key, java.util.Date nextOccurence)
key
- the job keynextOccurence
- the date that the job is expected to execute nextjava.util.List<ScheduledJobHistory> getScheduledJobHistory(ScheduledJobKey key)
key
- the job key
void saveScheduledJobConfiguration(ScheduledJobKey key, ScheduledJobConfiguration jobConfiguration)
key
- the job keyjobConfiguration
- the configurationScheduledJobConfiguration getScheduledJobConfiguration(ScheduledJobKey key)
key
- the job key
void saveScheduledJobDefaultCronExpression(ScheduledJobKey key, java.lang.String cronExpressionDefault)
key
- the job keycronExpressionDefault
- java.lang.String getScheduledJobDefaultCronExpression(ScheduledJobKey key)
key
- the job key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |