uk.ac.ic.doc.automed.p2p.communication
Class AbstractDaemon
java.lang.Object
uk.ac.ic.doc.automed.p2p.communication.AbstractDaemon
- All Implemented Interfaces:
- java.lang.Runnable
- Direct Known Subclasses:
- AbstractServer
public abstract class AbstractDaemon
- extends java.lang.Object
- implements java.lang.Runnable
- Author:
- Charis
TODO To change the template for this generated type comment go to
Window - Preferences - Java - Code Style - Code Templates
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDaemon
public AbstractDaemon()
init
public void init()
throws java.io.IOException
- Throws:
java.io.IOException
getTimeOut
public abstract int getTimeOut()
getWorkersNumber
public abstract int getWorkersNumber()
getDesiredPort
public abstract int getDesiredPort()
getBufferSize
public abstract int getBufferSize()
replyToMessage
public abstract void replyToMessage(uk.ac.ic.doc.automed.p2p.messages.abstractlayer.AbstractMessage message,
java.io.OutputStream output)
throws java.io.IOException
- Throws:
java.io.IOException
getPort
public int getPort()
run
public void run()
- Specified by:
run in interface java.lang.Runnable