info.simongibbs.scoof
Class Worker

java.lang.Object
  extended byinfo.simongibbs.scoof.Worker
All Implemented Interfaces:
java.lang.Runnable

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

Polls the queue of tasks in the code base and runs them sequentially until the associated Spider has completed and the queue is empty.

Version:
$Revision: 1.4 $
Author:
Simon Gibbs

Constructor Summary
Worker(CodeBase cb)
          Constructor for Worker.
 
Method Summary
 CodeBase getBase()
          Get the parent CodeBase
 boolean isFinished()
          Check whether the Worker is finished.
 void run()
          Sequentially processes files untill none are left and the spider is done looking.
 void setBase(CodeBase base)
          Set the CodeBase
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Worker

public Worker(CodeBase cb)
Constructor for Worker.

Method Detail

run

public void run()
Sequentially processes files untill none are left and the spider is done looking.

Specified by:
run in interface java.lang.Runnable

getBase

public CodeBase getBase()
Get the parent CodeBase

Returns:
CodeBase

isFinished

public boolean isFinished()
Check whether the Worker is finished.

Returns:
boolean true if the Worker has hung tools.

setBase

public void setBase(CodeBase base)
Set the CodeBase

Parameters:
base -