public class SchedulerResource extends Object
Constructor and Description |
---|
SchedulerResource(com.atlassian.event.api.EventPublisher eventPublisher,
org.quartz.Scheduler scheduler) |
Modifier and Type | Method and Description |
---|---|
void |
changeJobGroupState(String jobGroupName,
Map<String,Object> command)
Pauses and resumes all jobs in a group.
|
void |
changeJobState(String jobGroupName,
String jobName,
Map<String,Object> command)
Controls a single job.
|
void |
changeSchedulerState(Map<String,Object> command)
Pauses and resumes the quartz scheduler.
|
public SchedulerResource(com.atlassian.event.api.EventPublisher eventPublisher, org.quartz.Scheduler scheduler)
public void changeSchedulerState(Map<String,Object> command) throws org.quartz.SchedulerException
command
- the command for the scheduler, name entry may be "pause", "resume" or "shutdown"org.quartz.SchedulerException
public void changeJobGroupState(String jobGroupName, Map<String,Object> command)
jobGroupName
- the name of the group to controlcommand
- the command for the group, name entry may be "pause" or "resume"public void changeJobState(String jobGroupName, String jobName, Map<String,Object> command)
jobName
- the name of the job to controlcommand
- the command for the group, name entry may be "pause", "resume" or "trigger"Copyright © 2003–2015 Atlassian. All rights reserved.