javax.management
Interface MBeanServer

All Known Implementing Classes:
ChainedMBeanServer, MBeanServerImpl, UnmarshallingMBeanServer

public interface MBeanServer

Version:
$Revision: 1.3 $
Author:
Simone Bordet

Method Summary
 void addNotificationListener(ObjectName observed, NotificationListener listener, NotificationFilter filter, java.lang.Object handback)
           
 void addNotificationListener(ObjectName observed, ObjectName listener, NotificationFilter filter, java.lang.Object handback)
           
 ObjectInstance createMBean(java.lang.String className, ObjectName objectName)
           
 ObjectInstance createMBean(java.lang.String className, ObjectName objectName, java.lang.Object[] args, java.lang.String[] parameters)
           
 ObjectInstance createMBean(java.lang.String className, ObjectName objectName, ObjectName loaderName)
           
 ObjectInstance createMBean(java.lang.String className, ObjectName objectName, ObjectName loaderName, java.lang.Object[] args, java.lang.String[] parameters)
           
 java.io.ObjectInputStream deserialize(ObjectName objectName, byte[] bytes)
           
 java.io.ObjectInputStream deserialize(java.lang.String className, byte[] bytes)
           
 java.io.ObjectInputStream deserialize(java.lang.String className, ObjectName loaderName, byte[] bytes)
           
 java.lang.Object getAttribute(ObjectName objectName, java.lang.String attribute)
           
 AttributeList getAttributes(ObjectName objectName, java.lang.String[] attributes)
           
 java.lang.String getDefaultDomain()
           
 java.lang.Integer getMBeanCount()
           
 MBeanInfo getMBeanInfo(ObjectName objectName)
           
 ObjectInstance getObjectInstance(ObjectName objectName)
           
 java.lang.Object instantiate(java.lang.String className)
           
 java.lang.Object instantiate(java.lang.String className, java.lang.Object[] args, java.lang.String[] parameters)
           
 java.lang.Object instantiate(java.lang.String className, ObjectName loaderName)
           
 java.lang.Object instantiate(java.lang.String className, ObjectName loaderName, java.lang.Object[] args, java.lang.String[] parameters)
           
 java.lang.Object invoke(ObjectName objectName, java.lang.String methodName, java.lang.Object[] args, java.lang.String[] parameters)
           
 boolean isInstanceOf(ObjectName objectName, java.lang.String className)
           
 boolean isRegistered(ObjectName objectname)
           
 java.util.Set queryMBeans(ObjectName patternName, QueryExp filter)
           
 java.util.Set queryNames(ObjectName patternName, QueryExp filter)
           
 ObjectInstance registerMBean(java.lang.Object mbean, ObjectName objectName)
           
 void removeNotificationListener(ObjectName observed, NotificationListener listener)
           
 void removeNotificationListener(ObjectName observed, ObjectName listener)
           
 void setAttribute(ObjectName objectName, Attribute attribute)
           
 AttributeList setAttributes(ObjectName objectName, AttributeList attributes)
           
 void unregisterMBean(ObjectName objectName)
           
 

Method Detail

addNotificationListener

void addNotificationListener(ObjectName observed,
                             NotificationListener listener,
                             NotificationFilter filter,
                             java.lang.Object handback)
                             throws InstanceNotFoundException
Throws:
InstanceNotFoundException

addNotificationListener

void addNotificationListener(ObjectName observed,
                             ObjectName listener,
                             NotificationFilter filter,
                             java.lang.Object handback)
                             throws InstanceNotFoundException
Throws:
InstanceNotFoundException

removeNotificationListener

void removeNotificationListener(ObjectName observed,
                                NotificationListener listener)
                                throws InstanceNotFoundException,
                                       ListenerNotFoundException
Throws:
InstanceNotFoundException
ListenerNotFoundException

removeNotificationListener

void removeNotificationListener(ObjectName observed,
                                ObjectName listener)
                                throws InstanceNotFoundException,
                                       ListenerNotFoundException
Throws:
InstanceNotFoundException
ListenerNotFoundException

instantiate

java.lang.Object instantiate(java.lang.String className)
                             throws ReflectionException,
                                    MBeanException
Throws:
ReflectionException
MBeanException

instantiate

java.lang.Object instantiate(java.lang.String className,
                             ObjectName loaderName)
                             throws ReflectionException,
                                    MBeanException,
                                    InstanceNotFoundException
Throws:
ReflectionException
MBeanException
InstanceNotFoundException

instantiate

java.lang.Object instantiate(java.lang.String className,
                             ObjectName loaderName,
                             java.lang.Object[] args,
                             java.lang.String[] parameters)
                             throws ReflectionException,
                                    MBeanException,
                                    InstanceNotFoundException
Throws:
ReflectionException
MBeanException
InstanceNotFoundException

instantiate

java.lang.Object instantiate(java.lang.String className,
                             java.lang.Object[] args,
                             java.lang.String[] parameters)
                             throws ReflectionException,
                                    MBeanException
