@Path(value="/jobinstances") @Consumes(value={"application/json","application/xml"}) @Produces(value={"application/json","application/xml"}) public class JobInstanceResource extends Object
Constructor and Description |
---|
JobInstanceResource() |
Modifier and Type | Method and Description |
---|---|
int |
getJobInstanceCount(String jobName)
Gets the number of job instances for the specified job name/id.
|
javax.ws.rs.core.Response |
getJobInstances(String jobName,
int start,
int count,
long jobExecutionId)
Gets job instance(s) for a job name/id, or job execution.
|
@GET public javax.ws.rs.core.Response getJobInstances(@QueryParam(value="jobName") String jobName, @QueryParam(value="start") int start, @QueryParam(value="count") int count, @QueryParam(value="jobExecutionId") long jobExecutionId)
jobExecutionId
is present in query parameters, returns
the response with job instance (org.jberet.rest.entity.JobInstanceEntity
) for
the job execution id.
Otherwise, returns the response with job instances
(org.jberet.rest.entity.JobInstanceEntity[]
matching the specified
jobName
, start
and count
.jobName
- job name/id for which to get job instancesstart
- the offset position in the list of all eligible job instances to includecount
- limit the number of job instances in the resultjobExecutionId
- the job execution id for which to get job instancejavax.ws.rs.core.Response
including response status, and
response entity (org.jberet.rest.entity.JobInstanceEntity
for job execution id,
and org.jberet.rest.entity.JobInstanceEntity[]
for job name/id.@Path(value="/count") @GET public int getJobInstanceCount(@QueryParam(value="jobName") String jobName)
jobName
- the job name/id to count its job instancesjobName
Copyright © 2016 JBoss by Red Hat. All rights reserved.