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 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

      @Path("/running-jobs") @GET public javax.ws.rs.core.Response getRunningJobs() throws IOException
      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