org.niocchi.gc
Class GenericWorker

java.lang.Object
  extended by java.lang.Thread
      extended by org.niocchi.core.Worker
          extended by org.niocchi.gc.GenericWorker
All Implemented Interfaces:
java.lang.Runnable

public class GenericWorker
extends Worker

A simple worker that saves the resource into a specific file.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
GenericWorker(Crawler crawler, java.lang.String savePath)
           
 
Method Summary
 void processResource(Query query)
          This method will be called on each completed query, either in error or with a successfully crawled resource
 
Methods inherited from class org.niocchi.core.Worker
run
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericWorker

public GenericWorker(Crawler crawler,
                     java.lang.String savePath)
Method Detail

processResource

public void processResource(Query query)
Description copied from class: Worker
This method will be called on each completed query, either in error or with a successfully crawled resource

Specified by:
processResource in class Worker