org.apache.manifoldcf.crawler.connectors.rss
Class ThrottledFetcher.DataRecorder
java.lang.Object
org.apache.manifoldcf.crawler.connectors.rss.ThrottledFetcher.DataRecorder
- Enclosing class:
- ThrottledFetcher
protected static class ThrottledFetcher.DataRecorder
- extends java.lang.Object
This class takes care of recording data and results for posterity
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
documentNumber
protected int documentNumber
startTime
protected long startTime
initialized
protected boolean initialized
ThrottledFetcher.DataRecorder
public ThrottledFetcher.DataRecorder()
readFile
protected java.lang.String readFile(java.io.File f)
throws java.io.IOException
- Throws:
java.io.IOException
writeFile
protected void writeFile(java.io.File f,
java.lang.String data)
throws java.io.IOException
- Throws:
java.io.IOException
initializeParameters
protected void initializeParameters()
getSession
public ThrottledFetcher.DataSession getSession(java.lang.String url)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
writeResponseRecord
public java.lang.String writeResponseRecord(java.lang.String url,
int responseCode,
java.util.ArrayList headerNames,
java.util.ArrayList headerValues)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
- Atomically write resultlog record, returning data file name to use
- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException