org.eclipse.ecf.server.generic
Class GenericServerContainerGroup

java.lang.Object
  extended by org.eclipse.ecf.server.generic.GenericServerContainerGroup
All Implemented Interfaces:
IGenericServerContainerGroup

public class GenericServerContainerGroup
extends java.lang.Object
implements IGenericServerContainerGroup

Since:
4.0

Field Summary
 
Fields inherited from interface org.eclipse.ecf.server.generic.IGenericServerContainerGroup
DEFAULT_KEEPALIVE
 
Constructor Summary
GenericServerContainerGroup(java.lang.String hostname, int port, java.util.Map defaultContainerProperties)
           
 
Method Summary
 void close()
           
 ISharedObjectContainer createContainer(java.lang.String path)
           
 ISharedObjectContainer createContainer(java.lang.String path, int keepAlive)
           
 ISharedObjectContainer createContainer(java.lang.String path, int keepAlive, java.util.Map properties)
           
protected  TCPServerSOContainer createGenericServerContainer(java.lang.String path, int keepAlive, java.util.Map properties)
           
protected  ID createGenericServerID(java.lang.String path, java.util.Map properties)
           
protected  java.util.Map createGenericServerProperties(java.lang.String path, java.util.Map properties)
           
 ISharedObjectContainer getContainer(java.lang.String path)
           
 java.util.Map getContainers()
           
 java.net.URI getGroupEndpoint()
           
 boolean isListening()
           
 ISharedObjectContainer removeContainer(java.lang.String path)
           
 void startListening()
           
 void stopListening()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericServerContainerGroup

public GenericServerContainerGroup(java.lang.String hostname,
                                   int port,
                                   java.util.Map defaultContainerProperties)
Method Detail

getContainers

public java.util.Map getContainers()
Specified by:
getContainers in interface IGenericServerContainerGroup

createContainer

public ISharedObjectContainer createContainer(java.lang.String path,
                                              int keepAlive,
                                              java.util.Map properties)
                                       throws ContainerCreateException
Specified by:
createContainer in interface IGenericServerContainerGroup
Throws:
ContainerCreateException

createContainer

public ISharedObjectContainer createContainer(java.lang.String path,
                                              int keepAlive)
                                       throws ContainerCreateException
Throws:
ContainerCreateException

createContainer

public ISharedObjectContainer createContainer(java.lang.String path)
                                       throws ContainerCreateException
Throws:
ContainerCreateException

createGenericServerContainer

protected TCPServerSOContainer createGenericServerContainer(java.lang.String path,
                                                            int keepAlive,
                                                            java.util.Map properties)
                                                     throws ContainerCreateException
Throws:
ContainerCreateException

createGenericServerProperties

protected java.util.Map createGenericServerProperties(java.lang.String path,
                                                      java.util.Map properties)

createGenericServerID

protected ID createGenericServerID(java.lang.String path,
                                   java.util.Map properties)
                            throws ContainerCreateException
Throws:
ContainerCreateException

getContainer

public ISharedObjectContainer getContainer(java.lang.String path)
Specified by:
getContainer in interface IGenericServerContainerGroup

removeContainer

public ISharedObjectContainer removeContainer(java.lang.String path)
Specified by:
removeContainer in interface IGenericServerContainerGroup

startListening

public void startListening()
                    throws java.io.IOException
Specified by:
startListening in interface IGenericServerContainerGroup
Throws:
java.io.IOException

isListening

public boolean isListening()
Specified by:
isListening in interface IGenericServerContainerGroup

stopListening

public void stopListening()
Specified by:
stopListening in interface IGenericServerContainerGroup

close

public void close()
Specified by:
close in interface IGenericServerContainerGroup

getGroupEndpoint

public java.net.URI getGroupEndpoint()
Specified by:
getGroupEndpoint in interface IGenericServerContainerGroup