Example usage for Java javax.management MBeanServerConnection fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) Adds a listener to a registered MBean. |
void | addNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) Adds a listener to a registered MBean. A notification emitted by an MBean will be forwarded by the MBeanServer to the listener. |
ObjectInstance | createMBean(String className, ObjectName name) Instantiates and registers an MBean in the MBean server. |
ObjectInstance | createMBean(String className, ObjectName name, ObjectName loaderName) Instantiates and registers an MBean in the MBean server. |
ObjectInstance | createMBean(String className, ObjectName name, Object params[], String signature[]) Instantiates and registers an MBean in the MBean server. |
ObjectInstance | createMBean(String className, ObjectName name, ObjectName loaderName, Object params[], String signature[]) Instantiates and registers an MBean in the MBean server. |
Object | getAttribute(ObjectName name, String attribute) Gets the value of a specific attribute of a named MBean. |
AttributeList | getAttributes(ObjectName name, String[] attributes) Retrieves the values of several attributes of a named MBean. |
String | getDefaultDomain() Returns the default domain used for naming the MBean. |
String[] | getDomains() Returns the list of domains in which any MBean is currently registered. |
Integer | getMBeanCount() Returns the number of MBeans registered in the MBean server. |
MBeanInfo | getMBeanInfo(ObjectName name) This method discovers the attributes and operations that an MBean exposes for management. |
ObjectInstance | getObjectInstance(ObjectName name) Gets the ObjectInstance for a given MBean registered with the MBean server. |
Object | invoke(ObjectName name, String operationName, Object params[], String signature[]) Invokes an operation on an MBean. Because of the need for a signature to differentiate possibly-overloaded operations, it is much simpler to invoke operations through an JMX#newMBeanProxy(MBeanServerConnection,ObjectName,Class) MBean proxy where possible. |
boolean | isInstanceOf(ObjectName name, String className) Returns true if the MBean specified is an instance of the specified class, false otherwise. If Otherwise, let If N equals Otherwise, if L successfully loads |
boolean | isRegistered(ObjectName name) Checks whether an MBean, identified by its object name, is already registered with the MBean server. |
Set | queryMBeans(ObjectName name, QueryExp query) Gets MBeans controlled by the MBean server. |
Set | queryNames(ObjectName name, QueryExp query) Gets the names of MBeans controlled by the MBean server. |
void | removeNotificationListener(ObjectName name, ObjectName listener) Removes a listener from a registered MBean. |
void | removeNotificationListener(ObjectName name, NotificationListener listener) Removes a listener from a registered MBean. If the listener is registered more than once, perhaps with different filters or callbacks, this method will remove all those registrations. |
void | removeNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) Removes a listener from a registered MBean. The MBean must have a listener that exactly matches the given |
void | removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) Removes a listener from a registered MBean. The MBean must have a listener that exactly matches the given |
void | setAttribute(ObjectName name, Attribute attribute) Sets the value of a specific attribute of a named MBean. |
AttributeList | setAttributes(ObjectName name, AttributeList attributes) Sets the values of several attributes of a named MBean. |
void | unregisterMBean(ObjectName name) Unregisters an MBean from the MBean server. |