public class PropertyManagementService
extends javax.management.NotificationBroadcasterSupport
implements javax.management.DynamicMBean
Constructor and Description |
---|
PropertyManagementService(java.lang.String filename)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttribute(java.lang.String name) |
javax.management.AttributeList |
getAttributes(java.lang.String[] names) |
javax.management.MBeanInfo |
getMBeanInfo() |
java.lang.Object |
invoke(java.lang.String name,
java.lang.Object[] args,
java.lang.String[] sig) |
void |
setAttribute(javax.management.Attribute attribute) |
javax.management.AttributeList |
setAttributes(javax.management.AttributeList list) |
public PropertyManagementService(java.lang.String filename) throws java.io.IOException
filename
- Name of the configuration file.IOException
- if properties cannot be read from the configuration file
due to an I/O error.java.io.IOException
public java.lang.String getAttribute(java.lang.String name) throws javax.management.AttributeNotFoundException, javax.management.MBeanException
getAttribute
in interface javax.management.DynamicMBean
javax.management.AttributeNotFoundException
javax.management.MBeanException
public javax.management.AttributeList getAttributes(java.lang.String[] names)
getAttributes
in interface javax.management.DynamicMBean
public void setAttribute(javax.management.Attribute attribute) throws javax.management.InvalidAttributeValueException, javax.management.MBeanException, javax.management.AttributeNotFoundException
setAttribute
in interface javax.management.DynamicMBean
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.AttributeNotFoundException
public javax.management.AttributeList setAttributes(javax.management.AttributeList list)
setAttributes
in interface javax.management.DynamicMBean
public java.lang.Object invoke(java.lang.String name, java.lang.Object[] args, java.lang.String[] sig) throws javax.management.MBeanException, javax.management.ReflectionException
invoke
in interface javax.management.DynamicMBean
javax.management.MBeanException
javax.management.ReflectionException
public javax.management.MBeanInfo getMBeanInfo()
getMBeanInfo
in interface javax.management.DynamicMBean