public class SystemConfig extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SystemConfig.JMXServiceDescriptor
Initialize RMI Registry and JMX Platform MBeanServer
|
Modifier and Type | Field and Description |
---|---|
static String |
CODESERVER
System property set indicating the address and port of the Webster instance created by this
utility, in the form of :
|
Modifier and Type | Method and Description |
---|---|
static String[] |
appendOverrides(String configFile)
If this utility has been started with override arguments, append the override arguments to
the configuration file
|
static String |
getBuildNumber()
Get the build number from the PlatformVersion.
|
Configuration |
getConfiguration()
Get the
Configuration created by this utility |
String[] |
getConfigurationParms()
Get the configuration parameters used to create this utility.
|
ServiceDescriptor |
getESMServiceDescriptor()
Get the ServiceDescriptor for the ESM
|
ServiceDescriptor |
getGSAServiceDescriptor() |
ServiceDescriptor |
getGSCServiceDescriptor()
Get the ServiceDescriptor for the GSC
|
ServiceDescriptor |
getGSMServiceDescriptor()
Get the ServiceDescriptor for the GSM
|
ServiceDescriptor |
getGSServiceDescriptor()
Get the ServiceDescriptor for the GigaSpaces service
|
String |
getHomeDir() |
static SystemConfig |
getInstance()
Get an instance of the SystemConfig object that has been previously created with
configuration arguments.
|
static SystemConfig |
getInstance(String[] configArgs)
Get an instance of the SystemConfig object
|
ServiceDescriptor |
getJMXServiceDescriptor()
Get the ServiceDescriptor to start JMX
|
ServiceDescriptor |
getLookupHandlerServiceDescriptor()
Get the ServiceDescriptor for LookupHandler.
|
ServiceDescriptor |
getMahaloServiceDescriptor()
Get the ServiceDescriptor for Mahalo transaction manager
|
String[] |
getOverrides()
Get the configuration overrides this utility was created with
|
URL[] |
getPlatformJars()
Get the platformJars
|
Collection<ServiceDescriptor> |
getServiceDescriptors(String[] keys)
Get ServiceDescriptor instances for the following keys
|
Properties |
getSystemProperties()
Get configured system properties
|
static String |
getVersionInfo() |
static String |
getVersionNumber()
Get the version number from the PlatformVersion.
|
Webster |
getWebster()
Create a Webster instance
|
int |
getWebsterPort() |
String |
getWebsterProtocol() |
public static final String CODESERVER
http://address:port
public static SystemConfig getInstance(String[] configArgs) throws ConfigurationException
configArgs
- An array whose first element is the location of the configuration source
and remaining elements specify override values for entries that will be
used to create the SystemConfig singleton for the system.
If the SystemConfig instance has already been created this parameter is
optionalConfigurationException
public static SystemConfig getInstance()
public String getHomeDir()
public String[] getConfigurationParms()
null
) parameters, a zero-length String array will be returnedpublic Configuration getConfiguration()
Configuration
created by this utilitypublic static String[] appendOverrides(String configFile)
configFile
- The file to append to, this parameter must not be null
configFile
parameter,
each subsequent element a corresponding override argument this utility was started with. If
there are no override arguments, the array will contain only the configFile
parameter.public String[] getOverrides()
null
public URL[] getPlatformJars() throws MalformedURLException, ConfigurationException
MalformedURLException
- If the URL resources result in an improperly formatted URLConfigurationException
- If there are errors accessing the configurationpublic Properties getSystemProperties() throws ConfigurationException, UnknownHostException
public String getWebsterProtocol()
public int getWebsterPort()
public Webster getWebster() throws BindException, ConfigurationException, UnknownHostException
BindException
- If the Webster instance could not be createdConfigurationException
- If errors occur reading the configurationUnknownHostException
public ServiceDescriptor getLookupHandlerServiceDescriptor() throws BindException, UnknownHostException, ConfigurationException
UnknownHostException
- If the codebase cannot be constructedBindException
- If the Webster instance could not be createdConfigurationException
- If errors occur reading the configuration or the default
configuration file cannot be locatedpublic ServiceDescriptor getMahaloServiceDescriptor() throws BindException, UnknownHostException, ConfigurationException
UnknownHostException
- If the codebase cannot be constructedBindException
- If the Webster instance could not be createdConfigurationException
- If errors occur reading the configuration or the default
configuration file cannot be locatedpublic Collection<ServiceDescriptor> getServiceDescriptors(String[] keys) throws BindException, UnknownHostException, ConfigurationException
keys
- Array of String values that map to ServiceDescriptor definitions for the Grid
Service Container, Grid Service Monitor pr GigaSpacesBindException
UnknownHostException
ConfigurationException
public ServiceDescriptor getGSAServiceDescriptor() throws UnknownHostException, ConfigurationException
public ServiceDescriptor getGSCServiceDescriptor() throws UnknownHostException, BindException, ConfigurationException
IllegalArgumentException
- if the root or gsLib directories do not exist or cannot be
read fromUnknownHostException
- If the codebase cannot be constructedBindException
- If the Webster instance could not be createdConfigurationException
- If errors occur reading the configuration or the default
configuration file cannot be locatedpublic ServiceDescriptor getGSMServiceDescriptor() throws UnknownHostException, BindException, ConfigurationException
IllegalArgumentException
- if the root or gsLib directories do not exist or cannot be
read fromUnknownHostException
- If the codebase cannot be constructedBindException
- If the Webster instance could not be createdConfigurationException
- If errors occur reading the configuration or the default
configuration file cannot be locatedpublic ServiceDescriptor getESMServiceDescriptor() throws UnknownHostException, BindException, ConfigurationException
public ServiceDescriptor getJMXServiceDescriptor() throws ConfigurationException
ConfigurationException
- If errors occur reading the configuration or the default
configuration file cannot be locatedpublic ServiceDescriptor getGSServiceDescriptor() throws UnknownHostException, BindException, ConfigurationException
IllegalArgumentException
- if the root or gsLib directories do not exist or cannot be
read fromUnknownHostException
- If the codebase cannot be constructedBindException
- If the Webster instance could not be createdConfigurationException
- If errors occur reading the configuration or the default
configuration file cannot be locatedpublic static String getVersionInfo()
public static String getBuildNumber()
public static String getVersionNumber()
Copyright © GigaSpaces.