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

      `activeConfId, configManager, jobManager, server`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `JobResource()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `abort(java.lang.String id, java.lang.String crawlId)`
    `java.lang.String` | `create(JobConfig config)`
    `JobInfo` | `getInfo(java.lang.String id, java.lang.String crawlId)`
    `java.util.Collection<JobInfo>` | `getJobs(java.lang.String crawlId)`
    `boolean` | `stop(java.lang.String id, java.lang.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 java.util.Collection<JobInfo> getJobs(java.lang.String crawlId)

    - #### getInfo

          public JobInfo getInfo(java.lang.String id,
                                 java.lang.String crawlId)

    - #### stop

          public boolean stop(java.lang.String id,
                              java.lang.String crawlId)

    - #### abort

          public boolean abort(java.lang.String id,
                               java.lang.String crawlId)

    - #### create

          public java.lang.String create(JobConfig config)

Copyright © 2019 The Apache Software Foundation