org.jboss.net.jmx.adaptor.server
Class Adaptor

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.net.jmx.adaptor.server.Adaptor
All Implemented Interfaces:
AdaptorMBean (src) , Constants (src) , Constants (src) , MBeanRegistration (src) , MBeanServer (src) , MBeanServerConnection (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src)

public class Adaptor
extends ServiceMBeanSupport (src)
implements AdaptorMBean (src) , Constants (src)

wrapper around the mbean server that may be exposed as a soap-enabled mbean to the outside world.


Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Fields inherited from interface org.jboss.net.jmx.adaptor.server.Constants (src)
DEFAULT_AXIS_SERVICE_NAME, DOMAIN, JMX_INSTALL_DESCRIPTOR, NAME, TYPE
 
Fields inherited from interface org.jboss.net.Constants (src)
CREATE_METHOD_NAME, DEPLOYMENT_INFO_CLASS_NAME, DESTROY_METHOD_NAME, INIT_METHOD_NAME, START_METHOD_NAME, STOP_METHOD_NAME, STRING_CLASS_NAME
 
Constructor Summary
Adaptor()
           
 
Method Summary
 void addNotificationListener(ObjectName (src)  objectName, NotificationListener (src)  notificationListener, NotificationFilter (src)  notificationFilter, java.lang.Object obj)
          Add a notification listener to an MBean.
 void addNotificationListener(ObjectName (src)  objectName, ObjectName (src)  objectName1, NotificationFilter (src)  notificationFilter, java.lang.Object obj)
          Add a notification listener to an MBean.
 ObjectInstance (src) createMBean(java.lang.String str, ObjectName (src)  objectName)
          Create an MBean registered using the given object name.
 ObjectInstance (src) createMBean(java.lang.String str, ObjectName (src)  objectName, java.lang.Object[] obj, java.lang.String[] str3)
          Create an MBean registered using the given object name.
 ObjectInstance (src) createMBean(java.lang.String str, ObjectName (src)  objectName, ObjectName (src)  objectName2)
          Create an MBean registered using the given object name.
 ObjectInstance (src) createMBean(java.lang.String str, ObjectName (src)  objectName, ObjectName (src)  objectName2, java.lang.Object[] obj, java.lang.String[] str4)
          Create an MBean registered using the given object name.
 java.io.ObjectInputStream deserialize(ObjectName (src)  objectName, byte[] values)
           
 java.io.ObjectInputStream deserialize(java.lang.String str, byte[] values)
           
 java.io.ObjectInputStream deserialize(java.lang.String str, ObjectName (src)  objectName, byte[] values)
           
 java.lang.Object getAttribute(ObjectName (src)  objectName, java.lang.String str)
          Retrieve a value from an MBean.
 AttributeList (src) getAttributes(ObjectName (src)  objectName, java.lang.String[] str)
          Retrieve a list of values from an MBean.
 java.lang.ClassLoader getClassLoader(ObjectName (src)  objectName)
          Retrieve the classloader registered as an MBean
 java.lang.ClassLoader getClassLoaderFor(ObjectName (src)  objectName)
          Retrieve the classloader for an mbean
 ClassLoaderRepository (src) getClassLoaderRepository()
          Retrieve the classloader repository for this mbean server
 java.lang.String getDefaultDomain()
          Retrieve the default domain of the mbeanserver.
 java.lang.String[] getDomains()
          Retrieve the domains of the mbeanserver.
 java.lang.Integer getMBeanCount()
          Retrieve the number of mbeans registered in the server.
 MBeanInfo (src) getMBeanInfo(ObjectName (src)  objectName)
          Retrieves the jmx metadata for an mbean
 ObjectInstance (src) getObjectInstance(ObjectName (src)  objectName)
          Retrieve an MBean's registration information.
 java.lang.Object instantiate(java.lang.String str)
          Instantiates an object using the default loader repository and default no-args constructor.
 java.lang.Object instantiate(java.lang.String str, java.lang.Object[] obj, java.lang.String[] str2)
          Instantiates an object using the default loader repository and a given constructor.
 java.lang.Object instantiate(java.lang.String str, ObjectName (src)  objectName)
          Instantiates an object using the given class loader.
 java.lang.Object instantiate(java.lang.String str, ObjectName (src)  objectName, java.lang.Object[] obj, java.lang.String[] str3)
          Instantiates an object using the given class loader.
 java.lang.Object invoke(ObjectName (src)  objectName, java.lang.String str, java.lang.Object[] obj, java.lang.String[] str3)
          Invokes an operation on an mbean.
 boolean isInstanceOf(ObjectName (src)  objectName, java.lang.String str)
          Tests whether an mbean can be cast to the given type
 boolean isRegistered(ObjectName (src)  objectName)
          Test whether an mbean is registered.
 java.util.Set queryMBeans(ObjectName (src)  objectName, QueryExp (src)  queryExp)
          Retrieve a set of Object instances
 java.util.Set queryNames(ObjectName (src)  objectName, QueryExp (src)  queryExp)
          Retrieve a set of Object names
 ObjectInstance (src) registerMBean(java.lang.Object obj, ObjectName (src)  objectName)
          Registers an mbean.
 void removeNotificationListener(ObjectName (src)  objectName, NotificationListener (src)  notificationListener)
          Removes a listener from an mbean.
 void removeNotificationListener(ObjectName (src)  objectName, NotificationListener (src)  notificationListener, NotificationFilter (src)  filter, java.lang.Object handback)
          Removes a listener from an mbean.
 void removeNotificationListener(ObjectName (src)  objectName, ObjectName (src)  objectName1)
          Removes a listener from an mbean.
 void removeNotificationListener(ObjectName (src)  objectName, ObjectName (src)  notificationListener, NotificationFilter (src)  filter, java.lang.Object handback)
          Removes a listener from an mbean.
 void setAttribute(ObjectName (src)  objectName, Attribute (src)  attribute)
          Set a value for an MBean.
 AttributeList (src) setAttributes(ObjectName (src)  objectName, AttributeList (src)  attributeList)
          Set a list of values for an MBean.
 void startService()
          Sub-classes should override this method to provide custum 'start' logic.
 void stopService()
          Sub-classes should override this method to provide custum 'stop' logic.
 void unregisterMBean(ObjectName (src)  objectName)
          Unregisters an mbean.
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.ServiceMBean (src)
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service (src)
create, destroy, start, stop
 