Throws:
ReflectionException
MBeanException

createMBean

ObjectInstance createMBean(java.lang.String className,
                           ObjectName objectName)
                           throws ReflectionException,
                                  InstanceAlreadyExistsException,
                                  MBeanRegistrationException,
                                  MBeanException,
                                  NotCompliantMBeanException
Throws:
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException

createMBean

ObjectInstance createMBean(java.lang.String className,
                           ObjectName objectName,
                           ObjectName loaderName)
                           throws ReflectionException,
                                  InstanceAlreadyExistsException,
                                  MBeanRegistrationException,
                                  MBeanException,
                                  NotCompliantMBeanException,
                                  InstanceNotFoundException
Throws:
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
InstanceNotFoundException

createMBean

ObjectInstance createMBean(java.lang.String className,
                           ObjectName objectName,
                           java.lang.Object[] args,
                           java.lang.String[] parameters)
                           throws ReflectionException,
                                  InstanceAlreadyExistsException,
                                  MBeanRegistrationException,
                                  MBeanException,
                                  NotCompliantMBeanException
Throws:
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException

createMBean

ObjectInstance createMBean(java.lang.String className,
                           ObjectName objectName,
                           ObjectName loaderName,
                           java.lang.Object[] args,
                           java.lang.String[] parameters)
                           throws ReflectionException,
                                  InstanceAlreadyExistsException,
                                  MBeanRegistrationException,
                                  MBeanException,
                                  NotCompliantMBeanException,
                                  InstanceNotFoundException
Throws:
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
InstanceNotFoundException

registerMBean

ObjectInstance registerMBean(java.lang.Object mbean,
                             ObjectName objectName)
                             throws InstanceAlreadyExistsException,
                                    MBeanRegistrationException,
                                    NotCompliantMBeanException
Throws:
InstanceAlreadyExistsException
MBeanRegistrationException
NotCompliantMBeanException

unregisterMBean

void unregisterMBean(ObjectName objectName)
                     throws InstanceNotFoundException,
                            MBeanRegistrationException
Throws:
InstanceNotFoundException
MBeanRegistrationException

deserialize

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

deserialize

java.io.ObjectInputStream deserialize(java.lang.String className,
                                      byte[] bytes)
                                      throws OperationsException,
                                             ReflectionException
Throws:
OperationsException
ReflectionException

deserialize

java.io.ObjectInputStream deserialize(ObjectName objectName,
                                      byte[] bytes)
                                      throws InstanceNotFoundException,
                                             OperationsException
Throws:
InstanceNotFoundException
OperationsException

getAttribute

java.lang.Object getAttribute(ObjectName objectName,
                              java.lang.String attribute)
                              throws MBeanException,
                                     AttributeNotFoundException,
                                     InstanceNotFoundException,
                                     ReflectionException
Throws:
MBeanException
AttributeNotFoundException
InstanceNotFoundException
ReflectionException

setAttribute

void setAttribute(ObjectName objectName,
                  Attribute attribute)
                  throws InstanceNotFoundException,
                         AttributeNotFoundException,
                         InvalidAttributeValueException,
                         MBeanException,
                         ReflectionException
Throws:
InstanceNotFoundException
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException

getAttributes

AttributeList getAttributes(ObjectName objectName,
                            java.lang.String[] attributes)
                            throws InstanceNotFoundException,
                                   ReflectionException
Throws:
InstanceNotFoundException
ReflectionException

setAttributes

AttributeList setAttributes(ObjectName objectName,
                            AttributeList attributes)
                            throws InstanceNotFoundException,
                                   ReflectionException
Throws:
InstanceNotFoundException
ReflectionException

invoke

java.lang.Object invoke(ObjectName objectName,
                        java.lang.String methodName,
                        java.lang.Object[] args,
                        java.lang.String[] parameters)
                        throws InstanceNotFoundException,
                               MBeanException,
                               ReflectionException
Throws:
InstanceNotFoundException
MBeanException
ReflectionException

getDefaultDomain

java.lang.String getDefaultDomain()

getMBeanCount

java.lang.Integer getMBeanCount()

isRegistered

boolean isRegistered(ObjectName objectname)

getMBeanInfo

MBeanInfo getMBeanInfo(ObjectName objectName)
                       throws InstanceNotFoundException,
                              IntrospectionException,
                              ReflectionException
Throws:
InstanceNotFoundException
IntrospectionException
ReflectionException

getObjectInstance

ObjectInstance getObjectInstance(ObjectName objectName)
                                 throws InstanceNotFoundException
Throws:
InstanceNotFoundException

isInstanceOf

boolean isInstanceOf(ObjectName objectName,
                     java.lang.String className)
                     throws InstanceNotFoundException
Throws:
InstanceNotFoundException

queryMBeans

java.util.Set queryMBeans(ObjectName patternName,
                          QueryExp filter)

queryNames

java.util.Set queryNames(ObjectName patternName,
                         QueryExp filter)


Copyright © 2001-2002 MX4J Team. All Rights Reserved.