org.jconfig.jmx
Class ConfigurationDynamicMBean

java.lang.Object
  extended byorg.jconfig.jmx.AbstractDynamicMBean
      extended byorg.jconfig.jmx.ConfigurationDynamicMBean

public class ConfigurationDynamicMBean
extends AbstractDynamicMBean

This MBean manages each Configuration that the ConfiguratorManager holds.

Atributes:


Operations:


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

Constructor Summary
ConfigurationDynamicMBean(ObjectName objectName, java.lang.String configurationName)
           
 
Method Summary
 void addCategory(java.lang.String name)
           
 java.lang.Object getAttribute(java.lang.String attributeName)
           
 MBeanInfo getMBeanInfo()
           
 java.lang.Object invoke(java.lang.String operationName, java.lang.Object[] params, java.lang.String[] signature)
           
 void postRegister(java.lang.Boolean registrationDone)
           
 void reloadConfiguration()
           
 void saveConfiguration()
           
 void setAttribute(Attribute attribute)
           
 
Methods inherited from class org.jconfig.jmx.AbstractDynamicMBean
getAttributes, postDeregister, preDeregister, preRegister, setAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationDynamicMBean

public ConfigurationDynamicMBean(ObjectName objectName,
                                 java.lang.String configurationName)
Method Detail

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.