Constructor Detail

Adaptor

public Adaptor()
Method Detail

startService

public void startService()
                  throws java.lang.Exception
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method to provide custum 'start' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

Overrides:
startService in class ServiceMBeanSupport (src)
Throws:
java.lang.Exception

stopService

public void stopService()
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method to provide custum 'stop' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

Overrides:
stopService in class ServiceMBeanSupport (src)

instantiate

public java.lang.Object instantiate(java.lang.String str,
                                    ObjectName (src)  objectName)
                             throws ReflectionException (src) ,
                                    MBeanException (src) ,
                                    InstanceNotFoundException (src) 
Description copied from interface: MBeanServer (src)
Instantiates an object using the given class loader. If the loader name contains a null reference, the class loader of the MBean server implementation will be used. The object must have a default, no-args constructor.

Specified by:
instantiate in interface MBeanServer (src)
Parameters:
str - Class to instantiate. Must have a public no args constructor. Cannot contain a null reference.
objectName - Object name of a class loader that has been registered to the server. If null, the class loader of the MBean server is used.
Returns:
instantiated object
Throws:
InstanceNotFoundException (src) - if the specified class loader was not registered to the agent
ReflectionException (src) - If there was an error while trying to invoke the class's constructor or the given class was not found. This exception wraps the actual exception thrown.
MBeanException (src) - If the object constructor threw a checked exception during the initialization. This exception wraps the actual exception thrown.

isInstanceOf

public boolean isInstanceOf(ObjectName (src)  objectName,
                            java.lang.String str)
                     throws InstanceNotFoundException (src) 
Description copied from interface: MBeanServer (src)
Tests whether an mbean can be cast to the given type

Specified by:
isInstanceOf in interface MBeanServer (src)
Parameters:
objectName - the name of the mbean
str - the class name to check
Returns:
true when it is of that type, false otherwise
Throws:
InstanceNotFoundException (src) - if the mbean is not registered

registerMBean

public ObjectInstance (src)  registerMBean(java.lang.Object obj,
                                    ObjectName (src)  objectName)
                             throws InstanceAlreadyExistsException (src) ,
                                    MBeanRegistrationException (src) ,
                                    NotCompliantMBeanException (src) 
Description copied from interface: MBeanServer (src)
Registers an mbean.

