Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.management
Interface MBeanServer  view MBeanServer download MBeanServer.java


public interface MBeanServer

The interface used to access the MBean server instances.

Version:
$Revision: 1.4 $

Method Summary
 void addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, java.lang.Object handback)
           
 void addNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, java.lang.Object handback)
           
 ObjectInstance createMBean(java.lang.String className, ObjectName name)
           
 ObjectInstance createMBean(java.lang.String className, ObjectName name, java.lang.Object[] params, java.lang.String[] signature)
           
 ObjectInstance createMBean(java.lang.String className, ObjectName name, ObjectName loaderName)
           
 ObjectInstance createMBean(java.lang.String className, ObjectName name, ObjectName loaderName, java.lang.Object[] params, java.lang.String[] signature)
           
 java.io.ObjectInputStream deserialize(ObjectName name, byte[] data)
           
 java.io.ObjectInputStream deserialize(java.lang.String className, byte[] data)
           
 java.io.ObjectInputStream deserialize(java.lang.String className, ObjectName loaderName, byte[] data)
           
 java.lang.Object getAttribute(ObjectName name, java.lang.String attribute)
           
 AttributeList getAttributes(ObjectName name, java.lang.String[] attributes)
           
 java.lang.String getDefaultDomain()
           
 java.lang.Integer getMBeanCount()
           
 MBeanInfo getMBeanInfo(ObjectName name)
           
 ObjectInstance getObjectInstance(ObjectName name)
           
 java.lang.Object instantiate(java.lang.String className)
          Instantiates an object using the default loader repository and default no-args constructor.
 java.lang.Object instantiate(java.lang.String className, java.lang.Object[] params, java.lang.String[] signature)
          Instantiates an object using the default loader repository and a given constructor.
 java.lang.Object instantiate(java.lang.String className, ObjectName loaderName)
          Instantiates an object using the given class loader.
 java.lang.Object instantiate(java.lang.String className, ObjectName loaderName, java.lang.Object[] params, java.lang.String[] signature)
          Instantiates an object using the given class loader.
 java.lang.Object invoke(ObjectName name, java.lang.String operationName, java.lang.Object[] params, java.lang.String[] signature)
           
 boolean isInstanceOf(ObjectName name, java.lang.String className)
           
 boolean isRegistered(ObjectName name)
           
 java.util.Set queryMBeans(ObjectName name, QueryExp query)
           
 java.util.Set queryNames(ObjectName name, QueryExp query)
           
 ObjectInstance registerMBean(java.lang.Object object, ObjectName name)
           
 void removeNotificationListener(ObjectName name, NotificationListener listener)
           
 void removeNotificationListener(ObjectName name, ObjectName listener)
           
 void setAttribute(ObjectName name, Attribute attribute)
           
 AttributeList setAttributes(ObjectName name, AttributeList attributes)
           
 void unregisterMBean(ObjectName name)
           
 

Method Detail

instantiate

public java.lang.Object instantiate(java.lang.String className)
                             throws ReflectionException,
                                    MBeanException
Instantiates an object using the default loader repository and default no-args constructor.


instantiate

public java.lang.Object instantiate(java.lang.String className,
                                    ObjectName loaderName)
                             throws ReflectionException,
                                    MBeanException,
                                    InstanceNotFoundException
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.


instantiate

public java.lang.Object instantiate(java.lang.String className,
                                    java.lang.Object[] params,
                                    java.lang.String[] signature)
                             throws ReflectionException,
                                    MBeanException
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.


instantiate

public java.lang.Object instantiate(java.lang.String className,
                                    ObjectName loaderName,
                                    java.lang.Object[] params,
                                    java.lang.String[] signature)
                             throws ReflectionException,
                                    MBeanException,
                                    InstanceNotFoundException
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.


createMBean

public ObjectInstance createMBean(java.lang.String className,
                                  ObjectName name)
                           throws ReflectionException,
                                  InstanceAlreadyExistsException,
                                  MBeanRegistrationException,
                                  MBeanException,
                                  NotCompliantMBeanException

createMBean

public ObjectInstance createMBean(java.lang.String className,
                                  ObjectName name,
                                  ObjectName loaderName)
                           throws ReflectionException,
                                  InstanceAlreadyExistsException,
                                  MBeanRegistrationException,
                                  MBeanException,
                                  NotCompliantMBeanException,
                                  InstanceNotFoundException

