org.logicblaze.lingo.jmx.remote.jms
Class MBeanServerConnectionDelegate

java.lang.Object
  extended by org.logicblaze.lingo.jmx.remote.jms.MBeanServerConnectionDelegate
All Implemented Interfaces:
MBeanServerConnection
Direct Known Subclasses:
MBeanJmsServerConnectionClient, MBeanJmsServerConnectionImpl

public class MBeanServerConnectionDelegate
extends Object
implements MBeanServerConnection

Acts as a delegate for the MBeanServerConnection

Version:
$Revision: 1.1 $

Field Summary
protected  MBeanServerConnection connection
           
 
Constructor Summary
MBeanServerConnectionDelegate(MBeanServerConnection connection)
           
 
Method Summary
 void addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
           
 void addNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback)
           
 ObjectInstance createMBean(String className, ObjectName name)
           
 ObjectInstance createMBean(String className, ObjectName name, Object[] params, String[] signature)
           
 ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName)
           
 ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature)
           
 Object getAttribute(ObjectName name, String attribute)
           
 AttributeList getAttributes(ObjectName name, String[] attributes)
           
 String getDefaultDomain()
           
 String[] getDomains()
           
 Integer getMBeanCount()
           
 MBeanInfo getMBeanInfo(ObjectName name)
           
 ObjectInstance getObjectInstance(ObjectName name)
           
 Object invoke(ObjectName name, String operationName, Object[] params, String[] signature)
           
 boolean isInstanceOf(ObjectName name, String className)
           
 boolean isRegistered(ObjectName name)
           
 Set queryMBeans(ObjectName name, QueryExp query)
           
 Set queryNames(ObjectName name, QueryExp query)
           
 void removeNotificationListener(ObjectName name, NotificationListener listener)
           
 void removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
           
 void removeNotificationListener(ObjectName name, ObjectName listener)
           
 void removeNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback)
           
 void setAttribute(ObjectName name, Attribute attribute)
           
 AttributeList setAttributes(ObjectName name, AttributeList attributes)
           
 void unregisterMBean(ObjectName name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

protected MBeanServerConnection connection
Constructor Detail

MBeanServerConnectionDelegate

public MBeanServerConnectionDelegate(MBeanServerConnection connection)
Method Detail

createMBean

public ObjectInstance createMBean(String className,
                                  ObjectName name)
                           throws ReflectionException,
                                  InstanceAlreadyExistsException,
                                  MBeanRegistrationException,
                                  MBeanException,
                                  NotCompliantMBeanException,
                                  IOException
Specified by:
createMBean in interface MBeanServerConnection
Throws:
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
IOException

createMBean

public ObjectInstance createMBean(String className,
                                  ObjectName name,
                                  ObjectName loaderName)
                           throws ReflectionException,
                                  InstanceAlreadyExistsException,
                                  MBeanRegistrationException,
                                  MBeanException,
                                  NotCompliantMBeanException,
                                  InstanceNotFoundException,
                                  IOException
Specified by:
createMBean in interface MBeanServerConnection
Throws:
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
InstanceNotFoundException
IOException

createMBean

public ObjectInstance createMBean(String className,
                                  ObjectName name,
                                  Object[] params,
                                  String[] signature)
                           throws ReflectionException,
                                  InstanceAlreadyExistsException,
                                  MBeanRegistrationException,
                                  MBeanException,
                                  NotCompliantMBeanException,
                                  IOException
Specified by:
createMBean in interface MBeanServerConnection
Throws:
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
IOException

createMBean

public ObjectInstance createMBean(String className,
                                  ObjectName name,
                                  ObjectName loaderName,
                                  Object[] params,
                                  String[] signature)
                           throws ReflectionException,
                                  InstanceAlreadyExistsException,
                                  MBeanRegistrationException,
                                  MBeanException,
                                  NotCompliantMBeanException,
                                  InstanceNotFoundException,
                                  IOException
Specified by:
createMBean in interface MBeanServerConnection
Throws:
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
InstanceNotFoundException
IOException

unregisterMBean

public void unregisterMBean(ObjectName name)
                     throws InstanceNotFoundException,
                            MBeanRegistrationException,
                            IOException
Specified by:
unregisterMBean in interface MBeanServerConnection
Throws:
InstanceNotFoundException
MBeanRegistrationException
IOException

getObjectInstance

public ObjectInstance getObjectInstance(ObjectName name)
                                 throws InstanceNotFoundException,
                                        IOException
Specified by:
getObjectInstance in interface MBeanServerConnection
Throws:
InstanceNotFoundException
IOException

queryMBeans

public Set queryMBeans(ObjectName name,
                       QueryExp query)
                throws IOException
Specified by:
queryMBeans in interface MBeanServerConnection
Throws:
IOException

queryNames

public Set queryNames(ObjectName name,
                      QueryExp query)
               throws IOException
Specified by:
queryNames in interface MBeanServerConnection
Throws:
IOException

isRegistered

public boolean isRegistered(ObjectName name)
                     throws IOException
Specified by:
isRegistered in interface MBeanServerConnection
Throws:
IOException

getMBeanCount

public Integer getMBeanCount()
                      throws IOException
Specified by:
getMBeanCount in interface MBeanServerConnection
Throws:
IOException

getAttribute

public Object getAttribute(ObjectName name,
                           String attribute)
                    throws MBeanException,
                           AttributeNotFoundException,
                           InstanceNotFoundException,
                           ReflectionException,
                           IOException
Specified by:
getAttribute in interface MBeanServerConnection
Throws:
MBeanException
AttributeNotFoundException
InstanceNotFoundException
ReflectionException
IOException

getAttributes

public AttributeList getAttributes(ObjectName name,
                                   String[] attributes)
                            throws InstanceNotFoundException,
                                   ReflectionException,
                                   IOException
Specified by:
getAttributes in interface MBeanServerConnection
Throws:
InstanceNotFoundException
ReflectionException
IOException

setAttribute

public void setAttribute(ObjectName name,
                         Attribute attribute)
                  throws InstanceNotFoundException,
                         AttributeNotFoundException,
                         InvalidAttributeValueException,
                         MBeanException,
                         ReflectionException,
                         IOException
Specified by:
setAttribute in interface MBeanServerConnection
Throws:
InstanceNotFoundException
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
IOException

setAttributes

public AttributeList setAttributes(ObjectName name,
                                   AttributeList attributes)
                            throws InstanceNotFoundException,
                                   ReflectionException,
                                   IOException
Specified by:
setAttributes in interface MBeanServerConnection
Throws:
InstanceNotFoundException
ReflectionException
IOException

invoke

public Object invoke(ObjectName name,
                     String operationName,
                     Object[] params,
                     String[] signature)
              throws InstanceNotFoundException,
                     MBeanException,
                     ReflectionException,
                     IOException
Specified by:
invoke in interface MBeanServerConnection
Throws:
InstanceNotFoundException
MBeanException
ReflectionException
IOException

getDefaultDomain

public String getDefaultDomain()
                        throws IOException
Specified by:
getDefaultDomain in interface MBeanServerConnection
Throws:
IOException

getDomains

public String[] getDomains()
                    throws IOException
Specified by:
getDomains in interface MBeanServerConnection
Throws:
IOException

addNotificationListener

public void addNotificationListener(ObjectName name,
                                    NotificationListener listener,
                                    NotificationFilter filter,
                                    Object handback)
                             throws InstanceNotFoundException,
                                    IOException
Specified by:
addNotificationListener in interface MBeanServerConnection
Throws:
InstanceNotFoundException
IOException

addNotificationListener

public void addNotificationListener(ObjectName name,
                                    ObjectName listener,
                                    NotificationFilter filter,
                                    Object handback)
                             throws InstanceNotFoundException,
                                    IOException
Specified by:
addNotificationListener in interface MBeanServerConnection
Throws:
InstanceNotFoundException
IOException

removeNotificationListener

public void removeNotificationListener(ObjectName name,
                                       ObjectName listener)
                                throws InstanceNotFoundException,
                                       ListenerNotFoundException,
                                       IOException
Specified by:
removeNotificationListener in interface MBeanServerConnection
Throws:
InstanceNotFoundException
ListenerNotFoundException
IOException

removeNotificationListener

public void removeNotificationListener(ObjectName name,
                                       ObjectName listener,
                                       NotificationFilter filter,
                                       Object handback)
                                throws InstanceNotFoundException,
                                       ListenerNotFoundException,
                                       IOException
Specified by:
removeNotificationListener in interface MBeanServerConnection
Throws:
InstanceNotFoundException
ListenerNotFoundException
IOException

removeNotificationListener

public void removeNotificationListener(ObjectName name,
                                       NotificationListener listener)
                                throws InstanceNotFoundException,
                                       ListenerNotFoundException,
                                       IOException
Specified by:
removeNotificationListener in interface MBeanServerConnection
Throws:
InstanceNotFoundException
ListenerNotFoundException
IOException

removeNotificationListener

public void removeNotificationListener(ObjectName name,
                                       NotificationListener listener,
                                       NotificationFilter filter,
                                       Object handback)
                                throws InstanceNotFoundException,
                                       ListenerNotFoundException,
                                       IOException
Specified by:
removeNotificationListener in interface MBeanServerConnection
Throws:
InstanceNotFoundException
ListenerNotFoundException
IOException

getMBeanInfo

public MBeanInfo getMBeanInfo(ObjectName name)
                       throws InstanceNotFoundException,
                              IntrospectionException,
                              ReflectionException,
                              IOException
Specified by:
getMBeanInfo in interface MBeanServerConnection
Throws:
InstanceNotFoundException
IntrospectionException
ReflectionException
IOException

isInstanceOf

public boolean isInstanceOf(ObjectName name,
                            String className)
                     throws InstanceNotFoundException,
                            IOException
Specified by:
isInstanceOf in interface MBeanServerConnection
Throws:
InstanceNotFoundException
IOException


Copyright © 2005-2006 LogicBlaze, Inc.. All Rights Reserved.