dk.netarkivet.harvester.webinterface
Class DomainIngester

java.lang.Object
  extended by java.lang.Thread
      extended by dk.netarkivet.harvester.webinterface.DomainIngester
All Implemented Interfaces:
java.lang.Runnable

public class DomainIngester
extends java.lang.Thread

This class manages a thead of ingesting domains.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 boolean done
          Whether the ingesting is done yet.
 java.lang.Exception e
          If an exception is thrown during ingest, it gets stored here.
(package private)  org.apache.commons.logging.Log log
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DomainIngester(javax.servlet.jsp.JspWriter out, java.io.File ingestFile)
          Create a new ingester for a given session and outpout, reading domains from a file.
 
Method Summary
 void run()
          Starts the ingesting thread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

org.apache.commons.logging.Log log

done

public boolean done
Whether the ingesting is done yet.


e

public java.lang.Exception e
If an exception is thrown during ingest, it gets stored here.

Constructor Detail

DomainIngester

public DomainIngester(javax.servlet.jsp.JspWriter out,
                      java.io.File ingestFile)
Create a new ingester for a given session and outpout, reading domains from a file.

Parameters:
out - The writer that goes into HTML output
ingestFile - The file of domains to ingest.
Method Detail

run

public void run()
Starts the ingesting thread. When 'done' is set to true, the thread is finished, and any exceptions are found in 'e'.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread