Package wt.jmx.core.mbeans
Interface PropertiesMonitorMBean
- All Superinterfaces:
SelfEmailingMBean
Exposes current properties settings
This is necessary in part because Sun's java.lang:type=Runtime MBean
currently has a bug where if anyone has called System.setProperties()
with a Properties object that has been constructed via
new Properties( System.getProperties() ) only the non-default values are
shown by the SystemProperties attribute. Additionally, the SystemProperties
attribute is a CompositeData attribute and some consoles (like jconsole
currently) show this data in hash (rather than sorted) order.
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionString[]Current properties represented as sorted key=value Strings
Supported API: truegetProperty(String propertyName) Retrieves the value of a specified property
Supported API: truevoidsetProperty(String propertyName, String newValue) Sets the value of a specified property.Methods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean
emailThisMBean
-
Method Details
-
getProperties
String[] getProperties()Current properties represented as sorted key=value Strings
Supported API: true -
getProperty
Retrieves the value of a specified property
Supported API: true- Parameters:
propertyName- name of property to retrieve
-
setProperty
Sets the value of a specified property. Fires attribute change notification against property name (rather than an attribute) if property value is changed.
Supported API: true- Parameters:
propertyName- name of property to retrievenewValue- new value to aassign to property
-