@Produces(value="application/json")
public interface JobRestService
Modifier and Type | Method and Description |
---|---|
JobResource |
getJob(String jobId) |
List<JobDto> |
getJobs(javax.ws.rs.core.UriInfo uriInfo,
Integer firstResult,
Integer maxResults) |
CountResultDto |
getJobsCount(javax.ws.rs.core.UriInfo uriInfo) |
List<JobDto> |
queryJobs(JobQueryDto queryDto,
Integer firstResult,
Integer maxResults) |
CountResultDto |
queryJobsCount(JobQueryDto queryDto) |
BatchDto |
setRetries(SetJobRetriesDto setJobRetriesDto) |
void |
updateSuspensionState(JobSuspensionStateDto dto) |
static final String PATH
@Path(value="/{id}") JobResource getJob(@PathParam(value="id") String jobId)
@GET @Produces(value="application/json") List<JobDto> getJobs(@Context javax.ws.rs.core.UriInfo uriInfo, @QueryParam(value="firstResult") Integer firstResult, @QueryParam(value="maxResults") Integer maxResults)
@POST @Consumes(value="application/json") @Produces(value="application/json") List<JobDto> queryJobs(JobQueryDto queryDto, @QueryParam(value="firstResult") Integer firstResult, @QueryParam(value="maxResults") Integer maxResults)
@GET @Path(value="/count") @Produces(value="application/json") CountResultDto getJobsCount(@Context javax.ws.rs.core.UriInfo uriInfo)
@POST @Path(value="/count") @Consumes(value="application/json") @Produces(value="application/json") CountResultDto queryJobsCount(JobQueryDto queryDto)
@POST @Path(value="/retries") @Consumes(value="application/json") @Produces(value="application/json") BatchDto setRetries(SetJobRetriesDto setJobRetriesDto)
@PUT @Path(value="/suspended") @Consumes(value="application/json") void updateSuspensionState(JobSuspensionStateDto dto)
Copyright © 2022. All rights reserved.