public class NutchServer
extends javax.ws.rs.core.Application
| Modifier and Type | Field and Description |
|---|---|
static String |
NUTCH_SERVER |
| Constructor and Description |
|---|
NutchServer()
Public constructor which accepts the port we wish to run the server on as
well as the logging granularity.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canStop(boolean force)
Safety and convenience method to determine whether or not it is safe to
shut down the server.
|
Set<Class<?>> |
getClasses() |
ConfManager |
getConfMgr() |
JobManager |
getJobMgr() |
long |
getStarted() |
boolean |
isRunning()
Convenience method to determine whether a Nutch server is running.
|
static void |
main(String[] args) |
void |
start()
Starts the Nutch server printing some logging to the log file.
|
boolean |
stop(boolean force)
Stop the Nutch server.
|
public static final String NUTCH_SERVER
public NutchServer()
main(String[]) then it defaults to
'INFO' however best attempts should always be made to specify a logging
level.public Set<Class<?>> getClasses()
getClasses in class javax.ws.rs.core.Applicationpublic ConfManager getConfMgr()
public JobManager getJobMgr()
public long getStarted()
public boolean isRunning()
public void start()
public boolean canStop(boolean force)
org.apache.nutch.api.NutchApp#jobManager for a list of jobs with
JobInfo.state equal to
'RUNNING'.force - ignore running taskspublic boolean stop(boolean force)
force - boolean method to effectively kill jobs regardless of state.Copyright © 2015 The Apache Software Foundation