Class SchedulerResource

    • Constructor Detail

      • SchedulerResource

        public SchedulerResource()
    • Method Detail

      • getCurrentJobs

        @GET
        @Path("/current-jobs")
        @Produces("application/json")
        public javax.ws.rs.core.Response getCurrentJobs()
                                                 throws org.quartz.SchedulerException
        Throws:
        org.quartz.SchedulerException
      • getJobs

        @GET
        @Path("/jobs")
        @Produces("application/json")
        public javax.ws.rs.core.Response getJobs()
                                          throws org.quartz.SchedulerException
        Throws:
        org.quartz.SchedulerException
      • pauseScheduling

        @PUT
        @Path("/pause/{group}")
        @Produces("application/json")
        public javax.ws.rs.core.Response pauseScheduling​(@PathParam("group")
                                                         java.lang.String group)
                                                  throws org.quartz.SchedulerException
        Throws:
        org.quartz.SchedulerException
      • resumeScheduling

        @PUT
        @Path("/resume/{group}")
        @Produces("application/json")
        public javax.ws.rs.core.Response resumeScheduling​(@PathParam("group")
                                                          java.lang.String group)
                                                   throws org.quartz.SchedulerException
        Throws:
        org.quartz.SchedulerException
      • jobState

        @GET
        @Produces("application/json")
        @Path("/job-state/{job-name}")
        public javax.ws.rs.core.Response jobState​(@PathParam("job-name")
                                                  java.lang.String jobName)
                                           throws org.quartz.SchedulerException
        Throws:
        org.quartz.SchedulerException
      • scheduleJob

        @POST
        @Path("/schedule-job")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response scheduleJob​(byte[] jobByte)
                                              throws org.quartz.SchedulerException
        Throws:
        org.quartz.SchedulerException
      • triggerJob

        @POST
        @Path("/trigger-job")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response triggerJob​(byte[] triggerByte)
                                             throws org.quartz.SchedulerException
        Throws:
        org.quartz.SchedulerException
      • triggerJob

        @POST
        @Path("/trigger-job/{job-name}")
        @Produces("application/json")
        public javax.ws.rs.core.Response triggerJob​(@PathParam("job-name")
                                                    java.lang.String jobName,
                                                    com.fasterxml.jackson.databind.JsonNode jobDataJson)
                                             throws org.quartz.SchedulerException
        Throws:
        org.quartz.SchedulerException