| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ecf.server.generic.SSLGenericServerContainerGroup
public class SSLGenericServerContainerGroup
| Field Summary | 
|---|
| Fields inherited from interface org.eclipse.ecf.server.generic.IGenericServerContainerGroup | 
|---|
DEFAULT_KEEPALIVE | 
| Constructor Summary | |
|---|---|
SSLGenericServerContainerGroup(java.lang.String hostname,
                               int port,
                               java.util.Map defaultContainerProperties)
 | 
|
| Method Summary | |
|---|---|
 void | 
close()
Close this generic server container group.  | 
 ISharedObjectContainer | 
createContainer(java.lang.String path)
Create a shared object container within this container group, given a path, a keepAlive value, and a Map of properties that will be provided to the created container.  | 
 ISharedObjectContainer | 
createContainer(java.lang.String path,
                int keepAlive)
Create a shared object container within this container group, given a path, a keepAlive value, and a Map of properties that will be provided to the created container.  | 
 ISharedObjectContainer | 
createContainer(java.lang.String path,
                int keepAlive,
                java.util.Map properties)
Create a shared object container within this container group, given a path, a keepAlive value, and a Map of properties that will be provided to the created container.  | 
protected  SSLServerSOContainer | 
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)
Get the container instance associated with the given path.  | 
 java.util.Map | 
getContainers()
Get a map (String->ISharedObjectContainer) of the path->containers previously created.  | 
 java.net.URI | 
getGroupEndpoint()
Get the URI for the group endpoint.  | 
protected  SSLServerSOContainerGroup | 
getServerGroup()
 | 
 boolean | 
isListening()
Returns true if this container group previously started listening via a successful call to IGenericServerContainerGroup.startListening()). | 
 boolean | 
isSSLTransport()
 | 
 ISharedObjectContainer | 
removeContainer(java.lang.String path)
Remove previously created container with given path.  | 
 void | 
startListening()
Start listening on the port given to this generic server container group upon creation.  | 
 void | 
stopListening()
Stop listening on port given to this generic server container group upon creation.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SSLGenericServerContainerGroup(java.lang.String hostname,
                                      int port,
                                      java.util.Map defaultContainerProperties)
| Method Detail | 
|---|
public java.util.Map getContainers()
IGenericServerContainerGroup
getContainers in interface IGenericServerContainerGroupnull, but
 may return a Map of size==0.
public ISharedObjectContainer createContainer(java.lang.String path,
                                              int keepAlive,
                                              java.util.Map properties)
                                       throws ContainerCreateException
IGenericServerContainerGroup
createContainer in interface IGenericServerContainerGrouppath - the uri path suffix for defining the container's identity.  For example, if IGenericServerContainerGroup.getGroupEndpoint()
 returns 'ecftcp://localhost:3282', and a path of '/server' is used to create a new container, then the container's id
 will be 'ecftcp://localhost:3282/server'.  Must not be null.keepAlive - a value (in milliseconds) that defines the keepAlive for the resulting container.properties - to be associated to the returned container upon instantiation.
null.
ContainerCreateException - if container with given path, keepAlive, and properties could not be created.
public ISharedObjectContainer createContainer(java.lang.String path,
                                              int keepAlive)
                                       throws ContainerCreateException
IGenericServerContainerGroup
createContainer in interface IGenericServerContainerGrouppath - the uri path suffix for defining the container's identity.  For example, if IGenericServerContainerGroup.getGroupEndpoint()
 returns 'ecftcp://localhost:3282', and a path of '/server' is used to create a new container, then the container's id
 will be 'ecftcp://localhost:3282/server'.  Must not be null.keepAlive - a value (in milliseconds) that defines the keepAlive for the resulting container.
null.
ContainerCreateException - if container with given path, keepAlive, and properties could not be created.
public ISharedObjectContainer createContainer(java.lang.String path)
                                       throws ContainerCreateException
IGenericServerContainerGroup
createContainer in interface IGenericServerContainerGrouppath - the uri path suffix for defining the container's identity.  For example, if IGenericServerContainerGroup.getGroupEndpoint()
 returns 'ecftcp://localhost:3282', and a path of '/server' is used to create a new container, then the container's id
 will be 'ecftcp://localhost:3282/server'.  Must not be null.
null.
ContainerCreateException - if container with given path, keepAlive, and properties could not be created.protected SSLServerSOContainerGroup getServerGroup()
protected SSLServerSOContainer createGenericServerContainer(java.lang.String path,
                                                            int keepAlive,
                                                            java.util.Map properties)
                                                     throws ContainerCreateException
ContainerCreateException
protected java.util.Map createGenericServerProperties(java.lang.String path,
                                                      java.util.Map properties)
protected ID createGenericServerID(java.lang.String path,
                                   java.util.Map properties)
                            throws ContainerCreateException
ContainerCreateExceptionpublic ISharedObjectContainer getContainer(java.lang.String path)
IGenericServerContainerGroup
getContainer in interface IGenericServerContainerGrouppath - of the container to return.  Must not be null.
public ISharedObjectContainer removeContainer(java.lang.String path)
IGenericServerContainerGroup
removeContainer in interface IGenericServerContainerGrouppath - of the shared object container to remove.
null will be returned.
public void startListening()
                    throws java.io.IOException
IGenericServerContainerGroup
startListening in interface IGenericServerContainerGroupjava.io.IOException - if the server port cannot be opened for listening.IGenericServerContainerGroupFactory.createContainerGroup(String, int, Map)public boolean isListening()
IGenericServerContainerGrouptrue if this container group previously started listening via a successful call to IGenericServerContainerGroup.startListening()).
isListening in interface IGenericServerContainerGrouptrue if currently listening, false otherwise.public void stopListening()
IGenericServerContainerGroup
stopListening in interface IGenericServerContainerGrouppublic void close()
IGenericServerContainerGroupIGenericServerContainerGroup.createContainer(String, int, Map) within this group, and for each one:IContainer.dispose()
close in interface IGenericServerContainerGrouppublic java.net.URI getGroupEndpoint()
IGenericServerContainerGroup
getGroupEndpoint in interface IGenericServerContainerGrouppublic boolean isSSLTransport()
isSSLTransport in interface IGenericServerContainerGroup
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||