@Path(value="/admin") public class AdminResource extends AbstractResource
configManager, jobManager, server
Constructor and Description |
---|
AdminResource() |
Modifier and Type | Method and Description |
---|---|
NutchServerInfo |
getServerStatus()
To get the status of the Nutch Server
|
String |
stopServer(boolean force)
Stop the Nutch server
|
throwBadRequestException
@GET @Path(value="/") public NutchServerInfo getServerStatus()
@GET @Path(value="/stop") public String stopServer(@QueryParam(value="force") boolean force)
force
- If set to true, it will kill any running jobsCopyright © 2021 The Apache Software Foundation