org.apache.droids
Class HelloWorker

Package class diagram package HelloWorker
java.lang.Object
  extended by java.lang.Thread
      extended by org.apache.droids.HelloWorker
All Implemented Interfaces:
Runnable, DelayWorker, Worker

public class HelloWorker
extends Thread
implements DelayWorker


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
protected  int id
           
protected  org.apache.commons.logging.Log log
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
HelloWorker()
           
 
Method Summary
protected  void filter(Parse parse)
           
protected  Outlink[] filterLinks(Parse parse)
           
 DelayTimer getDelayTimer()
           
 int getDepth()
           
 Droid getDroid()
           
 URLFiltersFactory getFiltersFactory()
           
 HandlerFactory getHandlerFactory()
           
 long getId()
           
 Task getLink()
           
protected  Parse getParse()
           
 ParserFactory getParserFactory()
           
 Protocol getProtocol()
           
 ProtocolFactory getProtocolFactory()
           
 Queue getQueue()
           
 String getUri()
           
protected  void handle(Parse parse)
           
 void run()
           
 void setDelayTimer(DelayTimer delayTimer)
           
 void setDepth(int x)
           
 void setDroid(Droid droid)
           
 void setProtocol(Protocol protocol)
           
 void setQueue(Queue queue)
           
 void setUri(String uri)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, 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

protected final org.apache.commons.logging.Log log

id

protected int id
Constructor Detail

HelloWorker

public HelloWorker()
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

handle

protected void handle(Parse parse)
               throws MalformedURLException,
                      IOException
Throws:
MalformedURLException
IOException

getParse

protected Parse getParse()

filter

protected void filter(Parse parse)

filterLinks

protected Outlink[] filterLinks(Parse parse)

setQueue

public void setQueue(Queue queue)
Specified by:
setQueue in interface Worker

setDroid

public void setDroid(Droid droid)
              throws DroidsException
Specified by:
setDroid in interface Worker
Throws:
DroidsException

getDepth

public int getDepth()
Specified by:
getDepth in interface Worker
Returns:
the configured maximal depth

getId

public long getId()
Specified by:
getId in interface Worker
Overrides:
getId in class Thread
Returns:
the id of the worker

setDepth

public void setDepth(int x)
Specified by:
setDepth in interface Worker

getLink

public Task getLink()

getProtocolFactory

public ProtocolFactory getProtocolFactory()

getParserFactory

public ParserFactory getParserFactory()

getFiltersFactory

public URLFiltersFactory getFiltersFactory()

getHandlerFactory

public HandlerFactory getHandlerFactory()

getDroid

public Droid getDroid()

setUri

public void setUri(String uri)

getUri

public String getUri()

setProtocol

public void setProtocol(Protocol protocol)

getProtocol

public Protocol getProtocol()

getQueue

public Queue getQueue()

getDelayTimer

public DelayTimer getDelayTimer()

setDelayTimer

public void setDelayTimer(DelayTimer delayTimer)
                   throws DroidsException
Specified by:
setDelayTimer in interface DelayWorker
Throws:
DroidsException


Copyright © 2008 The Apache Software Foundation