Class MBeanProxy
java.lang.Object
org.apache.commons.modeler.BaseModelMBean
org.apache.commons.modeler.mbeans.MBeanProxy
- All Implemented Interfaces:
DynamicMBean
,MBeanRegistration
,ModelMBean
,ModelMBeanNotificationBroadcaster
,NotificationBroadcaster
,PersistentMBean
Use the same metadata, except that we replace the attribute
get/set methods.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) HashMap
(package private) SimpleRemoteConnector
private static org.apache.commons.logging.Log
Fields inherited from class org.apache.commons.modeler.BaseModelMBean
attributeBroadcaster, attributes, generalBroadcaster, info, oname, registry, resource, resourceType, source
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String name) Obtain and return the value of a specific attribute of this MBean.Invoke a particular method on this MBean, and return any returned value.void
setAttribute
(Attribute attribute) Set the value of a specific attribute of this MBean.protected void
Called by the connector - will update the value when a chunk of data is receivedMethods inherited from class org.apache.commons.modeler.BaseModelMBean
addAttributeChangeNotificationListener, addNotificationListener, createDefaultModelMBeanInfo, createResource, getAttributes, getClassName, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, getRegistry, initModelInfo, isModelMBeanInfoValid, load, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttributes, setManagedResource, setModeledType, setModelMBeanInfo, setRegistry, store, toString
-
Field Details
-
log
private static org.apache.commons.logging.Log log -
atts
HashMap atts -
jkmx
-
-
Constructor Details
-
MBeanProxy
- Throws:
Exception
-
-
Method Details
-
update
Called by the connector - will update the value when a chunk of data is received -
getAttribute
public Object getAttribute(String name) throws AttributeNotFoundException, MBeanException, ReflectionException Description copied from class:BaseModelMBean
Obtain and return the value of a specific attribute of this MBean.- Specified by:
getAttribute
in interfaceDynamicMBean
- Overrides:
getAttribute
in classBaseModelMBean
- Parameters:
name
- Name of the requested attribute- Throws:
AttributeNotFoundException
- if this attribute is not supported by this MBeanMBeanException
- if the initializer of an object throws an exceptionReflectionException
- if a Java reflection exception occurs when invoking the getter
-
setAttribute
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, MBeanException, ReflectionException Description copied from class:BaseModelMBean
Set the value of a specific attribute of this MBean.- Specified by:
setAttribute
in interfaceDynamicMBean
- Overrides:
setAttribute
in classBaseModelMBean
- Parameters:
attribute
- The identification of the attribute to be set and the new value- Throws:
AttributeNotFoundException
- if this attribute is not supported by this MBeanMBeanException
- if the initializer of an object throws an exceptionReflectionException
- if a Java reflection exception occurs when invoking the getter
-
invoke
public Object invoke(String name, Object[] params, String[] signature) throws MBeanException, ReflectionException Description copied from class:BaseModelMBean
Invoke a particular method on this MBean, and return any returned value.IMPLEMENTATION NOTE - This implementation will attempt to invoke this method on the MBean itself, or (if not available) on the managed resource object associated with this MBean.
- Specified by:
invoke
in interfaceDynamicMBean
- Overrides:
invoke
in classBaseModelMBean
- Parameters:
name
- Name of the operation to be invokedparams
- Array containing the method parameters of this operationsignature
- Array containing the class names representing the signature of this operation- Throws:
MBeanException
- if the initializer of an object throws an exceptionReflectionException
-