IBM WebSphere eXtreme ScaleTM, Release 6.1.0.5
ObjectGrid API Specification

com.ibm.websphere.objectgrid.server
Class ServerFactory

java.lang.Object
  extended by com.ibm.websphere.objectgrid.server.ServerFactory

public final class ServerFactory
extends Object

A singleton factory for creating and retrieving the ObjectGrid Server singleton.

Since:
WAS XD 6.1 FIX3

Method Summary
static CatalogServerProperties getCatalogProperties()
          Returns the properties object instance used in configuring the catalog service aspects of the server.
static Server getInstance()
          Retrieves the Server singleton for the process, the first call to this method will initialize the singleton.
static ServerProperties getServerProperties()
          Returns the properties object instance used in configuring the server.
static boolean isServerStarted()
          Checks whether the server was started or not
static boolean stopServer()
          Stops the server if it was previously started
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Server getInstance()
Retrieves the Server singleton for the process, the first call to this method will initialize the singleton.

Returns:
The currently running server instance.

getServerProperties

public static ServerProperties getServerProperties()
Returns the properties object instance used in configuring the server.

Returns:
The properties object instance.

getCatalogProperties

public static CatalogServerProperties getCatalogProperties()
Returns the properties object instance used in configuring the catalog service aspects of the server.

Returns:
The properties object instance.

stopServer

public static boolean stopServer()
Stops the server if it was previously started

Returns:
true if server was stopped, false if not

isServerStarted

public static boolean isServerStarted()
Checks whether the server was started or not

Returns:
true if server was started, false if not

IBM WebSphere eXtreme ScaleTM, Release 6.1.0.5
ObjectGrid API Specification

© Copyright International Business Machines Corp 2005-2008. All rights reserved.