@Path(value="/job") public class JobResource extends AbstractResource
configManager, jobManager, server| Constructor and Description |
|---|
JobResource() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort(String id,
String crawlId) |
JobInfo |
create(JobConfig config)
Create a new job
|
JobInfo |
getInfo(String id,
String crawlId)
Get job info
|
Collection<JobInfo> |
getJobs(String crawlId)
Get job history
|
boolean |
stop(String id,
String crawlId)
Stop Job
|
throwBadRequestException@GET @Path(value="/") public Collection<JobInfo> getJobs(@QueryParam(value="crawlId") String crawlId)
crawlId - @GET
@Path(value="/{id}")
public JobInfo getInfo(@PathParam(value="id")
String id,
@QueryParam(value="crawlId")
String crawlId)
id - Job IDcrawlId - Crawl ID@GET
@Path(value="/{id}/stop")
public boolean stop(@PathParam(value="id")
String id,
@QueryParam(value="crawlId")
String crawlId)
id - Job IDcrawlId - @GET
@Path(value="/{id}/abort")
public boolean abort(@PathParam(value="id")
String id,
@QueryParam(value="crawlId")
String crawlId)
Copyright © 2021 The Apache Software Foundation