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) SimpleRemoteConnectorprivate static org.apache.commons.logging.LogFields inherited from class 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.voidsetAttribute(Attribute attribute) Set the value of a specific attribute of this MBean.protected voidCalled by the connector - will update the value when a chunk of data is receivedMethods inherited from class 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
-
getAttribute
public Object getAttribute(String name) throws AttributeNotFoundException, MBeanException, ReflectionException Description copied from class:BaseModelMBeanObtain and return the value of a specific attribute of this MBean.- Specified by:
getAttributein interfaceDynamicMBean- Overrides:
getAttributein 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:BaseModelMBeanSet the value of a specific attribute of this MBean.- Specified by:
setAttributein interfaceDynamicMBean- Overrides:
setAttributein 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:BaseModelMBeanInvoke 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:
invokein interfaceDynamicMBean- Overrides:
invokein 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:
MBeanExceptionReflectionException
-