diff options
author | slewis | 2011-03-08 22:18:01 +0000 |
---|---|---|
committer | slewis | 2011-03-08 22:18:01 +0000 |
commit | eff240cc1862e1b6f8de22d47edf7068ac8d3cba (patch) | |
tree | 35bde2efef02a16f5d18f70e1a1c66b65f1166eb /server-side/bundles/org.eclipse.ecf.server.generic/src/org/eclipse/ecf | |
parent | 331aa3909bf8579b6ba5f8abc3fd4113fc18c4b5 (diff) | |
download | org.eclipse.ecf-eff240cc1862e1b6f8de22d47edf7068ac8d3cba.tar.gz org.eclipse.ecf-eff240cc1862e1b6f8de22d47edf7068ac8d3cba.tar.xz org.eclipse.ecf-eff240cc1862e1b6f8de22d47edf7068ac8d3cba.zip |
Fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=339291. Added
convenience api to
org.eclipse.ecf.server.generic.IGenericServerContainerGroup
Diffstat (limited to 'server-side/bundles/org.eclipse.ecf.server.generic/src/org/eclipse/ecf')
-rw-r--r-- | server-side/bundles/org.eclipse.ecf.server.generic/src/org/eclipse/ecf/server/generic/IGenericServerContainerGroup.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/server-side/bundles/org.eclipse.ecf.server.generic/src/org/eclipse/ecf/server/generic/IGenericServerContainerGroup.java b/server-side/bundles/org.eclipse.ecf.server.generic/src/org/eclipse/ecf/server/generic/IGenericServerContainerGroup.java index ce96119ae..afa0b58b5 100644 --- a/server-side/bundles/org.eclipse.ecf.server.generic/src/org/eclipse/ecf/server/generic/IGenericServerContainerGroup.java +++ b/server-side/bundles/org.eclipse.ecf.server.generic/src/org/eclipse/ecf/server/generic/IGenericServerContainerGroup.java @@ -47,6 +47,33 @@ public interface IGenericServerContainerGroup { public ISharedObjectContainer createContainer(String path, int keepAlive, Map properties) throws ContainerCreateException; /** + * 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. + * + * @param path the uri path suffix for defining the container's identity. For example, if {@link #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 <code>null</code>. + * @param keepAlive a value (in milliseconds) that defines the keepAlive for the resulting container. + * @return shared object container. Will not be <code>null</code>. + * @throws ContainerCreateException if container with given path, keepAlive, and properties could not be created. + * @since 5.0 + */ + public ISharedObjectContainer createContainer(String path, int keepAlive) throws ContainerCreateException; + + /** + * 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. + * + * @param path the uri path suffix for defining the container's identity. For example, if {@link #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 <code>null</code>. + * @return shared object container. Will not be <code>null</code>. + * @throws ContainerCreateException if container with given path, keepAlive, and properties could not be created. + * @since 5.0 + */ + public ISharedObjectContainer createContainer(String path) throws ContainerCreateException; + + /** * Get the container instance associated with the given path. * * @param path of the container to return. Must not be <code>null</code>. |