org.apache.nutch.api.resources

## Class JobResource

- java.lang.Object
- - org.apache.nutch.api.resources.AbstractResource
  - - org.apache.nutch.api.resources.JobResource

-     public class JobResource
      extends AbstractResource

- - ### Field Summary

    - ### Fields inherited from class org.apache.nutch.api.resources.AbstractResource

      `configManager, jobManager, server`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `JobResource()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `abort(String id, String crawlId)`
    `String` | `create(JobConfig config)`
    `JobInfo` | `getInfo(String id, String crawlId)`
    `Collection<JobInfo>` | `getJobs(String crawlId)`
    `boolean` | `stop(String id, String crawlId)`

    - ### Methods inherited from class org.apache.nutch.api.resources.AbstractResource

      `throwBadRequestException`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JobResource

          public JobResource()

  - ### Method Detail

    - #### getJobs

          public Collection<JobInfo> getJobs(String crawlId)

    - #### getInfo

          public JobInfo getInfo(String id,
                        String crawlId)

    - #### stop

          public boolean stop(String id,
                     String crawlId)

    - #### abort

          public boolean abort(String id,
                      String crawlId)

    - #### create

          public String create(JobConfig config)

Copyright © 2015 The Apache Software Foundation