@Path(value="/db") public class DbResource extends AbstractResource
configManager, jobManager, server
Constructor and Description |
---|
DbResource() |
Modifier and Type | Method and Description |
---|---|
List<FetchNodeDbInfo> |
fetchDb(int to,
int from) |
javax.ws.rs.core.Response |
readdb(DbQuery dbQuery) |
throwBadRequestException
@POST @Path(value="/crawldb") @Consumes(value="application/json") public javax.ws.rs.core.Response readdb(DbQuery dbQuery)
@GET @Path(value="/fetchdb") public List<FetchNodeDbInfo> fetchDb(@DefaultValue(value="0") @QueryParam(value="to") int to, @DefaultValue(value="0") @QueryParam(value="from") int from)
Copyright © 2021 The Apache Software Foundation