Example usage for Java javax.management JMX fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | isMXBeanInterface(Class> interfaceClass) Test whether an interface is an MXBean interface. |
T | newMBeanProxy(MBeanServerConnection connection, ObjectName objectName, Class Make a proxy for a Standard MBean in a local or remote MBean Server that may also support the methods of NotificationEmitter . This method behaves the same as #newMBeanProxy(MBeanServerConnection,ObjectName,Class) , but additionally, if notificationEmitter is true , then the MBean is assumed to be a NotificationBroadcaster or NotificationEmitter and the returned proxy will implement NotificationEmitter as well as interfaceClass . |
T | newMBeanProxy(MBeanServerConnection connection, ObjectName objectName, Class Make a proxy for a Standard MBean in a local or remote MBean Server. If you have an MBean Server mbs containing an MBean with ObjectName name , and if the MBean's management interface is described by the Java interface MyMBean , you can construct a proxy for the MBean like this: MyMBean proxy = JMX.newMBeanProxy(mbs, name, MyMBean.class); Suppose, for example, MyMBean looks like this: public interface MyMBean { public String getSomeAttribute(); public void setSomeAttribute(String value); public void someOperation(String param1, int param2); } Then you can execute:
|
T | newMXBeanProxy(MBeanServerConnection connection, ObjectName objectName, Class Make a proxy for an MXBean in a local or remote MBean Server. |
T | newMXBeanProxy(MBeanServerConnection connection, ObjectName objectName, Class Make a proxy for an MXBean in a local or remote MBean Server that may also support the methods of NotificationEmitter . This method behaves the same as #newMXBeanProxy(MBeanServerConnection,ObjectName,Class) , but additionally, if notificationEmitter is true , then the MXBean is assumed to be a NotificationBroadcaster or NotificationEmitter and the returned proxy will implement NotificationEmitter as well as interfaceClass . |