|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.j256.simplejmx.server.ReflectionMbean
public class ReflectionMbean
This wraps an object that has been registered in the server using JmxServer.register(Object)
. We wrap the
object so we can expose its attributes and operations using annotations and reflection. This handles the JMX server
calls to attributes and operations by calling through the delegation object.
Constructor Summary | |
---|---|
ReflectionMbean(JmxSelfNaming delegate)
Create a mbean associated with a delegate object that implements self-naming. |
|
ReflectionMbean(Object delegate)
Create a mbean associated with a delegate object that must have a JmxResource annotation. |
|
ReflectionMbean(Object delegate,
JmxAttributeFieldInfo[] attributeFieldInfos,
JmxAttributeMethodInfo[] attributeMethodInfos,
JmxOperationInfo[] operationInfos)
Create a mbean associated with a delegate object with user provided attribute and operation information. |
Method Summary | |
---|---|
Object |
getAttribute(String attributeName)
|
AttributeList |
getAttributes(String[] attributeNames)
|
MBeanInfo |
getMBeanInfo()
|
Object |
invoke(String actionName,
Object[] params,
String[] signatureTypes)
|
void |
setAttribute(Attribute attribute)
|
AttributeList |
setAttributes(AttributeList attributes)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReflectionMbean(JmxSelfNaming delegate)
public ReflectionMbean(Object delegate)
JmxResource
annotation.
public ReflectionMbean(Object delegate, JmxAttributeFieldInfo[] attributeFieldInfos, JmxAttributeMethodInfo[] attributeMethodInfos, JmxOperationInfo[] operationInfos)
Method Detail |
---|
public MBeanInfo getMBeanInfo()
getMBeanInfo
in interface DynamicMBean
DynamicMBean.getMBeanInfo()
public Object getAttribute(String attributeName) throws AttributeNotFoundException, ReflectionException
getAttribute
in interface DynamicMBean
AttributeNotFoundException
ReflectionException
DynamicMBean.getAttribute(String)
public AttributeList getAttributes(String[] attributeNames)
getAttributes
in interface DynamicMBean
DynamicMBean.getAttributes(String[])
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, ReflectionException
setAttribute
in interface DynamicMBean
AttributeNotFoundException
ReflectionException
DynamicMBean.setAttribute(Attribute)
public AttributeList setAttributes(AttributeList attributes)
setAttributes
in interface DynamicMBean
DynamicMBean.setAttributes(AttributeList)
public Object invoke(String actionName, Object[] params, String[] signatureTypes) throws MBeanException, ReflectionException
invoke
in interface DynamicMBean
MBeanException
ReflectionException
DynamicMBean.invoke(String, Object[], String[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |