org.jconfig.jmx
Class ConfigurationDynamicMBean
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurationDynamicMBean
public ConfigurationDynamicMBean(ObjectName objectName,
java.lang.String configurationName)
getMBeanInfo
public MBeanInfo getMBeanInfo()
invoke
public java.lang.Object invoke(java.lang.String operationName,
java.lang.Object[] params,
java.lang.String[] signature)
throws MBeanException,
ReflectionException
- Throws:
MBeanException
ReflectionException
addCategory
public void addCategory(java.lang.String name)
throws MBeanException
- Throws:
MBeanException
reloadConfiguration
public void reloadConfiguration()
throws MBeanException
- Throws:
MBeanException
saveConfiguration
public void saveConfiguration()
throws MBeanException
- Throws:
MBeanException
getAttribute
public java.lang.Object getAttribute(java.lang.String attributeName)
throws AttributeNotFoundException,
MBeanException,
ReflectionException
- Throws:
AttributeNotFoundException
MBeanException
ReflectionException
setAttribute
public void setAttribute(Attribute attribute)
throws AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException
- Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
postRegister
public void postRegister(java.lang.Boolean registrationDone)
- Overrides:
postRegister
in class AbstractDynamicMBean
Copyright © 2001-2005 Andreas Mecky, Terry Dye. All Rights Reserved.