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:


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(javax.management.ObjectName objectName, java.lang.String configurationName)
           
 
Method Summary
 void addCategory(java.lang.String name)
           
 java.lang.Object getAttribute(java.lang.String attributeName)
           
 javax.management.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(javax.management.Attribute attribute)
           
 
Methods inherited from class org.jconfig.jmx.AbstractDynamicMBean
getAttributes, postDeregister, preDeregister, preRegister, setAttributes
 

Constructor Detail

ConfigurationDynamicMBean

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

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.