HOME

com.ireasoning.core.jmx
Class MBeanManager

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

public class MBeanManager
extends java.lang.Object

This class manages MBean's operations.


Method Summary
 java.lang.Object getAttribute(ObjectName name, java.lang.String attribute)
           
static MBeanManager getInstance()
           
 MBeanInfo getMBeanInfo(ObjectName name)
           
 MBeanServer getMBeanServer()
           
 ObjectName getObjectName(ObjectName objName)
           
 java.lang.Object invoke(ObjectName name, java.lang.String operationName, java.lang.Object[] params, java.lang.String[] signature)
           
 boolean isRegistered(ObjectName name)
           
 void registerMBean(java.lang.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(java.lang.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 java.lang.Object getAttribute(ObjectName name,
                                     java.lang.String attribute)
                              throws MBeanException,
                                     AttributeNotFoundException,
                                     InstanceNotFoundException,
                                     ReflectionException
Throws:
MBeanException
AttributeNotFoundException
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
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.