org.apache.droids
Class HelloWorker
java.lang.Object
java.lang.Thread
org.apache.droids.HelloWorker
- All Implemented Interfaces:
- Runnable, DelayWorker, Worker
public class HelloWorker
- extends Thread
- implements DelayWorker
Field Summary |
protected int |
id
|
protected org.apache.commons.logging.Log |
log
|
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 |
log
protected final org.apache.commons.logging.Log log
id
protected int id
HelloWorker
public HelloWorker()
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