public class SSLGenericServerContainerGroup extends Object implements IGenericServerContainerGroup
DEFAULT_KEEPALIVE| Constructor and Description |
|---|
SSLGenericServerContainerGroup(String hostname,
int port,
InetAddress bindAddress,
Map defaultContainerProperties) |
SSLGenericServerContainerGroup(String hostname,
int port,
Map defaultContainerProperties) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this generic server container group.
|
ISharedObjectContainer |
createContainer(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(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(String path,
int keepAlive,
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(String path,
int keepAlive,
Map properties) |
protected ID |
createGenericServerID(String path,
Map properties) |
protected Map |
createGenericServerProperties(String path,
Map properties) |
ISharedObjectContainer |
getContainer(String path)
Get the container instance associated with the given path.
|
Map |
getContainers()
Get a map (String->ISharedObjectContainer) of the path->containers previously created.
|
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(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.
|
public SSLGenericServerContainerGroup(String hostname, int port, InetAddress bindAddress, Map defaultContainerProperties)
public Map getContainers()
IGenericServerContainerGroupgetContainers in interface IGenericServerContainerGroupnull, but
may return a Map of size==0.public ISharedObjectContainer createContainer(String path, int keepAlive, Map properties) throws ContainerCreateException
IGenericServerContainerGroupcreateContainer 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(String path, int keepAlive) throws ContainerCreateException
IGenericServerContainerGroupcreateContainer 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(String path) throws ContainerCreateException
IGenericServerContainerGroupcreateContainer 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(String path, int keepAlive, Map properties) throws ContainerCreateException
ContainerCreateExceptionprotected Map createGenericServerProperties(String path, Map properties)
protected ID createGenericServerID(String path, Map properties) throws ContainerCreateException
ContainerCreateExceptionpublic ISharedObjectContainer getContainer(String path)
IGenericServerContainerGroupgetContainer in interface IGenericServerContainerGrouppath - of the container to return. Must not be null.public ISharedObjectContainer removeContainer(String path)
IGenericServerContainerGroupremoveContainer in interface IGenericServerContainerGrouppath - of the shared object container to remove.null will be returned.public void startListening()
throws IOException
IGenericServerContainerGroupstartListening in interface IGenericServerContainerGroupIOException - 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()
IGenericServerContainerGroupstopListening in interface IGenericServerContainerGrouppublic void close()
IGenericServerContainerGroupIGenericServerContainerGroup.createContainer(String, int, Map) within this group, and for each one:IContainer.dispose()close in interface IGenericServerContainerGrouppublic URI getGroupEndpoint()
IGenericServerContainerGroupgetGroupEndpoint in interface IGenericServerContainerGrouppublic boolean isSSLTransport()
isSSLTransport in interface IGenericServerContainerGroupCopyright © 2019 Eclipse Foundation. All rights reserved.