createMBean

public ObjectInstance createMBean(java.lang.String className,
                                  ObjectName name,
                                  java.lang.Object[] params,
                                  java.lang.String[] signature)
                           throws ReflectionException,
                                  InstanceAlreadyExistsException,
                                  MBeanRegistrationException,
                                  MBeanException,
                                  NotCompliantMBeanException

createMBean

public ObjectInstance createMBean(java.lang.String className,
                                  ObjectName name,
                                  ObjectName loaderName,
                                  java.lang.Object[] params,
                                  java.lang.String[] signature)
                           throws ReflectionException,
                                  InstanceAlreadyExistsException,
                                  MBeanRegistrationException,
                                  MBeanException,
                                  NotCompliantMBeanException,
                                  InstanceNotFoundException

registerMBean

public ObjectInstance registerMBean(java.lang.Object object,
                                    ObjectName name)
                             throws InstanceAlreadyExistsException,
                                    MBeanRegistrationException,
                                    NotCompliantMBeanException

unregisterMBean

public void unregisterMBean(ObjectName name)
                     throws InstanceNotFoundException,
                            MBeanRegistrationException

getObjectInstance

public ObjectInstance getObjectInstance(ObjectName name)
                                 throws InstanceNotFoundException

queryMBeans

public java.util.Set queryMBeans(ObjectName name,
                                 QueryExp query)

queryNames

public java.util.Set queryNames(ObjectName name,
                                QueryExp query)

isRegistered

public boolean isRegistered(ObjectName name)

getMBeanCount

public java.lang.Integer getMBeanCount()

getAttribute

public java.lang.Object getAttribute(ObjectName name,
                                     java.lang.String attribute)
                              throws MBeanException,
                                     AttributeNotFoundException,
                                     InstanceNotFoundException,
                                     ReflectionException

getAttributes

public AttributeList getAttributes(ObjectName name,
                                   java.lang.String[] attributes)
                            throws InstanceNotFoundException,
                                   ReflectionException

setAttribute

public void setAttribute(ObjectName name,
                         Attribute attribute)
                  throws InstanceNotFoundException,
                         AttributeNotFoundException,
                         InvalidAttributeValueException,
                         MBeanException,
                         ReflectionException

setAttributes

public AttributeList setAttributes(ObjectName name,
                                   AttributeList attributes)
                            throws InstanceNotFoundException,
                                   ReflectionException

invoke

public java.lang.Object invoke(ObjectName name,
                               java.lang.String operationName,
                               java.lang.Object[] params,
                               java.lang.String[] signature)
                        throws InstanceNotFoundException,
                               MBeanException,
                               ReflectionException

getDefaultDomain

public java.lang.String getDefaultDomain()

addNotificationListener

public void addNotificationListener(ObjectName name,
                                    NotificationListener listener,
                                    NotificationFilter filter,
                                    java.lang.Object handback)
                             throws InstanceNotFoundException

addNotificationListener

public void addNotificationListener(ObjectName name,
                                    ObjectName listener,
                                    NotificationFilter filter,
                                    java.lang.Object handback)
                             throws InstanceNotFoundException

removeNotificationListener

public void removeNotificationListener(ObjectName name,
                                       NotificationListener listener)
                                throws InstanceNotFoundException,
                                       ListenerNotFoundException

removeNotificationListener

public void removeNotificationListener(ObjectName name,
                                       ObjectName listener)
                                throws InstanceNotFoundException,
                                       ListenerNotFoundException

getMBeanInfo

public MBeanInfo getMBeanInfo(ObjectName name)
                       throws InstanceNotFoundException,
                              IntrospectionException,
                              ReflectionException

isInstanceOf

public boolean isInstanceOf(ObjectName name,
                            java.lang.String className)
                     throws InstanceNotFoundException

deserialize

public java.io.ObjectInputStream deserialize(ObjectName name,
                                             byte[] data)
                                      throws InstanceNotFoundException,
                                             OperationsException

deserialize

public java.io.ObjectInputStream deserialize(java.lang.String className,
                                             byte[] data)
                                      throws OperationsException,
                                             ReflectionException

deserialize

public java.io.ObjectInputStream deserialize(java.lang.String className,
                                             ObjectName loaderName,
                                             byte[] data)
                                      throws InstanceNotFoundException,
                                             OperationsException,
                                             ReflectionException