org.apache.droids
Class AbstractDroid<T extends Task>
java.lang.Object
org.apache.droids.helper.Loggable
org.apache.droids.AbstractDroid<T>
- All Implemented Interfaces:
- Droid<T>
- Direct Known Subclasses:
- CrawlingDroid, SimpleWalkingDroid
public abstract class AbstractDroid<T extends Task>
- extends Loggable
- implements Droid<T>
Manage common tasks in standard Droids
| Fields inherited from class org.apache.droids.helper.Loggable |
log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
queue
protected final TaskQueue<T extends Task> queue
taskMaster
protected final TaskMaster<T extends Task> taskMaster
AbstractDroid
public AbstractDroid(TaskQueue<T> queue,
TaskMaster<T> taskMaster)
start
public void start()
- Description copied from interface:
Droid
- Invoke an instance of the worker used in the droid
- Specified by:
start in interface Droid<T extends Task>
getQueue
public TaskQueue<T> getQueue()
getTaskMaster
public TaskMaster<T> getTaskMaster()
- Description copied from interface:
Droid
- Get the task master
- Specified by:
getTaskMaster in interface Droid<T extends Task>
Copyright © 2007-2009. All Rights Reserved.