Java javax.management MBeanServerConnection fields, constructors, methods, implement or subclass

Example usage for Java javax.management MBeanServerConnection fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.management MBeanServerConnection.

The text is from its open source code.

Implementation

javax.management.MBeanServerConnection has the following implementations.
Click this link to see all its implementation.

Method

voidaddNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)

Adds a listener to a registered MBean.

voidaddNotificationListener(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.

ObjectInstancecreateMBean(String className, ObjectName name)

Instantiates and registers an MBean in the MBean server.

ObjectInstancecreateMBean(String className, ObjectName name, ObjectName loaderName)

Instantiates and registers an MBean in the MBean server.

ObjectInstancecreateMBean(String className, ObjectName name, Object params[], String signature[])
Instantiates and registers an MBean in the MBean server.
ObjectInstancecreateMBean(String className, ObjectName name, ObjectName loaderName, Object params[], String signature[])

Instantiates and registers an MBean in the MBean server.

ObjectgetAttribute(ObjectName name, String attribute)
Gets the value of a specific attribute of a named MBean.
AttributeListgetAttributes(ObjectName name, String[] attributes)

Retrieves the values of several attributes of a named MBean.

StringgetDefaultDomain()
Returns the default domain used for naming the MBean.
String[]getDomains()

Returns the list of domains in which any MBean is currently registered.

IntegergetMBeanCount()
Returns the number of MBeans registered in the MBean server.
MBeanInfogetMBeanInfo(ObjectName name)
This method discovers the attributes and operations that an MBean exposes for management.
ObjectInstancegetObjectInstance(ObjectName name)
Gets the ObjectInstance for a given MBean registered with the MBean server.
Objectinvoke(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.

booleanisInstanceOf(ObjectName name, String className)

Returns true if the MBean specified is an instance of the specified class, false otherwise.

If name does not name an MBean, this method throws InstanceNotFoundException .

Otherwise, let
X be the MBean named by name,
L be the ClassLoader of X,
N be the class name in X's MBeanInfo .

If N equals className, the result is true.

Otherwise, if L successfully loads className and X is an instance of this class, the result is true.

booleanisRegistered(ObjectName name)
Checks whether an MBean, identified by its object name, is already registered with the MBean server.
SetqueryMBeans(ObjectName name, QueryExp query)
Gets MBeans controlled by the MBean server.
SetqueryNames(ObjectName name, QueryExp query)
Gets the names of MBeans controlled by the MBean server.
voidremoveNotificationListener(ObjectName name, ObjectName listener)
Removes a listener from a registered MBean.
voidremoveNotificationListener(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.

voidremoveNotificationListener(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 listener, filter, and handback parameters.

voidremoveNotificationListener(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 listener, filter, and handback parameters.

voidsetAttribute(ObjectName name, Attribute attribute)
Sets the value of a specific attribute of a named MBean.
AttributeListsetAttributes(ObjectName name, AttributeList attributes)

Sets the values of several attributes of a named MBean.

voidunregisterMBean(ObjectName name)
Unregisters an MBean from the MBean server.