public class SchedulerResource extends Object
Constructor and Description |
---|
SchedulerResource(com.atlassian.event.api.EventPublisher eventPublisher,
org.quartz.Scheduler scheduler,
com.atlassian.scheduler.core.LifecycleAwareSchedulerService schedulerService,
SchedulerRunDetailsManager schedulerRunDetailsManager) |
Modifier and Type | Method and Description |
---|---|
void |
changeJobGroupState(String jobGroupName,
Map<String,Object> command)
Pauses 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 scheduler.
|
javax.ws.rs.core.Response |
countAll(String jobId,
String outcome) |
public SchedulerResource(com.atlassian.event.api.EventPublisher eventPublisher, org.quartz.Scheduler scheduler, com.atlassian.scheduler.core.LifecycleAwareSchedulerService schedulerService, SchedulerRunDetailsManager schedulerRunDetailsManager)
public void changeSchedulerState(Map<String,Object> command) throws org.quartz.SchedulerException, com.atlassian.scheduler.SchedulerServiceException
command
- the command for the scheduler, name entry may be "pause", "resume" or "shutdown"org.quartz.SchedulerException
com.atlassian.scheduler.SchedulerServiceException
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"public void changeJobState(String jobGroupName, String jobName, Map<String,Object> command)
Available commands are:
1. pause - pauses the job 2. resume - resumes a paused job 3. trigger - triggers the job synchronously
jobName
- the name of the job to controlcommand
- the command for the group, name entry may be "pause", "resume" or "trigger"Copyright © 2003–2017 Atlassian. All rights reserved.