@MXBean
public interface GlobalPropertiesMXBean
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MXBEAN_OBJECT_NAME
The object name by which a JMX client can find the GlobalPropertiesMXBean
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getProperty(java.lang.String name)
Retrieves the property value given the name of the attribute.
|
java.util.List<java.lang.String> |
listProperties()
Lists the names of the available global properties.
|
java.lang.String |
setProperty(java.lang.String name,
java.lang.String value)
Writes the property value to the configuration.
|
static final java.lang.String MXBEAN_OBJECT_NAME
java.lang.String getProperty(java.lang.String name)
throws java.lang.IllegalArgumentException
String value = serverConfig.getProperty("solutionAutoStart");
java.lang.IllegalArgumentException - if the property name is not recognized.name - the attribute name.java.lang.String setProperty(java.lang.String name,
java.lang.String value)
throws java.lang.IllegalArgumentException,
java.io.IOException
String previous = serverConfig.setProperty("solutionAutoStart", "true");
java.lang.IllegalArgumentException - if the property name is not recognized.java.io.IOException - if there was a problem updating the server.xml filename - the attribute name.value - the value of the property to set.java.util.List<java.lang.String> listProperties()
List<String> properties = serverConfig.listProperties();
© Copyright IBM 2017