Specified by:
registerMBean in interface MBeanServer (src)
Parameters:
obj - the mbean implementation to register
objectName - the object name of the mbean to register
Throws:
NotCompliantMBeanException (src) - if the class name does not correspond to a valid MBean
MBeanRegistrationException (src) - for any exception thrown by the MBean's preDeregister
InstanceAlreadyExistsException (src) - if the object name is already registered in the MBeanServer

getDefaultDomain

public java.lang.String getDefaultDomain()
Description copied from interface: MBeanServer (src)
Retrieve the default domain of the mbeanserver.

Specified by:
getDefaultDomain in interface MBeanServer (src)
Returns:
the default domain

getMBeanInfo

public MBeanInfo (src)  getMBeanInfo(ObjectName (src)  objectName)
                       throws InstanceNotFoundException (src) ,
                              IntrospectionException (src) ,
                              ReflectionException (src) 
Description copied from interface: MBeanServer (src)
Retrieves the jmx metadata for an mbean

Specified by:
getMBeanInfo in interface MBeanServer (src)
Parameters:
objectName - the name of the mbean
Returns:
the metadata
Throws:
ReflectionException (src) - for any error trying to invoke the operation on the mbean
IntrospectionException (src) - for any error during instrospection
InstanceNotFoundException (src) - if the mbean is not registered

getObjectInstance

public ObjectInstance (src)  getObjectInstance(ObjectName (src)  objectName)
                                 throws InstanceNotFoundException (src) 
Description copied from interface: MBeanServer (src)
Retrieve an MBean's registration information.

Specified by:
getObjectInstance in interface MBeanServer (src)
Parameters:
objectName - the object name of the mbean
Throws:
InstanceNotFoundException (src) - if the mbean is not registered in the MBeanServer

instantiate

public java.lang.Object instantiate(java.lang.String str)
                             throws ReflectionException (src) ,
                                    MBeanException (src) 
Description copied from interface: MBeanServer (src)
Instantiates an object using the default loader repository and default no-args constructor.

Specified by:
instantiate in interface MBeanServer (src)
Parameters:
str - Class to instantiate. Must have a public no-args constructor. Cannot contain a null reference.
Returns:
instantiated object
Throws:
ReflectionException (src) - If there was an error while trying to invoke the class's constructor or the given class was not found. This exception wraps the actual exception thrown.
MBeanException (src) - If the object constructor threw a checked exception during the initialization. This exception wraps the actual exception thrown.
See Also:
DefaultLoaderRepository (src)

isRegistered

public boolean isRegistered(ObjectName (src)  objectName)
Description copied from interface: MBeanServer (src)
Test whether an mbean is registered.

Specified by:
isRegistered in interface MBeanServer (src)
Parameters:
objectName - the object name of the mbean
Returns:
true when the mbean is registered, false otherwise

addNotificationListener

public void addNotificationListener(ObjectName (src)  objectName,
                                    NotificationListener (src)  notificationListener,
                                    NotificationFilter (src)  notificationFilter,
                                    java.lang.Object obj)
                             throws InstanceNotFoundException (src) 
Description copied from interface: MBeanServer (src)
Add a notification listener to an MBean.

Specified by:
addNotificationListener in interface MBeanServer (src)
Parameters:
objectName - the name of the MBean broadcasting notifications
notificationListener - the listener to add
notificationFilter - a filter to preprocess notifications
obj - a object to add to any notifications
Throws:
InstanceNotFoundException (src) - if the broadcaster is not registered

addNotificationListener

public void addNotificationListener(ObjectName (src)  objectName,
                                    ObjectName (src)  objectName1,
                                    NotificationFilter (src)  notificationFilter,
                                    java.lang.Object obj)
                             throws InstanceNotFoundException (src) 
Description copied from interface: MBeanServer (src)
Add a notification listener to an MBean.

Specified by:
addNotificationListener in interface MBeanServer (src)
Parameters:
objectName - the name of the MBean broadcasting notifications
objectName1 - the object name listener to add
notificationFilter - a filter to preprocess notifications
obj - a object to add to any notifications
Throws:
InstanceNotFoundException (src) - if the broadcaster or listener is not registered

createMBean

public ObjectInstance (src)  createMBean(java.lang.String str,
                                  ObjectName (src)  objectName)
                           throws ReflectionException (src) ,
                                  InstanceAlreadyExistsException (src) ,
                                  MBeanRegistrationException (src) ,
                                  MBeanException (src) ,
                                  NotCompliantMBeanException (src) 
