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