public abstract class NutchTool extends Configured
Modifier and Type | Field and Description |
---|---|
protected Job |
currentJob |
protected int |
currentJobNum |
protected int |
numJobs |
protected HashMap<String,Object> |
results |
protected Map<String,Object> |
status |
Constructor and Description |
---|
NutchTool() |
NutchTool(Configuration conf) |
Modifier and Type | Method and Description |
---|---|
float |
getProgress()
Returns relative progress of the tool, a float in range [0,1].
|
Map<String,Object> |
getStatus()
Returns current status of the running tool.
|
boolean |
killJob()
Kill the job immediately.
|
abstract Map<String,Object> |
run(Map<String,String> args,
String crawlId)
Runs the tool, using a map of arguments.
|
boolean |
stopJob()
Stop the job with the possibility to resume.
|
getConf, setConf
protected Job currentJob
protected int numJobs
protected int currentJobNum
public NutchTool(Configuration conf)
public NutchTool()
public abstract Map<String,Object> run(Map<String,String> args, String crawlId) throws Exception
Exception
public float getProgress()
public boolean stopJob() throws Exception
killJob()
.Exception
Copyright © 2015 The Apache Software Foundation