Description copied from interface: MBeanServer (src)
Create an MBean registered using the given object name.

Uses the default contructor.

Specified by:
createMBean in interface MBeanServer (src)
Parameters:
str - the class name of the mbean
objectName - the object name for registration, can be null
Returns:
an ObjectInstance describing the registration
Throws:
NotCompliantMBeanException (src) - if the class name does not correspond to a valid MBean
ReflectionException (src) - for class not found or an exception invoking the contructor
MBeanException (src) - for any exception thrown by the MBean's constructor
InstanceAlreadyExistsException (src) - for an MBean already registered with the passed or generated ObjectName
MBeanRegistrationException (src) - for any exception thrown by the MBean's preRegister

createMBean

public ObjectInstance (src)  createMBean(java.lang.String str,
                                  ObjectName (src)  objectName,
                                  ObjectName (src)  objectName2)
                           throws ReflectionException (src) ,
                                  InstanceAlreadyExistsException (src) ,
                                  MBeanRegistrationException (src) ,
                                  MBeanException (src) ,
                                  NotCompliantMBeanException (src) ,
                                  InstanceNotFoundException (src) 
Description copied from interface: MBeanServer (src)
Create an MBean registered using the given object name.

The MBean is loaded using the passed classloader. Uses the default contructor.

Specified by:
createMBean in interface MBeanServer (src)
Parameters:
str - the class name of the mbean
objectName2 - an MBean that implements a classloader
objectName - the object name for registration, can be null
Returns:
an ObjectInstance describing the registration
Throws:
InstanceNotFoundException (src) - if the loaderName is not a classloader registered in the MBeanServer
MBeanException (src) - for any exception thrown by the MBean's constructor
ReflectionException (src) - for class not found or an exception invoking the contructor
MBeanRegistrationException (src) - for any exception thrown by the MBean's preRegister
NotCompliantMBeanException (src) - if the class name does not correspond to a valid MBean
InstanceAlreadyExistsException (src) - for an MBean already registered with the passed or generated ObjectName

getAttribute

public java.lang.Object getAttribute(ObjectName (src)  objectName,
                                     java.lang.String str)
                              throws MBeanException (src) ,
                                     AttributeNotFoundException (src) ,
                                     InstanceNotFoundException (src) ,
                                     ReflectionException (src) 
Description copied from interface: MBeanServer (src)
Retrieve a value from an MBean.

Specified by:
getAttribute in interface MBeanServer (src)
Parameters:
objectName - the object name of the mbean
str - the attribute name of the value to retrieve
Returns:
the value
Throws:
AttributeNotFoundException (src) - if the mbean has no such attribute
ReflectionException (src) - for an exception invoking the mbean
InstanceNotFoundException (src) - if the mbean is not registered
MBeanException (src) - for any exception thrown by the mbean

createMBean

public ObjectInstance (src)  createMBean(java.lang.String str,
                                  ObjectName (src)  objectName,
                                  ObjectName (src)  objectName2,
                                  java.lang.Object[] obj,
                                  java.lang.String[] str4)
                           throws ReflectionException (src) ,
                                  InstanceAlreadyExistsException (src) ,
                                  MBeanRegistrationException (src) ,
                                  MBeanException (src) ,
                                  NotCompliantMBeanException (src) ,
                                  InstanceNotFoundException (src) 
Description copied from interface: MBeanServer (src)
Create an MBean registered using the given object name.

The MBean is loaded using the passed classloader. Uses the specified constructor.

Specified by:
createMBean in interface MBeanServer (src)
Parameters:
str - the class name of the mbean
objectName2 - an MBean that implements a classloader
objectName - the object name for registration, can be null
obj - the parameters for the constructor
str4 - the signature of the constructor
Returns:
an ObjectInstance describing the registration
Throws:
MBeanRegistrationException (src) - for any exception thrown by the MBean's preRegister
MBeanException (src) - for any exception thrown by the MBean's constructor
InstanceNotFoundException (src) - if the loaderName is not a classloader registered in the MBeanServer
NotCompliantMBeanException (src) - if the class name does not correspond to a valid MBean
ReflectionException (src) - for class not found or an exception invoking the contructor
InstanceAlreadyExistsException (src) - for an MBean already registered with the passed or generated ObjectName

createMBean

