Package net.sf.ehcache.statistics.beans
Class ProxiedDynamicMBean
- java.lang.Object
-
- net.sf.ehcache.statistics.beans.ProxiedDynamicMBean
-
- All Implemented Interfaces:
javax.management.DynamicMBean
- Direct Known Subclasses:
ExtendedStatisticsMBean
public class ProxiedDynamicMBean extends java.lang.Object implements javax.management.DynamicMBeanThe ProxiedDynamicMBean. Supports truly dynamic mbeans in an easy manner.- Author:
- cschanck
-
-
Constructor Summary
Constructors Constructor Description ProxiedDynamicMBean(java.lang.String beanName, java.lang.String beanDescription, java.util.Collection<AttributeProxy> attributeStandins)Instantiates a new proxied dynamic m bean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetAttribute(java.lang.String name)Get a specific attribtuejavax.management.AttributeListgetAttributes(java.lang.String[] names)Get a list of attributes.java.lang.StringgetBeanName()Gets the bean name.javax.management.MBeanInfogetMBeanInfo()Accessor for mbean infovoidinitialize(java.util.Collection<AttributeProxy> attributeStandins)Initialize.java.lang.Objectinvoke(java.lang.String name, java.lang.Object[] args, java.lang.String[] sig)Not implemented.voidsetAttribute(javax.management.Attribute attribute)Set an attribtue by namejavax.management.AttributeListsetAttributes(javax.management.AttributeList list)Set an attribute list.
-
-
-
Constructor Detail
-
ProxiedDynamicMBean
public ProxiedDynamicMBean(java.lang.String beanName, java.lang.String beanDescription, java.util.Collection<AttributeProxy> attributeStandins)Instantiates a new proxied dynamic m bean.- Parameters:
beanName- the bean namebeanDescription- the bean descriptionattributeStandins- the attribute standins
-
-
Method Detail
-
initialize
public void initialize(java.util.Collection<AttributeProxy> attributeStandins)
Initialize.- Parameters:
attributeStandins- the attribute standins
-
getBeanName
public java.lang.String getBeanName()
Gets the bean name.- Returns:
- the bean name
-
getAttribute
public java.lang.Object getAttribute(java.lang.String name) throws javax.management.AttributeNotFoundExceptionGet a specific attribtue- Specified by:
getAttributein interfacejavax.management.DynamicMBean- Throws:
javax.management.AttributeNotFoundException
-
setAttribute
public void setAttribute(javax.management.Attribute attribute) throws javax.management.InvalidAttributeValueException, javax.management.MBeanException, javax.management.AttributeNotFoundExceptionSet an attribtue by name- Specified by:
setAttributein interfacejavax.management.DynamicMBean- Throws:
javax.management.InvalidAttributeValueExceptionjavax.management.MBeanExceptionjavax.management.AttributeNotFoundException
-
getAttributes
public javax.management.AttributeList getAttributes(java.lang.String[] names)
Get a list of attributes.- Specified by:
getAttributesin interfacejavax.management.DynamicMBean
-
setAttributes
public javax.management.AttributeList setAttributes(javax.management.AttributeList list)
Set an attribute list.- Specified by:
setAttributesin interfacejavax.management.DynamicMBean
-
invoke
public java.lang.Object invoke(java.lang.String name, java.lang.Object[] args, java.lang.String[] sig) throws javax.management.MBeanException, javax.management.ReflectionExceptionNot implemented.- Specified by:
invokein interfacejavax.management.DynamicMBean- Throws:
javax.management.MBeanExceptionjavax.management.ReflectionException
-
getMBeanInfo
public javax.management.MBeanInfo getMBeanInfo()
Accessor for mbean info- Specified by:
getMBeanInfoin interfacejavax.management.DynamicMBean
-
-