com.multisoftgroup.jerry.server
Class AbstractServer
java.lang.Object
com.multisoftgroup.jerry.server.AbstractServer
- Direct Known Subclasses:
- ManagementServer, XMPP_SSLServer, XMPPServer
public abstract class AbstractServer
- extends Object
A basic server supporting background acceptance of new, authenticated
connections.
|
Field Summary |
protected org.apache.log4j.Logger |
log
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected org.apache.log4j.Logger log
AbstractServer
public AbstractServer()
getName
protected abstract String getName()
getServerSocketType
protected abstract ServerSocketType getServerSocketType()
processConnection
protected abstract void processConnection(Socket socket)
throws IOException
- Throws:
IOException
initServer
protected abstract void initServer()
throws IOException
- Throws:
IOException
finalizeServer
protected abstract void finalizeServer()
throws IOException
- Throws:
IOException
getPort
public abstract int getPort()
launch
public final void launch()
throws Exception
- Throws:
Exception
terminate
public final void terminate()