|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.commons.modeler.BaseModelMBean
org.apache.commons.modeler.mbeans.MBeanProxy
class MBeanProxy
Use the same metadata, except that we replace the attribute get/set methods.
| Field Summary | |
|---|---|
(package private) java.util.HashMap |
atts
|
(package private) SimpleRemoteConnector |
jkmx
|
private static Log |
log
|
| Fields inherited from class org.apache.commons.modeler.BaseModelMBean |
|---|
attributeBroadcaster, attributes, generalBroadcaster, info, oname, registry, resource, resourceType, source |
| Constructor Summary | |
|---|---|
MBeanProxy(SimpleRemoteConnector jkmx,
java.lang.String code)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static Log log
java.util.HashMap atts
SimpleRemoteConnector jkmx
| Constructor Detail |
|---|
public MBeanProxy(SimpleRemoteConnector jkmx,
java.lang.String code)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
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.DynamicMBeangetAttribute in class BaseModelMBeanname - Name of the requested attribute
javax.management.AttributeNotFoundException - if this attribute is not
supported by this MBean
javax.management.MBeanException - if the initializer of an object
throws an exception
javax.management.ReflectionException - if a Java reflection exception
occurs when invoking the getter
public void setAttribute(javax.management.Attribute attribute)
throws javax.management.AttributeNotFoundException,
javax.management.MBeanException,
javax.management.ReflectionException
BaseModelMBean
setAttribute in interface javax.management.DynamicMBeansetAttribute in class BaseModelMBeanattribute - The identification of the attribute to be set
and the new value
javax.management.AttributeNotFoundException - if this attribute is not
supported by this MBean
javax.management.MBeanException - if the initializer of an object
throws an exception
javax.management.ReflectionException - if a Java reflection exception
occurs when invoking the getter
public java.lang.Object invoke(java.lang.String name,
java.lang.Object[] params,
java.lang.String[] signature)
throws javax.management.MBeanException,
javax.management.ReflectionException
BaseModelMBeanIMPLEMENTATION 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.DynamicMBeaninvoke in class BaseModelMBeanname - 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
javax.management.MBeanException - if the initializer of an object
throws an exception
javax.management.ReflectionException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||