mx4j.connector
Interface MBeanServerConnection

All Known Subinterfaces:
RemoteMBeanServer

public interface MBeanServerConnection

The interface for generic MBeanServers.


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

Method Detail

addNotificationListener

public void addNotificationListener(javax.management.ObjectName observed,
                                    javax.management.NotificationListener listener,
                                    javax.management.NotificationFilter filter,
                                    java.lang.Object handback)
                             throws InstanceNotFoundException,
                                    java.io.IOException
InstanceNotFoundException
java.io.IOException

removeNotificationListener

public void removeNotificationListener(javax.management.ObjectName observed,
                                       javax.management.NotificationListener listener,
                                       javax.management.NotificationFilter filter,
                                       java.lang.Object handback)
                                throws InstanceNotFoundException,
                                       ListenerNotFoundException,
                                       java.io.IOException
InstanceNotFoundException
ListenerNotFoundException
java.io.IOException

createMBean

public javax.management.ObjectInstance createMBean(java.lang.String className,
                                                   javax.management.ObjectName objectName,
                                                   java.lang.Object[] args,
                                                   java.lang.String[] parameters)
                                            throws ReflectionException,
                                                   InstanceAlreadyExistsException,
                                                   MBeanRegistrationException,
                                                   MBeanException,
                                                   NotCompliantMBeanException,
                                                   InstanceNotFoundException,
                                                   java.io.IOException
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
InstanceNotFoundException
java.io.IOException

createMBean

public javax.management.ObjectInstance createMBean(java.lang.String className,
                                                   javax.management.ObjectName objectName,
                                                   javax.management.ObjectName loaderName,
                                                   java.lang.Object[] args,
                                                   java.lang.String[] parameters)
                                            throws ReflectionException,
                                                   InstanceAlreadyExistsException,
                                                   MBeanRegistrationException,
                                                   MBeanException,
                                                   NotCompliantMBeanException,
                                                   InstanceNotFoundException,
                                                   java.io.IOException
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
InstanceNotFoundException
java.io.IOException

unregisterMBean

public void unregisterMBean(javax.management.ObjectName objectName)
                     throws InstanceNotFoundException,
                            MBeanRegistrationException,
                            java.io.IOException
InstanceNotFoundException
MBeanRegistrationException
java.io.IOException

getAttribute

public java.lang.Object getAttribute(javax.management.ObjectName objectName,
                                     java.lang.String attribute)
                              throws MBeanException,
                                     AttributeNotFoundException,
                                     InstanceNotFoundException,
                                     ReflectionException,
                                     java.io.IOException
MBeanException
AttributeNotFoundException
InstanceNotFoundException
ReflectionException
java.io.IOException

setAttribute

public void setAttribute(javax.management.ObjectName objectName,
                         javax.management.Attribute attribute)
                  throws InstanceNotFoundException,
                         AttributeNotFoundException,
                         InvalidAttributeValueException,
                         MBeanException,
                         ReflectionException,
                         java.io.IOException
InstanceNotFoundException
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
java.io.IOException

getAttributes

public javax.management.AttributeList getAttributes(javax.management.ObjectName objectName,
                                                    java.lang.String[] attributes)
                                             throws InstanceNotFoundException,
                                                    ReflectionException,
                                                    java.io.IOException
InstanceNotFoundException
ReflectionException
java.io.IOException

setAttributes

public javax.management.AttributeList setAttributes(javax.management.ObjectName objectName,
                                                    javax.management.AttributeList attributes)
                                             throws InstanceNotFoundException,
                                                    ReflectionException,
                                                    java.io.IOException
InstanceNotFoundException
ReflectionException
java.io.IOException

invoke

public java.lang.Object invoke(javax.management.ObjectName objectName,
                               java.lang.String methodName,
                               java.lang.Object[] args,
                               java.lang.String[] parameters)
                        throws InstanceNotFoundException,
                               MBeanException,
                               ReflectionException,
                               java.io.IOException
InstanceNotFoundException
MBeanException
ReflectionException
java.io.IOException

getDefaultDomain

public java.lang.String getDefaultDomain()
                                  throws java.io.IOException
java.io.IOException

getMBeanCount

public java.lang.Integer getMBeanCount()
                                throws java.io.IOException
java.io.IOException

isRegistered

public boolean isRegistered(javax.management.ObjectName objectname)
                     throws java.io.IOException
java.io.IOException

getMBeanInfo

public javax.management.MBeanInfo getMBeanInfo(javax.management.ObjectName objectName)
                                        throws InstanceNotFoundException,
                                               IntrospectionException,
                                               ReflectionException,
                                               java.io.IOException
InstanceNotFoundException
IntrospectionException
ReflectionException
java.io.IOException

getObjectInstance

public javax.management.ObjectInstance getObjectInstance(javax.management.ObjectName objectName)
                                                  throws InstanceNotFoundException,
                                                         java.io.IOException
InstanceNotFoundException
java.io.IOException

isInstanceOf

public boolean isInstanceOf(javax.management.ObjectName objectName,
                            java.lang.String className)
                     throws InstanceNotFoundException,
                            java.io.IOException
InstanceNotFoundException
java.io.IOException

queryMBeans

public java.util.Set queryMBeans(javax.management.ObjectName patternName,
                                 javax.management.QueryExp filter)
                          throws java.io.IOException
java.io.IOException

queryNames

public java.util.Set queryNames(javax.management.ObjectName patternName,
                                javax.management.QueryExp filter)
                         throws java.io.IOException
java.io.IOException