|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.schedule.managers.DefaultScheduledJobManager
public class DefaultScheduledJobManager
Implementation of the ScheduledJobManager, co-ordinates access to the scheduler, persisted configuration (in Bandana), transient status (in caches), and static data (in the job registry).
Constructor Summary | |
---|---|
DefaultScheduledJobManager(ScheduledJobDao jobDAO,
org.quartz.Scheduler scheduler,
ManagedScheduledJobRegistry jobRegistry,
AuditService auditService,
ScheduleJobStatusManager statusManager)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultScheduledJobManager(ScheduledJobDao jobDAO, org.quartz.Scheduler scheduler, ManagedScheduledJobRegistry jobRegistry, AuditService auditService, ScheduleJobStatusManager statusManager)
Method Detail |
---|
public java.util.List<ScheduledJobStatus> getScheduledJobs()
ScheduledJobManager
getScheduledJobs
in interface ScheduledJobManager
public ScheduledJobStatus getScheduledJob(ScheduledJobKey key)
ScheduledJobManager
getScheduledJob
in interface ScheduledJobManager
key
- the job key
public java.util.Date updateSchedule(ScheduledJobKey key, java.lang.String newCronSchedule)
ScheduledJobManager
ManagedScheduledCronJob
jobs and requires
ManagedScheduledJob.isEditable()
to be true.
updateSchedule
in interface ScheduledJobManager
key
- the job keynewCronSchedule
- a valid cron expression
public void runNow(ScheduledJobKey key)
ScheduledJobManager
ManagedScheduledJob.canRunAdhoc()
to be true.
runNow
in interface ScheduledJobManager
key
- the job keypublic void disable(ScheduledJobKey key)
ScheduledJobManager
ManagedScheduledJob.canDisable()
to be true.
disable
in interface ScheduledJobManager
key
- the job keypublic void enable(ScheduledJobKey key)
ScheduledJobManager
ManagedScheduledJob.canDisable()
to be true.
enable
in interface ScheduledJobManager
key
- the job keypublic java.lang.String getCronExpression(ScheduledJobKey key)
ScheduledJobManager
getCronExpression
in interface ScheduledJobManager
key
- the job key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |