org.apache.qpid.management.domain.model
Class QpidClass.QManManagedObject

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

 class QpidClass.QManManagedObject
extends QpidEntity.QManManagedEntity
implements MBeanRegistration

MBean used for representing remote broker object instances. This is the core component of the QMan domain model


Field Summary
(package private)  List<byte[]> _rawConfigurationData
           
(package private)  List<byte[]> _rawInstrumentationData
           
 
Fields inherited from class org.apache.qpid.management.domain.model.QpidEntity.QManManagedEntity
_attributes
 
Constructor Summary
QpidClass.QManManagedObject(Binary objectId)
          Builds a new managed object with the given object identifier.
 
Method Summary
 Object getAttribute(String attributeName)
          Returns the value of the given attribute.s
 Object invoke(String actionName, Object[] params, String[] signature)
          Executes an operation on this object instance.
 void postDeregister()
          MBean server callback after deregistration.
 void postRegister(Boolean registrationDone)
          After the object is registered the raw data is set to null.
 void preDeregister()
          MBean server callback before deregistration.
 ObjectName preRegister(MBeanServer server, ObjectName name)
          MBean server callback before registration.
 void setAttribute(Attribute attribute)
          Sets the value of the given attribute on this object instance.
 AttributeList setAttributes(AttributeList attributes)
          Sets the values of several attributes of this MBean.
 
Methods inherited from class org.apache.qpid.management.domain.model.QpidEntity.QManManagedEntity
createOrReplaceAttributeValue, getAttributes, getMBeanInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_rawInstrumentationData

List<byte[]> _rawInstrumentationData

_rawConfigurationData

List<byte[]> _rawConfigurationData
Constructor Detail

QpidClass.QManManagedObject

QpidClass.QManManagedObject(Binary objectId)
Builds a new managed object with the given object identifier.

Parameters:
objectId - the object identifier.
Method Detail

getAttribute

public Object getAttribute(String attributeName)
                    throws AttributeNotFoundException,
                           MBeanException,
                           ReflectionException
Returns the value of the given attribute.s

Specified by:
getAttribute in interface DynamicMBean
Throws:
AttributeNotFoundException - when no attribute is found with the given name.
MBeanException
ReflectionException

invoke

public Object invoke(String actionName,
                     Object[] params,
                     String[] signature)
              throws MBeanException,
                     ReflectionException
Executes an operation on this object instance.

Specified by:
invoke in interface DynamicMBean
Parameters:
actionName - the name of the method.
params - the method parameters
signature - the method signature.
Throws:
MBeanException
ReflectionException

setAttribute

public void setAttribute(Attribute attribute)
                  throws AttributeNotFoundException,
                         InvalidAttributeValueException,
                         MBeanException,
                         ReflectionException
Sets the value of the given attribute on this object instance.

Specified by:
setAttribute in interface DynamicMBean
Parameters:
attribute - contains the new value of the attribute.
Throws:
AttributeNotFoundException - when the given attribute is not found on this object instance.
InvalidAttributeValueException - when the given value is violating one attribute invariant.
MBeanException
ReflectionException

setAttributes

public AttributeList setAttributes(AttributeList attributes)
Sets the values of several attributes of this MBean.

Specified by:
setAttributes in interface DynamicMBean
Parameters:
attributes - a list of attributes: The identification of the attributes to be set and the values they are to be set to.
Returns:
The list of attributes that were set, with their new values.

postDeregister

public void postDeregister()
MBean server callback after deregistration.

Specified by:
postDeregister in interface MBeanRegistration

postRegister

public void postRegister(Boolean registrationDone)
After the object is registered the raw data is set to null. This is done because we no longer need this data : it has already been injected into this object instance.

Specified by:
postRegister in interface MBeanRegistration
Parameters:
registrationDone - a flag indicating if the instance has been registered to mbean server.

preDeregister

public void preDeregister()
                   throws Exception
MBean server callback before deregistration.

Specified by:
preDeregister in interface MBeanRegistration
Throws:
Exception

preRegister

public ObjectName preRegister(MBeanServer server,
                              ObjectName name)
                       throws Exception
MBean server callback before registration.

Specified by:
preRegister in interface MBeanRegistration
Throws:
Exception


Licensed to the Apache Software Foundation