org.apache.qpid.management.domain.model
Class QpidEntity.QManManagedEntity

java.lang.Object
  extended by org.apache.qpid.management.domain.model.QpidEntity.QManManagedEntity
All Implemented Interfaces:
DynamicMBean
Direct Known Subclasses:
QpidClass.QManManagedObject, QpidEvent.QManManagedEvent
Enclosing class:
QpidEntity

abstract class QpidEntity.QManManagedEntity
extends Object
implements DynamicMBean

Layer supertype for QMan managed bean entities.


Field Summary
(package private)  Map<String,Object> _attributes
           
 
Constructor Summary
QpidEntity.QManManagedEntity()
           
 
Method Summary
(package private)  void createOrReplaceAttributeValue(String attributeName, Object newValue)
          Creates or replace the given attribute.
 AttributeList getAttributes(String[] attributes)
          Get the values of several attributes of the Dynamic MBean.
 MBeanInfo getMBeanInfo()
          Returns metadata for this object instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.management.DynamicMBean
getAttribute, invoke, setAttribute, setAttributes
 

Field Detail

_attributes

Map<String,Object> _attributes
Constructor Detail

QpidEntity.QManManagedEntity

QpidEntity.QManManagedEntity()
Method Detail

createOrReplaceAttributeValue

void createOrReplaceAttributeValue(String attributeName,
                                   Object newValue)
Creates or replace the given attribute. Note that this is not part of the management interface of this object instance and therefore will be accessible only from within this class. It is used to update directly the object attributes bypassing jmx interface.

Parameters:
attributeName - the name of the attribute.
property - newValue the new value of the attribute.

getAttributes

public AttributeList getAttributes(String[] attributes)
Get the values of several attributes of the Dynamic MBean.

Specified by:
getAttributes in interface DynamicMBean
Parameters:
attributes - A list of the attributes to be retrieved.
Returns:
The list of attributes retrieved.

getMBeanInfo

public MBeanInfo getMBeanInfo()
Returns metadata for this object instance.

Specified by:
getMBeanInfo in interface DynamicMBean


Licensed to the Apache Software Foundation