com.antiaction.mayhem.mail.smtpd
Class ProcessWorker

java.lang.Object
  extended by com.antiaction.mayhem.mail.smtpd.ProcessWorker
All Implemented Interfaces:
IThreadWorker, IRequestWorker, java.lang.Cloneable, java.lang.Runnable

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

Process Worker.

Version:
1.00
Author:
Nicholas Clarke

Field Summary
 BufferedInputStream fileIn
          Managed inputstream.
 PrintOutputStream fileOut
          Managed outputstream.
 
Constructor Summary
ProcessWorker()
           
 
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 setServiceManager(ISMTPServiceManager serviceManager)
           
 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
 

Field Detail

fileIn

public BufferedInputStream fileIn
Managed inputstream.


fileOut

public PrintOutputStream fileOut
Managed outputstream.

Constructor Detail

ProcessWorker

public ProcessWorker()
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)

setServiceManager

public void setServiceManager(ISMTPServiceManager serviceManager)

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.