@Named @Path(value="/scheduler") @Produces(value="application/json") @Consumes(value="application/json") public class TestkitSchedulerResource extends Object
| Constructor and Description |
|---|
TestkitSchedulerResource(com.atlassian.scheduler.core.LifecycleAwareSchedulerService schedulerService,
PasswordExpirationMailNotificationManager passExpirationManager) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
changeSchedulerState(String state) |
javax.ws.rs.core.Response |
getRunningJobs() |
void |
registerRunners() |
javax.ws.rs.core.Response |
runNotifyPasswordExpiryJob() |
void |
scheduleContinuousJobs(int count)
Schedules a job that never terminates on it's own
|
@Inject
public TestkitSchedulerResource(com.atlassian.scheduler.core.LifecycleAwareSchedulerService schedulerService,
PasswordExpirationMailNotificationManager passExpirationManager)
@PostConstruct public void registerRunners()
@Path(value="/state/{value}")
@POST
public javax.ws.rs.core.Response changeSchedulerState(@PathParam(value="value")
String state)
throws com.atlassian.scheduler.SchedulerServiceException
state - - string: start/standbycom.atlassian.scheduler.SchedulerServiceException@Path(value="/running-jobs")
@GET
public javax.ws.rs.core.Response getRunningJobs()
throws IOException
IOException@Path(value="/notify-password-expiry") @PUT public javax.ws.rs.core.Response runNotifyPasswordExpiryJob()
@POST
@Path(value="/jobs/continuous")
public void scheduleContinuousJobs(@QueryParam(value="count") @DefaultValue(value="1")
int count)
Copyright © 2023 Atlassian. All rights reserved.