public ObjectInstance (src)  createMBean(java.lang.String str,
                                  ObjectName (src)  objectName,
                                  java.lang.Object[] obj,
                                  java.lang.String[] str3)
                           throws ReflectionException (src) ,
                                  InstanceAlreadyExistsException (src) ,
                                  MBeanRegistrationException (src) ,
                                  MBeanException (src) ,
                                  NotCompliantMBeanException (src) 
Description copied from interface: MBeanServer (src)
Create an MBean registered using the given object name.

Uses the specified constructor.

Specified by:
createMBean in interface MBeanServer (src)
Parameters:
str - the class name of the mbean
obj - the parameters for the constructor
str3 - the signature of the constructor
Returns:
an ObjectInstance describing the registration
Throws:
ReflectionException (src) - for class not found or an exception invoking the contructor
MBeanException (src) - for any exception thrown by the MBean's constructor
MBeanRegistrationException (src) - for any exception thrown by the MBean's preRegister
InstanceAlreadyExistsException (src) - for an MBean already registered with the passed or generated ObjectName
NotCompliantMBeanException (src) - if the class name does not correspond to a valid MBean

setAttribute

public void setAttribute(ObjectName (src)  objectName,
                         Attribute (src)  attribute)
                  throws InstanceNotFoundException (src) ,
                         AttributeNotFoundException (src) ,
                         InvalidAttributeValueException (src) ,
                         MBeanException (src) ,
                         ReflectionException (src) 
Description copied from interface: MBeanServer (src)
Set a value for an MBean.

Specified by:
setAttribute in interface MBeanServer (src)
Parameters:
objectName - the object name of the mbean
attribute - the attribute name and value to set
Throws:
MBeanException (src) - for any exception thrown by the mbean
InvalidAttributeValueException (src) - if the new value has an incorrect type
InstanceNotFoundException (src) - if the mbean is not registered
ReflectionException (src) - for an exception invoking the mbean
AttributeNotFoundException (src) - if the mbean has no such attribute

instantiate

public java.lang.Object instantiate(java.lang.String str,
                                    java.lang.Object[] obj,
                                    java.lang.String[] str2)
                             throws ReflectionException (src) ,
                                    MBeanException (src) 
Description copied from interface: MBeanServer (src)
Instantiates an object using the default loader repository and a given constructor. The class being instantiated must contain a constructor that matches the signature given as an argument to this method call.

Specified by:
instantiate in interface MBeanServer (src)
Parameters:
str - class to instantiate
obj - argument values for the constructor call
str2 - signature of the constructor as fully qualified class names
Returns:
instantiated object
Throws:
ReflectionException (src) - If there was an error while trying to invoke the class's constructor or the given class was not found. This exception wraps the actual exception thrown.
MBeanException (src) - If the object constructor raised a checked exception during the initialization. This exception wraps the actual exception thrown.
See Also:
DefaultLoaderRepository (src)

instantiate

public java.lang.Object instantiate(java.lang.String str,
                                    ObjectName (src)  objectName,
                                    java.lang.Object[] obj,
                                    java.lang.String[] str3)
                             throws ReflectionException (src) ,
                                    MBeanException (src) ,
                                    InstanceNotFoundException (src) 
Description copied from interface: MBeanServer (src)
Instantiates an object using the given class loader. If the loader name contains a null reference, the class loader of the MBean server implementation will be used. The object must contain a constructor with a matching signature given as a parameter to this call.

Specified by:
instantiate in interface MBeanServer (src)
Parameters:
str - class to instantiate
objectName - object name of a registered class loader in the agent.
obj - argument values for the constructor call
str3 - signature of the constructor as fully qualified class name strings
Returns:
instantiated object
Throws:
MBeanException (src) - If the object constructor raised a checked exception during the initialization. This exception wraps the actual exception thrown.
ReflectionException (src) - If there was an error while trying to invoke the class's constructor or the given class was not found. this exception wraps the actual exception thrown.
InstanceNotFoundException (src) - if the specified class loader was not registered to the agent.

deserialize

public java.io.ObjectInputStream deserialize(java.lang.String str,
                                             ObjectName (src)  objectName,
                                             byte[] values)
                                      throws InstanceNotFoundException (src) ,
                                             OperationsException (src) ,
                                             ReflectionException (src) 
Specified by:
deserialize in interface MBeanServer (src)
Throws:
InstanceNotFoundException (src)
OperationsException (src)
ReflectionException (src)

