com.antiaction.mayhem.dnsd
Class RequestWorker

java.lang.Object
  extended by com.antiaction.mayhem.dnsd.RequestWorker
All Implemented Interfaces:
IThreadWorker, IRequestWorker, java.lang.Cloneable, java.lang.Runnable

public class RequestWorker
extends java.lang.Object
implements IRequestWorker, IThreadWorker

Author:
Nicholas TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
RequestWorker()
          Construct a RequestWorker.
 
Method Summary
 java.lang.Object clone()
          Overrides Cloneable.
 boolean init(java.util.HashMap props)
          Initialize worker.
 void run()
          Wait for connection.
 void setExit(boolean _exit)
           
 void setObjectBroker(IObjectBroker _objectBroker)
          Assign a Broker to this worker.
 void setService(Service service)
           
 void setThreadPool(IThreadPool _threadPool)
          Assign a ThreadPool to this thread.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestWorker

public RequestWorker()
Construct a RequestWorker.

Method Detail

init

public boolean init(java.util.HashMap props)
Description copied from interface: IRequestWorker
Initialize worker.

Specified by:
init in interface IRequestWorker
Parameters:
props - Properties.

clone

public java.lang.Object clone()
Description copied from interface: IThreadWorker
Overrides Cloneable.

Specified by:
clone in interface IThreadWorker
Overrides:
clone in class java.lang.Object
Returns:
a clone of this instance.
See Also:
Cloneable

setObjectBroker

public void setObjectBroker(IObjectBroker _objectBroker)
Description copied from interface: IRequestWorker
Assign a Broker to this worker.

Specified by:
setObjectBroker in interface IRequestWorker
Parameters:
_objectBroker - Associated Broker for this worker.

setService

public void setService(Service service)

setThreadPool

public void setThreadPool(IThreadPool _threadPool)
Description copied from interface: IThreadWorker
Assign a ThreadPool to this thread.

Specified by:
setThreadPool in interface IThreadWorker
Parameters:
_threadPool - Associated ThreadPool to this thread.

setExit

public void setExit(boolean _exit)

run

public void run()
Wait for connection.

Specified by:
run in interface java.lang.Runnable


Copyright © 2001-2004 Nicholas Clarke. All Rights Reserved.