Package step.core.scheduler
Class SchedulerServices
- java.lang.Object
-
- step.core.deployment.AbstractServices
-
- step.core.scheduler.SchedulerServices
-
@Singleton @Path("scheduler") public class SchedulerServices extends AbstractServices
-
-
Field Summary
-
Fields inherited from class step.core.deployment.AbstractServices
configuration, controller, SESSION
-
-
Constructor Summary
Constructors Constructor Description SchedulerServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutiontTaskParameters
createExecutionTask()
void
enableAllExecutionTasksSchedule(java.lang.Boolean enabled)
void
enableExecutionTask(java.lang.String executionTaskID)
java.lang.String
execute(java.lang.String executionTaskID)
ExecutiontTaskParameters
getExecutionTask(java.lang.String executionTaskID)
java.util.List<ExecutiontTaskParameters>
getScheduledExecutions()
void
init()
void
removeExecutionTask(java.lang.String executionTaskID, java.lang.Boolean remove)
void
schedule(ExecutiontTaskParameters schedule)
-
Methods inherited from class step.core.deployment.AbstractServices
getContext, getExecutionRunnable, getObjectEnricher, getScheduler, getSession, invalidateSession, setSession
-
-
-
-
Method Detail
-
init
@PostConstruct public void init() throws java.lang.Exception
- Overrides:
init
in classAbstractServices
- Throws:
java.lang.Exception
-
createExecutionTask
@GET @Path("/task/new") @Produces("application/json") public ExecutiontTaskParameters createExecutionTask()
-
schedule
@POST @Consumes("application/json") @Path("/task") public void schedule(ExecutiontTaskParameters schedule)
-
getExecutionTask
@GET @Path("/task/{id}") @Produces("application/json") public ExecutiontTaskParameters getExecutionTask(@PathParam("id") java.lang.String executionTaskID)
-
getScheduledExecutions
@GET @Path("/task") @Produces("application/json") public java.util.List<ExecutiontTaskParameters> getScheduledExecutions()
-
execute
@POST @Consumes("application/json") @Path("/task/{id}/execute") public java.lang.String execute(@PathParam("id") java.lang.String executionTaskID)
-
enableAllExecutionTasksSchedule
@PUT @Path("/task/schedule") public void enableAllExecutionTasksSchedule(@QueryParam("enabled") java.lang.Boolean enabled)
-
enableExecutionTask
@PUT @Path("/task/{id}") public void enableExecutionTask(@PathParam("id") java.lang.String executionTaskID)
-
removeExecutionTask
@DELETE @Path("/task/{id}") public void removeExecutionTask(@PathParam("id") java.lang.String executionTaskID, @QueryParam("remove") java.lang.Boolean remove)
-
-