deserialize

public java.io.ObjectInputStream deserialize(java.lang.String str,
                                             byte[] values)
                                      throws OperationsException (src) ,
                                             ReflectionException (src) 
Specified by:
deserialize in interface MBeanServer (src)
Throws:
OperationsException (src)
ReflectionException (src)

queryMBeans

public java.util.Set queryMBeans(ObjectName (src)  objectName,
                                 QueryExp (src)  queryExp)
Description copied from interface: MBeanServer (src)
Retrieve a set of Object instances

Specified by:
queryMBeans in interface MBeanServer (src)
Parameters:
objectName - an ObjectName pattern, can be null for all mbeans
queryExp - a query expression to further filter the mbeans, can be null for no query

setAttributes

public AttributeList (src)  setAttributes(ObjectName (src)  objectName,
                                   AttributeList (src)  attributeList)
                            throws InstanceNotFoundException (src) ,
                                   ReflectionException (src) 
Description copied from interface: MBeanServer (src)
Set a list of values for an MBean.

Specified by:
setAttributes in interface MBeanServer (src)
Parameters:
objectName - the object name of the mbean
attributeList - the attribute names and values to set
Returns:
the list of values, attributes with errors are ignored
Throws:
InstanceNotFoundException (src) - if the mbean is not registered
ReflectionException (src) - for an exception invoking the mbean

getMBeanCount

public java.lang.Integer getMBeanCount()
Description copied from interface: MBeanServer (src)
Retrieve the number of mbeans registered in the server.

Specified by:
getMBeanCount in interface MBeanServer (src)
Returns:
true the number of registered mbeans

invoke

public java.lang.Object invoke(ObjectName (src)  objectName,
                               java.lang.String str,
                               java.lang.Object[] obj,
                               java.lang.String[] str3)
                        throws InstanceNotFoundException (src) ,
                               MBeanException (src) ,
                               ReflectionException (src) 
Description copied from interface: MBeanServer (src)
Invokes an operation on an mbean.

Specified by:
invoke in interface MBeanServer (src)
Parameters:
objectName - the object name of the mbean
str - the operation to perform
obj - the parameters
str3 - the signature of the operation
Returns:
any result of the operation
Throws:
InstanceNotFoundException (src) - if the mbean is not registered
MBeanException (src) - for any exception thrown by the mbean
ReflectionException (src) - for an exception invoking the mbean

deserialize

public java.io.ObjectInputStream deserialize(ObjectName (src)  objectName,
                                             byte[] values)
                                      throws InstanceNotFoundException (src) ,
                                             OperationsException (src) 
Specified by:
deserialize in interface MBeanServer (src)
Throws:
InstanceNotFoundException (src)
OperationsException (src)

getAttributes

public AttributeList (src)  getAttributes(ObjectName (src)  objectName,
                                   java.lang.String[] str)
                            throws InstanceNotFoundException (src) ,
                                   ReflectionException (src) 
Description copied from interface: MBeanServer (src)
Retrieve a list of values from an MBean.

Specified by:
getAttributes in interface MBeanServer (src)
Parameters:
objectName - the object name of the mbean
str - the attribute names of the values to retrieve
Returns:
the list of values, attributes with errors are ignored
Throws:
ReflectionException (src) - for an exception invoking the mbean
InstanceNotFoundException (src) - if the mbean is not registered

queryNames

public java.util.Set queryNames(ObjectName (src)  objectName,
                                QueryExp (src)  queryExp)
Description copied from interface: MBeanServer (src)
Retrieve a set of Object names

Specified by:
queryNames in interface MBeanServer (src)
Parameters:
objectName - an ObjectName pattern, can be null for all mbeans
queryExp - a query expression to further filter the mbeans, can be null for no query

unregisterMBean

public void unregisterMBean(ObjectName (src)  objectName)
                     throws InstanceNotFoundException (src) ,
                            MBeanRegistrationException (src) 
Description copied from interface: MBeanServer (src)
Unregisters an mbean.

Specified by:
unregisterMBean in interface MBeanServer (src)
Parameters:
objectName - the object name of the mbean to unregister
Throws:
InstanceNotFoundException (src) - if the mbean is not registered in the MBeanServer
MBeanRegistrationException (src) - for any exception thrown by the MBean's preDeregister

removeNotificationListener

