Package org.apache.batchee.jaxrs.server
Class JBatchResourceImpl
- java.lang.Object
-
- org.apache.batchee.jaxrs.server.JBatchResourceImpl
-
- All Implemented Interfaces:
JBatchResource
@Consumes("application/json") @Produces("application/json") @Path("batchee") public class JBatchResourceImpl extends Object implements JBatchResource
-
-
Constructor Summary
Constructors Constructor Description JBatchResourceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabandon(long executionId)voidfindOperator()RestJobExecutiongetJobExecution(long executionId)RestJobExecution[]getJobExecutions(long id, String name)RestJobInstancegetJobInstance(long executionId)intgetJobInstanceCount(String jobName)RestJobInstance[]getJobInstances(String jobName, int start, int count)String[]getJobNames()RestPropertiesgetParameters(long executionId)Long[]getRunningExecutions(String jobName)RestStepExecution[]getStepExecutions(long jobExecutionId)longrestart(long executionId, RestProperties restartParameters)longstart(String jobXMLName, RestProperties jobParameters)voidstop(long executionId)
-
-
-
Method Detail
-
findOperator
@PostConstruct public void findOperator()
-
getJobNames
@GET @Path("job-names") public String[] getJobNames()- Specified by:
getJobNamesin interfaceJBatchResource
-
getJobInstanceCount
@GET @Path("job-instance/count/{name}") @Produces("text/plain") public int getJobInstanceCount(@PathParam("name") String jobName)- Specified by:
getJobInstanceCountin interfaceJBatchResource
-
getJobInstances
@GET @Path("job-instances/{name}") public RestJobInstance[] getJobInstances(@PathParam("name") String jobName, @QueryParam("start") int start, @QueryParam("count") int count)- Specified by:
getJobInstancesin interfaceJBatchResource
-
getRunningExecutions
@GET @Path("executions/running/{name}") public Long[] getRunningExecutions(@PathParam("name") String jobName)- Specified by:
getRunningExecutionsin interfaceJBatchResource
-
getParameters
@GET @Path("execution/parameter/{id}") public RestProperties getParameters(@PathParam("id") long executionId)- Specified by:
getParametersin interfaceJBatchResource
-
getJobInstance
@GET @Path("job-instance/{id}") public RestJobInstance getJobInstance(@PathParam("id") long executionId)- Specified by:
getJobInstancein interfaceJBatchResource
-
getJobExecutions
@GET @Path("job-executions/{id}/{name}") public RestJobExecution[] getJobExecutions(@PathParam("id") long id, @PathParam("name") String name)- Specified by:
getJobExecutionsin interfaceJBatchResource
-
getJobExecution
@GET @Path("job-execution/{id}") public RestJobExecution getJobExecution(@PathParam("id") long executionId)- Specified by:
getJobExecutionin interfaceJBatchResource
-
getStepExecutions
@GET @Path("step-executions/{id}") public RestStepExecution[] getStepExecutions(@PathParam("id") long jobExecutionId)- Specified by:
getStepExecutionsin interfaceJBatchResource
-
start
@POST @Path("execution/start/{name}") @Produces("text/plain") public long start(@PathParam("name") String jobXMLName, RestProperties jobParameters)- Specified by:
startin interfaceJBatchResource
-
restart
@POST @Path("execution/restart/{id}") @Produces("text/plain") public long restart(@PathParam("id") long executionId, RestProperties restartParameters)- Specified by:
restartin interfaceJBatchResource
-
stop
@HEAD @Path("execution/stop/{id}") public void stop(@PathParam("id") long executionId)- Specified by:
stopin interfaceJBatchResource
-
abandon
@HEAD @Path("execution/abandon/{id}") public void abandon(@PathParam("id") long executionId)- Specified by:
abandonin interfaceJBatchResource
-
-