wt.jmx.core.mbeans
Interface PropertiesMonitorMBean

All Superinterfaces:
SelfEmailingMBean

public interface PropertiesMonitorMBean
extends 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
 String[] getProperties()
          Current properties represented as sorted key=value Strings

Supported API: true
 String getProperty(String propertyName)
          Retrieves the value of a specified property

Supported API: true
 void setProperty(String propertyName, String newValue)
          Sets the value of a specified property.
 
Methods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean
emailThisMBean
 

Method Detail

getProperties

String[] getProperties()
Current properties represented as sorted key=value Strings

Supported API: true


getProperty

String getProperty(String propertyName)
Retrieves the value of a specified property

Supported API: true

Parameters:
propertyName - name of property to retrieve

setProperty

void setProperty(String propertyName,
                 String newValue)
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 retrieve
newValue - new value to aassign to property