|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
---|---|
CatalogServerProperties | Defines a set of properties to be used at initialization by the ObjectGrid server runtime. |
Container | The ObjectGrid Container class hosts the set of partition shards for some ObjectGrid application. |
Server | The Server is a singleton instance that represents the process scoped elements of an ObjectGrid server. |
ServerProperties | The set of properties used to define the behavior of the ObjectGrid server runtime. |
Class Summary | |
---|---|
ServerFactory | A singleton factory for creating and retrieving the ObjectGrid Server singleton. |
This package contains the primary interfaces and classes for starting ObjectGrid servers in an existing process.
Application servers can use this interface to start an ObjectGrid container or catalog server in the current JVM.
In the following example we expect a catalog service is running on the localhost with the default listener port, 2809.
// Set initial server properties, in this case just the server name. ServerFactory.getServerProperties().setServerName("ObjectGridServer"); // First touch of getInstance initializes the server. Server server = ServerFactory.getInstance(); // Get the policy for the object grid we want to run. DeploymentPolicy policy = DeploymentPolicyFactory.createDeploymentPolicy( new File("deploymentPolicy.xml").toURL(), new File("objectGrid.xml").toURL()); // Start the container with the given object grid configuration. Container container = server.createContainer(policy); // Do something with it... // Now shut it down. container.teardown(); // Stop the server to bring down the process. server.stopServer();
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |