class MBeanProxy extends BaseModelMBean
Modifier and Type | Field and Description |
---|---|
(package private) java.util.HashMap |
atts |
(package private) SimpleRemoteConnector |
jkmx |
private static org.apache.commons.logging.Log |
log |
attributeBroadcaster, attributes, generalBroadcaster, info, oname, registry, resource, resourceType, source
Constructor and Description |
---|
MBeanProxy(SimpleRemoteConnector jkmx,
java.lang.String code) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Obtain and return the value of a specific attribute of this MBean.
|
java.lang.Object |
invoke(java.lang.String name,
java.lang.Object[] params,
java.lang.String[] signature)
Invoke a particular method on this MBean, and return any returned
value.
|
void |
setAttribute(javax.management.Attribute attribute)
Set the value of a specific attribute of this MBean.
|
protected void |
update(java.lang.String name,
java.lang.String val)
Called by the connector - will update the value when a chunk of
data is received
|
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
private static org.apache.commons.logging.Log log
java.util.HashMap atts
SimpleRemoteConnector jkmx
public MBeanProxy(SimpleRemoteConnector jkmx, java.lang.String code) throws java.lang.Exception
java.lang.Exception
protected void update(java.lang.String name, java.lang.String val)
public java.lang.Object getAttribute(java.lang.String name) throws javax.management.AttributeNotFoundException, javax.management.MBeanException, javax.management.ReflectionException
BaseModelMBean
getAttribute
in interface javax.management.DynamicMBean
getAttribute
in class BaseModelMBean
name
- Name of the requested attributejavax.management.AttributeNotFoundException
- if this attribute is not
supported by this MBeanjavax.management.MBeanException
- if the initializer of an object
throws an exceptionjavax.management.ReflectionException
- if a Java reflection exception
occurs when invoking the getterpublic void setAttribute(javax.management.Attribute attribute) throws javax.management.AttributeNotFoundException, javax.management.MBeanException, javax.management.ReflectionException
BaseModelMBean
setAttribute
in interface javax.management.DynamicMBean
setAttribute
in class BaseModelMBean
attribute
- The identification of the attribute to be set
and the new valuejavax.management.AttributeNotFoundException
- if this attribute is not
supported by this MBeanjavax.management.MBeanException
- if the initializer of an object
throws an exceptionjavax.management.ReflectionException
- if a Java reflection exception
occurs when invoking the getterpublic java.lang.Object invoke(java.lang.String name, java.lang.Object[] params, java.lang.String[] signature) throws javax.management.MBeanException, javax.management.ReflectionException
BaseModelMBean
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.
invoke
in interface javax.management.DynamicMBean
invoke
in class BaseModelMBean
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 operationjavax.management.MBeanException
- if the initializer of an object
throws an exceptionjavax.management.ReflectionException
Copyright (c) 2001-2003 - Apache Software Foundation