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
|
Configuration |
getConfiguration()
Get the
Configuration created by this utility |
String[] |
getConfigurationParms()
Get the configuration parameters used to create this utility.
|
Closeable |
getCustomService(String key) |
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
|
String[] |
getOverrides()
Get the configuration overrides this utility was created with
|
URL[] |
getPlatformJars()
Get the platformJars
|
ServiceDescriptor |
getServiceDescriptor(String key) |
Properties |
getSystemProperties()
Get configured system properties
|
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 optional
ConfigurationException
public static SystemConfig getInstance()
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 getServiceDescriptor(String key) throws BindException, ConfigurationException, UnknownHostException
public ServiceDescriptor getJMXServiceDescriptor() throws ConfigurationException
ConfigurationException
- If errors occur reading the configuration or the default
configuration file cannot be locatedCopyright © GigaSpaces.