public void removeNotificationListener(ObjectName (src)  objectName,
                                       ObjectName (src)  objectName1)
                                throws InstanceNotFoundException (src) ,
                                       ListenerNotFoundException (src) 
Description copied from interface: MBeanServer (src)
Removes a listener from an mbean.

All registrations of the listener are removed.

Specified by:
removeNotificationListener in interface MBeanServer (src)
Parameters:
objectName - the name of the MBean broadcasting notifications
objectName1 - the object name of the listener to remove
Throws:
InstanceNotFoundException (src) - if the broadcaster or listener is not registered
ListenerNotFoundException (src) - if the listener is not registered against the broadcaster

removeNotificationListener

public void removeNotificationListener(ObjectName (src)  objectName,
                                       NotificationListener (src)  notificationListener)
                                throws InstanceNotFoundException (src) ,
                                       ListenerNotFoundException (src) 
Description copied from interface: MBeanServer (src)
Removes a listener from an mbean.

All registrations of the listener are removed.

Specified by:
removeNotificationListener in interface MBeanServer (src)
Parameters:
objectName - the name of the MBean broadcasting notifications
notificationListener - the listener to remove
Throws:
InstanceNotFoundException (src) - if the broadcaster is not registered
ListenerNotFoundException (src) - if the listener is not registered against the broadcaster

getClassLoaderRepository

public ClassLoaderRepository (src)  getClassLoaderRepository()
Description copied from interface: MBeanServer (src)
Retrieve the classloader repository for this mbean server

Specified by:
getClassLoaderRepository in interface MBeanServer (src)
Returns:
the classloader repository

getClassLoader

public java.lang.ClassLoader getClassLoader(ObjectName (src)  objectName)
                                     throws InstanceNotFoundException (src) 
Description copied from interface: MBeanServer (src)
Retrieve the classloader registered as an MBean

Specified by:
getClassLoader in interface MBeanServer (src)
Parameters:
objectName - the object name of the classloader
Returns:
the classloader
Throws:
InstanceNotFoundException (src) - when the mbean is not registered

getClassLoaderFor

public java.lang.ClassLoader getClassLoaderFor(ObjectName (src)  objectName)
                                        throws InstanceNotFoundException (src) 
Description copied from interface: MBeanServer (src)
Retrieve the classloader for an mbean

Specified by:
getClassLoaderFor in interface MBeanServer (src)
Parameters:
objectName - the object name of the mbean
Returns:
the classloader
Throws:
InstanceNotFoundException (src) - when the mbean is not registered

removeNotificationListener

public void removeNotificationListener(ObjectName (src)  objectName,
                                       ObjectName (src)  notificationListener,
                                       NotificationFilter (src)  filter,
                                       java.lang.Object handback)
                                throws InstanceNotFoundException (src) ,
                                       ListenerNotFoundException (src) 
Description copied from interface: MBeanServer (src)
Removes a listener from an mbean.

Only the listener that was registered with the same filter and handback is removed.

Specified by:
removeNotificationListener in interface MBeanServer (src)
Parameters:
objectName - the name of the MBean broadcasting notifications
notificationListener - the object name of listener to remove
filter - the filter of the listener to remove
Throws:
ListenerNotFoundException (src) - if the listener, filter, handback is not registered against the broadcaster
InstanceNotFoundException (src) - if the broadcaster or listener is not registered

removeNotificationListener

public void removeNotificationListener(ObjectName (src)  objectName,
                                       NotificationListener (src)  notificationListener,
                                       NotificationFilter (src)  filter,
                                       java.lang.Object handback)
                                throws InstanceNotFoundException (src) ,
                                       ListenerNotFoundException (src) 
Description copied from interface: MBeanServer (src)
Removes a listener from an mbean.

Only the listener that was registered with the same filter and handback is removed.

Specified by:
removeNotificationListener in interface MBeanServer (src)
Parameters:
objectName - the name of the MBean broadcasting notifications
notificationListener - the listener to remove
filter - the filter of the listener to remove
Throws:
InstanceNotFoundException (src) - if the broadcaster is not registered
ListenerNotFoundException (src) - if the listener, filter, handback is not registered against the broadcaster

getDomains

public java.lang.String[] getDomains()
Description copied from interface: MBeanServer (src)
Retrieve the domains of the mbeanserver.

Specified by:
getDomains in interface MBeanServer (src)
Returns:
the domains