org.eclipse.ecf.server.generic
Class AbstractGenericServer

java.lang.Object
  extended by org.eclipse.ecf.server.generic.AbstractGenericServer
Direct Known Subclasses:
SimpleGenericServer

public abstract class AbstractGenericServer
extends java.lang.Object


Field Summary
protected  TCPServerSOContainerGroup serverGroup
           
 
Constructor Summary
AbstractGenericServer(java.lang.String host, int port)
           
 
Method Summary
protected  java.security.PermissionCollection checkConnect(java.lang.Object address, ID fromID, ID targetID, java.lang.String targetGroup, java.lang.Object connectData)
           
protected  void createAndInitializeServer(java.lang.String path)
           
protected  void createAndInitializeServer(java.lang.String path, int keepAlive)
           
protected  IConnectHandlerPolicy createConnectHandlerPolicy(GenericServerContainer s, java.lang.String path)
           
protected  SOContainerConfig createServerConfig(java.lang.String path)
           
protected  ID createServerIDFromPath(java.lang.String path)
           
 GenericServerContainer getFirstServerContainer()
           
protected  java.lang.String getHost()
           
protected  int getPort()
           
 GenericServerContainer getServerContainer(int index)
           
 java.util.List getServerContainers()
           
protected abstract  void handleDisconnect(ID targetID)
           
protected abstract  void handleEject(ID targetID)
           
protected  void putOnTheAir()
           
 void start(java.lang.String path, int keepAlive)
           
 void stop()
           
protected  void takeOffTheAir()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serverGroup

protected TCPServerSOContainerGroup serverGroup
Constructor Detail

AbstractGenericServer

public AbstractGenericServer(java.lang.String host,
                             int port)
Method Detail

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