org.apache.manifoldcf.crawler.connectors.rss
Class ThrottledFetcher.DataRecorder

java.lang.Object
  extended by 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


Field Summary
protected  int documentNumber
           
protected  boolean initialized
           
protected  long startTime
           
 
Constructor Summary
ThrottledFetcher.DataRecorder()
           
 
Method Summary
 ThrottledFetcher.DataSession getSession(java.lang.String url)
           
protected  void initializeParameters()
           
protected  java.lang.String readFile(java.io.File f)
           
protected  void writeFile(java.io.File f, java.lang.String data)
           
 java.lang.String writeResponseRecord(java.lang.String url, int responseCode, java.util.ArrayList headerNames, java.util.ArrayList headerValues)
          Atomically write resultlog record, returning data file name to use
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

documentNumber

protected int documentNumber

startTime

protected long startTime

initialized

protected boolean initialized
Constructor Detail

ThrottledFetcher.DataRecorder

public ThrottledFetcher.DataRecorder()
Method Detail

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