org.jconfig.jmx
Class ConfigurationDynamicMBean
org.jconfig.jmx.AbstractDynamicMBean
|
+--org.jconfig.jmx.ConfigurationDynamicMBean
- public class ConfigurationDynamicMBean
- extends AbstractDynamicMBean
This MBean manages each Configuration that the ConfiguratorManager holds.
Atributes:
- Its own name
- One attribute for each category
Operations:
- Reload: It reloads the configuration using ConfigurationManager.reload()
- Save: Saves que configuration using ConfigurationMananager.save()
Notes:
ConfigurationMbeans could be registered as FileChangeListeners
If the configuration file changes, the method reloadConfiguration should be executed
so as to sincronize the MBean with its managed configuration
- Author:
- Eduardo Macarron emacarron@euskalnet.net
ConfigurationDynamicMBean
public ConfigurationDynamicMBean(javax.management.ObjectName objectName,
java.lang.String configurationName)
getMBeanInfo
public javax.management.MBeanInfo getMBeanInfo()
invoke
public java.lang.Object invoke(java.lang.String operationName,
java.lang.Object[] params,
java.lang.String[] signature)
throws javax.management.MBeanException,
javax.management.ReflectionException
addCategory
public void addCategory(java.lang.String name)
throws javax.management.MBeanException
reloadConfiguration
public void reloadConfiguration()
throws javax.management.MBeanException
saveConfiguration
public void saveConfiguration()
throws javax.management.MBeanException
getAttribute
public java.lang.Object getAttribute(java.lang.String attributeName)
throws javax.management.AttributeNotFoundException,
javax.management.MBeanException,
javax.management.ReflectionException
setAttribute
public void setAttribute(javax.management.Attribute attribute)
throws javax.management.AttributeNotFoundException,
javax.management.InvalidAttributeValueException,
javax.management.MBeanException,
javax.management.ReflectionException
postRegister
public void postRegister(java.lang.Boolean registrationDone)
- Overrides:
postRegister
in class AbstractDynamicMBean
Copyright © 2001-2003 Andreas Mecky, Terry Dye. All Rights Reserved.