ehcache

net.sf.ehcache.statistics.beans
Class ProxiedDynamicMBean

java.lang.Object
  extended by net.sf.ehcache.statistics.beans.ProxiedDynamicMBean
All Implemented Interfaces:
DynamicMBean
Direct Known Subclasses:
ExtendedStatisticsMBean

public class ProxiedDynamicMBean
extends Object
implements DynamicMBean

The ProxiedDynamicMBean. Supports truly dynamic mbeans in an easy manner.

Author:
cschanck

Constructor Summary
ProxiedDynamicMBean(String beanName, String beanDescription, Collection<AttributeProxy> attributeStandins)
          Instantiates a new proxied dynamic m bean.
 
Method Summary
 Object getAttribute(String name)
          Get a specific attribtue
 AttributeList getAttributes(String[] names)
          Get a list of attributes.
 String getBeanName()
          Gets the bean name.
 MBeanInfo getMBeanInfo()
          Accessor for mbean info
 void initialize(Collection<AttributeProxy> attributeStandins)
          Initialize.
 Object invoke(String name, Object[] args, String[] sig)
          Not implemented.
 void setAttribute(Attribute attribute)
          Set an attribtue by name
 AttributeList setAttributes(AttributeList list)
          Set an attribute list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxiedDynamicMBean

public ProxiedDynamicMBean(String beanName,
                           String beanDescription,
                           Collection<AttributeProxy> attributeStandins)
Instantiates a new proxied dynamic m bean.

Parameters:
beanName - the bean name
beanDescription - the bean description
attributeStandins - the attribute standins
Method Detail

initialize

public void initialize(Collection<AttributeProxy> attributeStandins)
Initialize.

Parameters:
attributeStandins - the attribute standins

getBeanName

public String getBeanName()
Gets the bean name.

Returns:
the bean name

getAttribute

public Object getAttribute(String name)
                    throws AttributeNotFoundException
Get a specific attribtue

Specified by:
getAttribute in interface DynamicMBean
Throws:
AttributeNotFoundException

setAttribute

public void setAttribute(Attribute attribute)
                  throws InvalidAttributeValueException,
                         MBeanException,
                         AttributeNotFoundException
Set an attribtue by name

Specified by:
setAttribute in interface DynamicMBean
Throws:
InvalidAttributeValueException
MBeanException
AttributeNotFoundException

getAttributes

public AttributeList getAttributes(String[] names)
Get a list of attributes.

Specified by:
getAttributes in interface DynamicMBean

setAttributes

public AttributeList setAttributes(AttributeList list)
Set an attribute list.

Specified by:
setAttributes in interface DynamicMBean

invoke

public Object invoke(String name,
                     Object[] args,
                     String[] sig)
              throws MBeanException,
                     ReflectionException
Not implemented.

Specified by:
invoke in interface DynamicMBean
Throws:
MBeanException
ReflectionException

getMBeanInfo

public MBeanInfo getMBeanInfo()
Accessor for mbean info

Specified by:
getMBeanInfo in interface DynamicMBean

ehcache

Copyright 2001-2016, Terracotta, Inc.