com.atlassian.confluence.schedule.managers.ScheduledJobManager |
Known Indirect Subclasses |
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).
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Disables the specified job, and removes it from the scheduler.
| |||||||||||
Enables the specified job, and adds it from the scheduler.
| |||||||||||
Gets the currently configured cron expression, or the default value if none has been configured.
| |||||||||||
Gets the current status for a single scheduled job.
| |||||||||||
Gets a list of all the jobs managed by the system, and their current status.
| |||||||||||
Schedules the specified to run immediately.
| |||||||||||
Updates stored schedule and reschedules the specified job.
|
Disables the specified job, and removes it from the scheduler.
Requires canDisable()
to be true.
key | the job key |
---|
Enables the specified job, and adds it from the scheduler.
Requires canDisable()
to be true.
key | the job key |
---|
Gets the currently configured cron expression, or the default value if none has been configured.
key | the job key |
---|
Gets the current status for a single scheduled job.
key | the job key |
---|
Gets a list of all the jobs managed by the system, and their current status.
Schedules the specified to run immediately.
Requires canRunAdhoc()
to be true.
key | the job key |
---|
Updates stored schedule and reschedules the specified job.
Only valid for ManagedScheduledCronJob
jobs and requires
isEditable()
to be true.
key | the job key |
---|---|
newCronSchedule | a valid cron expression |