The Encog Project

org.encog.bot.spider
Class SpiderWorker

java.lang.Object
  extended by org.encog.bot.spider.SpiderWorker
All Implemented Interfaces:
java.lang.Runnable

public class SpiderWorker
extends java.lang.Object
implements java.lang.Runnable

SpiderWorker: This class forms the workloads that are passed onto the thread pool.


Constructor Summary
SpiderWorker(Spider spider, java.net.URL url)
          Construct a SpiderWorker object.
 
Method Summary
 void run()
          This method is called by the thread pool to process one single URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpiderWorker

public SpiderWorker(Spider spider,
                    java.net.URL url)
Construct a SpiderWorker object.

Parameters:
spider - The spider this worker will work with.
url - The URL to be processed.
Method Detail

run

public void run()
This method is called by the thread pool to process one single URL.

Specified by:
run in interface java.lang.Runnable

The Encog Project