HOME

com.ireasoning.core.jmx
Class MBeanManager

java.lang.Object
  extended bycom.ireasoning.core.jmx.MBeanManager

public class MBeanManager
extends Object

This class manages MBean's operations.


Method Summary
 Object getAttribute(ObjectName name, String attribute)
           
static MBeanManager getInstance()
           
 MBeanInfo getMBeanInfo(ObjectName name)
           
 MBeanServer getMBeanServer()
           
 ObjectName getObjectName(ObjectName objName)
           
 Object invoke(ObjectName name, String operationName, Object[] params, String[] signature)
           
 boolean isRegistered(ObjectName name)
           
 void registerMBean(Object object, ObjectName objName)
           
 void removeNotificationListener(ObjectName name, NotificationListener listener)
           
 void setAttribute(ObjectName name, Attribute attribute)
           
 void setMBeanServer(MBeanServer server)
           
 void unregisterMBean(ObjectName name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static MBeanManager getInstance()

setMBeanServer

public void setMBeanServer(MBeanServer server)

getMBeanServer

public MBeanServer getMBeanServer()

registerMBean

public void registerMBean(Object object,
                          ObjectName objName)
                   throws InstanceAlreadyExistsException,
                          MBeanRegistrationException,
                          NotCompliantMBeanException
Throws:
InstanceAlreadyExistsException
MBeanRegistrationException
NotCompliantMBeanException

isRegistered

public boolean isRegistered(ObjectName name)

unregisterMBean

public void unregisterMBean(ObjectName name)
                     throws InstanceNotFoundException,
                            MBeanRegistrationException
Throws:
InstanceNotFoundException
MBeanRegistrationException

setAttribute

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

getAttribute

public Object getAttribute(ObjectName name,
                           String attribute)
                    throws MBeanException,
                           AttributeNotFoundException,
                           InstanceNotFoundException,
                           ReflectionException
Throws:
MBeanException
AttributeNotFoundException
InstanceNotFoundException
ReflectionException

invoke

public Object invoke(ObjectName name,
                     String operationName,
                     Object[] params,
                     String[] signature)
              throws InstanceNotFoundException,
                     MBeanException,
                     ReflectionException
Throws:
InstanceNotFoundException
MBeanException
ReflectionException

removeNotificationListener

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

getMBeanInfo

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

getObjectName

public ObjectName getObjectName(ObjectName objName)

HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.