Class TestkitSchedulerResource
java.lang.Object
com.atlassian.crowd.plugins.testkit.rest.TestkitSchedulerResource
@Named
@Path("/scheduler")
@Produces("application/json")
@Consumes("application/json")
public class TestkitSchedulerResource
extends Object
-
Constructor Summary
ConstructorDescriptionTestkitSchedulerResource
(com.atlassian.scheduler.core.LifecycleAwareSchedulerService schedulerService, PasswordExpirationMailNotificationManager passExpirationManager) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
changeSchedulerState
(String state) javax.ws.rs.core.Response
void
javax.ws.rs.core.Response
void
scheduleContinuousJobs
(int count) Schedules a job that never terminates on it's own
-
Constructor Details
-
TestkitSchedulerResource
@Inject public TestkitSchedulerResource(com.atlassian.scheduler.core.LifecycleAwareSchedulerService schedulerService, PasswordExpirationMailNotificationManager passExpirationManager)
-
-
Method Details
-
registerRunners
@PostConstruct public void registerRunners() -
changeSchedulerState
@Path("/state/{value}") @POST public javax.ws.rs.core.Response changeSchedulerState(@PathParam("value") String state) throws com.atlassian.scheduler.SchedulerServiceException - Parameters:
state
- - string: start/standby- Throws:
com.atlassian.scheduler.SchedulerServiceException
-
getRunningJobs
- Throws:
IOException
-
runNotifyPasswordExpiryJob
@Path("/notify-password-expiry") @PUT public javax.ws.rs.core.Response runNotifyPasswordExpiryJob() -
scheduleContinuousJobs
@POST @Path("/jobs/continuous") public void scheduleContinuousJobs(@QueryParam("count") @DefaultValue("1") int count) Schedules a job that never terminates on it's own
-