org.eclipse.ecf.server.generic
Class AbstractGenericServer
java.lang.Object
org.eclipse.ecf.server.generic.AbstractGenericServer
- Direct Known Subclasses:
- SimpleGenericServer
public abstract class AbstractGenericServer
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serverGroup
protected TCPServerSOContainerGroup serverGroup
AbstractGenericServer
public AbstractGenericServer(java.lang.String host,
int port)
getFirstServerContainer
public GenericServerContainer getFirstServerContainer()
- Since:
- 2.0
getServerContainers
public java.util.List getServerContainers()
getServerContainer
public GenericServerContainer getServerContainer(int index)
- Since:
- 2.0
putOnTheAir
protected void putOnTheAir()
throws java.io.IOException
- Throws:
java.io.IOException
takeOffTheAir
protected void takeOffTheAir()
start
public void start(java.lang.String path,
int keepAlive)
throws java.lang.Exception
- Throws:
java.lang.Exception
stop
public void stop()
createAndInitializeServer
protected void createAndInitializeServer(java.lang.String path)
throws IDCreateException
- Throws:
IDCreateException
createAndInitializeServer
protected void createAndInitializeServer(java.lang.String path,
int keepAlive)
throws IDCreateException
- Throws:
IDCreateException
checkConnect
protected java.security.PermissionCollection checkConnect(java.lang.Object address,
ID fromID,
ID targetID,
java.lang.String targetGroup,
java.lang.Object connectData)
throws java.lang.Exception
- Throws:
java.lang.Exception
handleDisconnect
protected abstract void handleDisconnect(ID targetID)
handleEject
protected abstract void handleEject(ID targetID)
createConnectHandlerPolicy
protected IConnectHandlerPolicy createConnectHandlerPolicy(GenericServerContainer s,
java.lang.String path)
- Since:
- 2.0
createServerIDFromPath
protected ID createServerIDFromPath(java.lang.String path)
throws IDCreateException
- Throws:
IDCreateException
createServerConfig
protected SOContainerConfig createServerConfig(java.lang.String path)
throws IDCreateException
- Throws:
IDCreateException
getHost
protected java.lang.String getHost()
getPort
protected int getPort()