org.apache.nutch.service.resources

## Class DbResource

- java.lang.Object
- - org.apache.nutch.service.resources.AbstractResource
  - - org.apache.nutch.service.resources.DbResource

-     @Path(value="/db")
      public class DbResource
      extends AbstractResource

- - ### Field Summary

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

      `configManager, jobManager, server`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DbResource()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.util.List<FetchNodeDbInfo>` | `fetchDb(int to, int from)`
    `javax.ws.rs.core.Response` | `readdb(DbQuery dbQuery)`

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

      `throwBadRequestException`

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

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

- - ### Constructor Detail

    - #### DbResource

          public DbResource()

  - ### Method Detail

    - #### readdb

          @POST
           @Path(value="/crawldb")
           @Consumes(value="application/json")
          public javax.ws.rs.core.Response readdb(DbQuery dbQuery)

    - #### fetchDb

          @GET
           @Path(value="/fetchdb")
          public java.util.List<FetchNodeDbInfo> fetchDb(@DefaultValue(value="0") @QueryParam(value="to")
                                                                                       int to,
                                                                                       @DefaultValue(value="0") @QueryParam(value="from")
                                                                                       int from)

Copyright © 2019 The Apache Software Foundation