org.ow2.petals.component.framework
Class ExtensionMBean

java.lang.Object
  extended by org.ow2.petals.component.framework.ExtensionMBean
All Implemented Interfaces:
javax.management.DynamicMBean

public class ExtensionMBean
extends java.lang.Object
implements javax.management.DynamicMBean

The dynamic MBean used to expose component attributes and operations via JMX.

Author:
chamerling - EBM WebSourcing, rnaudin - EBM WebSourcing

Constructor Summary
ExtensionMBean(DefaultBootstrap bootstrap)
          Creates a new instance of ExtensionMBean
 
Method Summary
 java.lang.Object getAttribute(java.lang.String attribute)
           
 javax.management.AttributeList getAttributes(java.lang.String[] attributes)
           
protected  javax.management.MBeanAttributeInfo[] getAttributesInfos()
          Dynamically get attributes for the MBean.
 javax.management.MBeanInfo getMBeanInfo()
           
protected  javax.management.MBeanOperationInfo[] getOperationsInfos()
          Dynamically get the operations for the MBean.
 java.lang.Object invoke(java.lang.String actionName, java.lang.Object[] params, java.lang.String[] signature)
           
 void setAttribute(javax.management.Attribute attribute)
           
 javax.management.AttributeList setAttributes(javax.management.AttributeList list)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionMBean

public ExtensionMBean(DefaultBootstrap bootstrap)
Creates a new instance of ExtensionMBean

Parameters:
bootstrap -
Method Detail

getAttribute

public java.lang.Object getAttribute(java.lang.String attribute)
                              throws javax.management.AttributeNotFoundException,
                                     javax.management.MBeanException,
                                     javax.management.ReflectionException
Specified by:
getAttribute in interface javax.management.DynamicMBean
Throws:
javax.management.AttributeNotFoundException
javax.management.MBeanException
javax.management.ReflectionException

getAttributes

public javax.management.AttributeList getAttributes(java.lang.String[] attributes)
Specified by:
getAttributes in interface javax.management.DynamicMBean

setAttribute

public void setAttribute(javax.management.Attribute attribute)
                  throws javax.management.AttributeNotFoundException,
                         javax.management.InvalidAttributeValueException,
                         javax.management.MBeanException,
                         javax.management.ReflectionException
Specified by:
setAttribute in interface javax.management.DynamicMBean
Throws:
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException

setAttributes

public javax.management.AttributeList setAttributes(javax.management.AttributeList list)
Specified by:
setAttributes in interface javax.management.DynamicMBean

invoke

public java.lang.Object invoke(java.lang.String actionName,
                               java.lang.Object[] params,
                               java.lang.String[] signature)
                        throws javax.management.MBeanException,
                               javax.management.ReflectionException
Specified by:
invoke in interface javax.management.DynamicMBean
Throws:
javax.management.MBeanException
javax.management.ReflectionException

getMBeanInfo

public javax.management.MBeanInfo getMBeanInfo()
Specified by:
getMBeanInfo in interface javax.management.DynamicMBean

getAttributesInfos

protected javax.management.MBeanAttributeInfo[] getAttributesInfos()
Dynamically get attributes for the MBean. The attributes are the ones from the properties file.

Returns:

getOperationsInfos

protected javax.management.MBeanOperationInfo[] getOperationsInfos()
Dynamically get the operations for the MBean. The operations are defined in the properties manager with a special prefix.

Returns:


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.