org.apache.nutch.crawl
Class Crawler
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.nutch.util.NutchTool
org.apache.nutch.crawl.Crawler
- All Implemented Interfaces:
- Configurable, Tool
public class Crawler
- extends NutchTool
- implements Tool
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Crawler
public Crawler()
getStatus
public Map<String,Object> getStatus()
- Description copied from class:
NutchTool
- Returns current status of the running tool.
- Overrides:
getStatus
in class NutchTool
stopJob
public boolean stopJob()
throws Exception
- Description copied from class:
NutchTool
- Stop the job with the possibility to resume. Subclasses should
override this, since by default it calls
NutchTool.killJob()
.
- Overrides:
stopJob
in class NutchTool
- Returns:
- true if succeeded, false otherwise
- Throws:
Exception
killJob
public boolean killJob()
throws Exception
- Description copied from class:
NutchTool
- Kill the job immediately. Clients should assume that any results
that the job produced so far are in inconsistent state or missing.
- Overrides:
killJob
in class NutchTool
- Returns:
- true if succeeded, false otherwise.
- Throws:
Exception
run
public Map<String,Object> run(Map<String,Object> args)
throws Exception
- Description copied from class:
NutchTool
- Runs the tool, using a map of arguments.
May return results, or null.
- Specified by:
run
in class NutchTool
- Throws:
Exception
getProgress
public float getProgress()
- Description copied from class:
NutchTool
- Returns relative progress of the tool, a float in range [0,1].
- Overrides:
getProgress
in class NutchTool
run
public int run(String[] args)
throws Exception
- Specified by:
run
in interface Tool
- Throws:
Exception
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2012 The Apache Software Foundation