|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScheduledJobManager
Defines the services provided for manage scheduled jobs.
Generally a ManagedScheduleJobException
is thrown if the input is invalid (e.g. job does not exist) or
if the type of request is not permitted (e.g. execute runNow when the job is not set to canRunAdhoc).
Method Summary | |
---|---|
void |
disable(ScheduledJobKey key)
Disables the specified job, and removes it from the scheduler. |
void |
enable(ScheduledJobKey key)
Enables the specified job, and adds it from the scheduler. |
java.lang.String |
getCronExpression(ScheduledJobKey key)
Gets the currently configured cron expression, or the default value if none has been configured. |
ScheduledJobStatus |
getScheduledJob(ScheduledJobKey key)
Gets the current status for a single scheduled job. |
java.util.List<ScheduledJobStatus> |
getScheduledJobs()
Gets a list of all the jobs managed by the system, and their current status. |
void |
runNow(ScheduledJobKey key)
Schedules the specified to run immediately. |
java.util.Date |
updateSchedule(ScheduledJobKey key,
java.lang.String newCronSchedule)
Updates stored schedule and reschedules the specified job. |
Method Detail |
---|
java.util.List<ScheduledJobStatus> getScheduledJobs()
ScheduledJobStatus getScheduledJob(ScheduledJobKey key)
key
- the job key
java.util.Date updateSchedule(ScheduledJobKey key, java.lang.String newCronSchedule)
ManagedScheduledCronJob
jobs and requires
ManagedScheduledJob.isEditable()
to be true.
key
- the job keynewCronSchedule
- a valid cron expression
void runNow(ScheduledJobKey key)
ManagedScheduledJob.canRunAdhoc()
to be true.
key
- the job keyvoid disable(ScheduledJobKey key)
ManagedScheduledJob.canDisable()
to be true.
key
- the job keyvoid enable(ScheduledJobKey key)
ManagedScheduledJob.canDisable()
to be true.
key
- the job keyjava.lang.String getCronExpression(ScheduledJobKey key)
key
- the job key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |