Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2011-03-08 22:18:01 +0000
committerslewis2011-03-08 22:18:01 +0000
commiteff240cc1862e1b6f8de22d47edf7068ac8d3cba (patch)
tree35bde2efef02a16f5d18f70e1a1c66b65f1166eb /server-side
parent331aa3909bf8579b6ba5f8abc3fd4113fc18c4b5 (diff)
downloadorg.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')
-rw-r--r--server-side/bundles/org.eclipse.ecf.server.generic/META-INF/MANIFEST.MF2
-rw-r--r--server-side/bundles/org.eclipse.ecf.server.generic/src/org/eclipse/ecf/server/generic/IGenericServerContainerGroup.java27
2 files changed, 28 insertions, 1 deletions
diff --git a/server-side/bundles/org.eclipse.ecf.server.generic/META-INF/MANIFEST.MF b/server-side/bundles/org.eclipse.ecf.server.generic/META-INF/MANIFEST.MF
index cd6fbf33f..a078057c4 100644
--- a/server-side/bundles/org.eclipse.ecf.server.generic/META-INF/MANIFEST.MF
+++ b/server-side/bundles/org.eclipse.ecf.server.generic/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %plugin.name
Bundle-SymbolicName: org.eclipse.ecf.server.generic;singleton:=true
-Bundle-Version: 4.0.0.qualifier
+Bundle-Version: 5.0.0.qualifier
Bundle-Activator: org.eclipse.ecf.internal.server.generic.Activator
Bundle-Vendor: %plugin.provider
Bundle-Localization: plugin
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>.

Back to the top