@Path(value="/job") public class JobResource extends AbstractResource
configManager, jobManager
Constructor and Description |
---|
JobResource() |
Modifier and Type | Method and Description |
---|---|
boolean |
abort(String id,
String crawlId) |
JobInfo |
create(JobConfig config) |
JobInfo |
getInfo(String id,
String crawlId) |
Collection<JobInfo> |
getJobs(String crawlId) |
boolean |
stop(String id,
String crawlId) |
throwBadRequestException
@GET @Path(value="/") public Collection<JobInfo> getJobs(@QueryParam(value="crawlId") String crawlId)
@GET @Path(value="/{id}") public JobInfo getInfo(@PathParam(value="id") String id, @QueryParam(value="crawlId") String crawlId)
@GET @Path(value="/{id}/stop") public boolean stop(@PathParam(value="id") String id, @QueryParam(value="crawlId") String crawlId)
@GET @Path(value="/{id}/abort") public boolean abort(@PathParam(value="id") String id, @QueryParam(value="crawlId") String crawlId)
Copyright © 2015 The Apache Software Foundation