@Consumes(value="application/json") @Produces(value="application/json") @Path(value="batchee") public class JBatchResourceImpl extends Object implements JBatchResource
Constructor and Description |
---|
JBatchResourceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
abandon(long executionId) |
void |
findOperator() |
RestJobExecution |
getJobExecution(long executionId) |
RestJobExecution[] |
getJobExecutions(long id,
String name) |
RestJobInstance |
getJobInstance(long executionId) |
int |
getJobInstanceCount(String jobName) |
RestJobInstance[] |
getJobInstances(String jobName,
int start,
int count) |
String[] |
getJobNames() |
RestProperties |
getParameters(long executionId) |
Long[] |
getRunningExecutions(String jobName) |
RestStepExecution[] |
getStepExecutions(long jobExecutionId) |
long |
restart(long executionId,
RestProperties restartParameters) |
long |
start(String jobXMLName,
RestProperties jobParameters) |
void |
stop(long executionId) |
@PostConstruct public void findOperator()
@GET @Path(value="job-names") public String[] getJobNames()
getJobNames
in interface JBatchResource
@GET @Path(value="job-instance/count/{name}") @Produces(value="text/plain") public int getJobInstanceCount(@PathParam(value="name") String jobName)
getJobInstanceCount
in interface JBatchResource
@GET @Path(value="job-instances/{name}") public RestJobInstance[] getJobInstances(@PathParam(value="name") String jobName, @QueryParam(value="start") int start, @QueryParam(value="count") int count)
getJobInstances
in interface JBatchResource
@GET @Path(value="executions/running/{name}") public Long[] getRunningExecutions(@PathParam(value="name") String jobName)
getRunningExecutions
in interface JBatchResource
@GET @Path(value="execution/parameter/{id}") public RestProperties getParameters(@PathParam(value="id") long executionId)
getParameters
in interface JBatchResource
@GET @Path(value="job-instance/{id}") public RestJobInstance getJobInstance(@PathParam(value="id") long executionId)
getJobInstance
in interface JBatchResource
@GET @Path(value="job-executions/{id}/{name}") public RestJobExecution[] getJobExecutions(@PathParam(value="id") long id, @PathParam(value="name") String name)
getJobExecutions
in interface JBatchResource
@GET @Path(value="job-execution/{id}") public RestJobExecution getJobExecution(@PathParam(value="id") long executionId)
getJobExecution
in interface JBatchResource
@GET @Path(value="step-executions/{id}") public RestStepExecution[] getStepExecutions(@PathParam(value="id") long jobExecutionId)
getStepExecutions
in interface JBatchResource
@POST @Path(value="execution/start/{name}") @Produces(value="text/plain") public long start(@PathParam(value="name") String jobXMLName, RestProperties jobParameters)
start
in interface JBatchResource
@POST @Path(value="execution/restart/{id}") @Produces(value="text/plain") public long restart(@PathParam(value="id") long executionId, RestProperties restartParameters)
restart
in interface JBatchResource
@HEAD @Path(value="execution/stop/{id}") public void stop(@PathParam(value="id") long executionId)
stop
in interface JBatchResource
@HEAD @Path(value="execution/abandon/{id}") public void abandon(@PathParam(value="id") long executionId)
abandon
in interface JBatchResource
Copyright © 2017 The Apache Software Foundation. All rights reserved.