Methods Summary |
---|
public void | addNotificationListener(javax.management.ObjectName name, javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)Enables to add a listener to a registered MBean.
/* ***** FIX THIS *****
if (listener instanceof RemoteListenerConnector) {
((RemoteListenerConnector)listener).setMBeanServer(server);
}
server.addNotificationListener(name, listener, filter, handback);
*/
|
public void | addNotificationListener(javax.management.ObjectName name, javax.management.ObjectName listener, javax.management.NotificationFilter filter, java.lang.Object handback)Enables to add a listener to a registered MBean.
server.addNotificationListener(name, listener, filter, handback);
|
public javax.management.ObjectInstance | createMBean(java.lang.String className, javax.management.ObjectName name)Instantiates and registers an MBean in the MBean server. The MBean server will use the {@link
javax.management.loading.DefaultLoaderRepository Default Loader Repository} to load the class of the MBean.
An object name is associated to the MBean. If the object name given is null, the MBean can automatically provide its
own name by implementing the {@link javax.management.MBeanRegistration MBeanRegistration} interface. The call returns
an ObjectInstance object representing the newly created MBean.
return server.createMBean(className, name);
|
public javax.management.ObjectInstance | createMBean(java.lang.String className, javax.management.ObjectName name, javax.management.ObjectName loaderName)Instantiates and registers an MBean in the MBean server. The class loader to be used is identified by its object name.
An object name is associated to the MBean. If the object name of the loader is null, the ClassLoader that loaded the
MBean server will be used. If the MBean's object name given is null, the MBean can automatically provide its
own name by implementing the {@link javax.management.MBeanRegistration MBeanRegistration} interface. The call returns
an ObjectInstance object representing the newly created MBean.
return server.createMBean(className, name, loaderName);
|
public javax.management.ObjectInstance | createMBean(java.lang.String className, javax.management.ObjectName name, java.lang.Object[] params, java.lang.String[] signature)Instantiates and registers an MBean in the MBean server.
The MBean server will use the {@link javax.management.loading.DefaultLoaderRepository Default Loader Repository}
to load the class of the MBean. An object name is associated to the MBean. If the object name given is null, the MBean
can automatically provide its own name by implementing the {@link javax.management.MBeanRegistration MBeanRegistration}
interface. The call returns an ObjectInstance object representing the newly created MBean.
return server.createMBean(className, name, params, signature);
|
public javax.management.ObjectInstance | createMBean(java.lang.String className, javax.management.ObjectName name, javax.management.ObjectName loaderName, java.lang.Object[] params, java.lang.String[] signature)Instantiates and registers an MBean in the MBean server. The class loader to be used is identified by its object
name. An object name is associated to the MBean. If the object name
of the loader is not specified, the ClassLoader that loaded the MBean server will be used.
If the MBean object name given is null, the MBean can automatically provide its
own name by implementing the {@link javax.management.MBeanRegistration MBeanRegistration} interface. The call returns
an ObjectInstance object representing the newly created MBean.
return server.createMBean(className, name, loaderName, params, signature);
|
public java.io.ObjectInputStream | deserialize(javax.management.ObjectName name, byte[] data)De-serializes a byte array in the context of the class loader of an MBean.
return server.deserialize(name, data);
|
public java.io.ObjectInputStream | deserialize(java.lang.String className, byte[] data)De-serializes a byte array in the context of a given MBean class loader.
The class loader is the one that loaded the class with name "className".
return server.deserialize(className, data);
|
public java.io.ObjectInputStream | deserialize(java.lang.String className, javax.management.ObjectName loaderName, byte[] data)De-serializes a byte array in the context of a given MBean class loader.
The class loader is the one that loaded the class with name "className".
The name of the class loader to be used for loading the specified class is specified.
If null, the MBean Server's class loader will be used.
return server.deserialize(className, loaderName, data);
|
public java.lang.Object | getAttribute(javax.management.ObjectName name, java.lang.String attribute)Gets the value of a specific attribute of a named MBean. The MBean is identified by its object name.
return server.getAttribute(name, attribute);
|
public javax.management.AttributeList | getAttributes(javax.management.ObjectName name, java.lang.String[] attributes)Enables the values of several attributes of a named MBean. The MBean is identified by its object name.
return server.getAttributes(name, attributes);
|
public java.lang.String | getDefaultDomain()Returns the default domain used for naming the managed object.
The default domain name is used as the domain part in the ObjectName
of managed objects if no domain is specified by the user.
return server.getDefaultDomain();
|
public java.lang.Integer | getMBeanCount()Returns the number of MBeans registered in the MBean server.
return server.getMBeanCount();
|
public javax.management.MBeanInfo | getMBeanInfo(javax.management.ObjectName name)This method discovers the attributes and operations that an MBean exposes for management.
return server.getMBeanInfo(name);
|
public javax.management.ObjectInstance | getObjectInstance(javax.management.ObjectName name)Gets the ObjectInstance for a given MBean registered with the MBean server.
return server.getObjectInstance(name);
|
public java.lang.Object | instantiate(java.lang.String className)Instantiates an object using the list of all class loaders registered
in the MBean server ({@link javax.management.loading.DefaultLoaderRepository Default Loader Repository}).
The object's class should have a public constructor. It returns a reference to the newly created object.
The newly created object is not registered in the MBean server.
return server.instantiate(className);
|
public java.lang.Object | instantiate(java.lang.String className, javax.management.ObjectName loaderName)Instantiates an object using the class Loader specified by its ObjectName .
If the loader name is null, the ClassLoader that loaded the MBean Server will be used.
The object's class should have a public constructor. It returns a reference to the newly created object.
The newly created object is not registered in the MBean server.
return server.instantiate(className, loaderName);
|
public java.lang.Object | instantiate(java.lang.String className, java.lang.Object[] params, java.lang.String[] signature)Instantiates an object using the list of all class loaders registered
in the MBean server ({@link javax.management.loading.DefaultLoaderRepository Default Loader Repository}).
The object's class should have a public constructor. The call returns a reference to the newly created object.
The newly created object is not registered in the MBean server.
return server.instantiate(className, params, signature);
|
public java.lang.Object | instantiate(java.lang.String className, javax.management.ObjectName loaderName, java.lang.Object[] params, java.lang.String[] signature)Instantiates an object. The class loader to be used is identified by its object
name. If the object name of the loader is null, the ClassLoader that loaded the MBean server will be used.
The object's class should have a public constructor. The call returns a reference to the newly created object.
The newly created object is not registered in the MBean server.
return server.instantiate(className, loaderName, params, signature);
|
public java.lang.Object | invoke(javax.management.ObjectName name, java.lang.String operationName, java.lang.Object[] params, java.lang.String[] signature)Invokes an operation on an MBean.
return server.invoke(name, operationName, params, signature);
|
public boolean | isInstanceOf(javax.management.ObjectName name, java.lang.String className)Returns true if the MBean specified is an instance of the specified class, false otherwise.
return server.isInstanceOf(name, className);
|
public boolean | isRegistered(javax.management.ObjectName name)Checks whether an MBean, identified by its object name, is already registered with the MBean server.
return server.isRegistered(name);
|
public java.util.Set | queryMBeans(javax.management.ObjectName name, javax.management.QueryExp query)Gets MBeans controlled by the MBean server. This method allows any
of the following to be obtained: All MBeans, a set of MBeans specified
by pattern matching on the ObjectName and/or a Query expression, a
specific MBean. When the object name is null or no domain and key properties are specified, all objects are to be
selected (and filtered if a query is specified). It returns the
set of ObjectInstance objects (containing the ObjectName and the Java Class name)
for the selected MBeans.
return server.queryMBeans(name, query);
|
public java.util.Set | queryNames(javax.management.ObjectName name, javax.management.QueryExp query)Gets the names of managed objects controlled by the MEJB. This method
enables any of the following to be obtained: The names of all managed objects,
the names of a set of managed objects specified by pattern matching on the
ObjectName and/or a Query expression, a specific managed object name (equivalent to
testing whether an managed object is registered). When the object name is
null or no domain and key properties are specified, all objects are selected (and filtered if a
query is specified). It returns the set of ObjectNames for the managed objects selected.
return server.queryNames(name, query);
|
public javax.management.ObjectInstance | registerMBean(java.lang.Object object, javax.management.ObjectName name)Registers a pre-existing object as an MBean with the MBean server. If the object name given is
null, the MBean may automatically provide its own name by implementing the
{@link javax.management.MBeanRegistration MBeanRegistration} interface.
The call returns an ObjectInstance object representing the registered MBean.
return server.registerMBean(object, name);
|
public void | removeNotificationListener(javax.management.ObjectName name, javax.management.NotificationListener listener)Enables to remove a listener from a registered MBean.
server.removeNotificationListener(name, listener);
|
public void | removeNotificationListener(javax.management.ObjectName name, javax.management.ObjectName listener)Enables to remove a listener from a registered MBean.
server.removeNotificationListener(name, listener);
|
public void | setAttribute(javax.management.ObjectName name, javax.management.Attribute attribute)Sets the value of a specific attribute of a named MBean. The MBean is identified by its object name.
server.setAttribute(name, attribute);
|
public javax.management.AttributeList | setAttributes(javax.management.ObjectName name, javax.management.AttributeList attributes)Sets the values of several attributes of a named MBean. The MBean is identified by its object name.
return server.setAttributes(name, attributes);
|
public void | unregisterMBean(javax.management.ObjectName name)De-registers an MBean from the MBean server. The MBean is identified by
its object name. Once the method has been invoked, the MBean may no longer be accessed by its object name.
server.unregisterMBean(name);
|