Package org.apache.nutch.util
Class AbstractChecker
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.nutch.util.AbstractChecker
- All Implemented Interfaces:
Configurable,Tool
- Direct Known Subclasses:
CrawlDbReader,IndexingFiltersChecker,LinkDbReader,ParserChecker,URLFilterChecker,URLNormalizerChecker
Scaffolding class for the various Checker implementations. Can process cmdline input, stdin and TCP connections.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected intprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ProtocolOutputgetProtocolOutput(String url, CrawlDatum datum, boolean checkRobotsTxt) protected intprotected abstract intprocess(String line, StringBuilder output) protected intprocessSingle(String input) protected intprotected intprocessTCP(int tcpPort) protected intrun()Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Field Details
-
keepClientCnxOpen
protected boolean keepClientCnxOpen -
tcpPort
protected int tcpPort -
stdin
protected boolean stdin -
usage
-
-
Constructor Details
-
AbstractChecker
public AbstractChecker()
-
-
Method Details
-
process
- Throws:
Exception
-
parseArgs
-
run
- Throws:
Exception
-
processSingle
- Throws:
Exception
-
processStdin
- Throws:
Exception
-
processTCP
- Throws:
Exception
-
getProtocolOutput
protected ProtocolOutput getProtocolOutput(String url, CrawlDatum datum, boolean checkRobotsTxt) throws Exception - Throws:
Exception
-