org.jboss.mx.mxbean
Class MXBeanSupport
java.lang.Object
org.jboss.mx.mxbean.MXBeanSupport
- All Implemented Interfaces:
- DynamicMBean, MBeanRegistration, NotificationBroadcaster, NotificationEmitter
public class MXBeanSupport
- extends Object
- implements DynamicMBean, MBeanRegistration, NotificationEmitter
MXBeanSupport.
- Version:
- $Revision: 85945 $
- Author:
- Adrian Brock
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MXBeanSupport
protected MXBeanSupport()
- Create a new MXBeanSupport.
MXBeanSupport
protected MXBeanSupport(Class<?> mxbeanInterface)
- Create a new MXBeanSupport.
- Parameters:
mxbeanInterface
- the interface
getMBeanInfo
public MBeanInfo getMBeanInfo()
- Specified by:
getMBeanInfo
in interface DynamicMBean
getAttribute
public Object getAttribute(String attribute)
throws AttributeNotFoundException,
MBeanException,
ReflectionException
- Specified by:
getAttribute
in interface DynamicMBean
- Throws:
AttributeNotFoundException
MBeanException
ReflectionException
getAttributes
public AttributeList getAttributes(String[] attributes)
- Specified by:
getAttributes
in interface DynamicMBean
setAttribute
public void setAttribute(Attribute attribute)
throws AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException
- Specified by:
setAttribute
in interface DynamicMBean
- Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
setAttributes
public AttributeList setAttributes(AttributeList attributes)
- Specified by:
setAttributes
in interface DynamicMBean
invoke
public Object invoke(String actionName,
Object[] params,
String[] signature)
throws MBeanException,
ReflectionException
- Specified by:
invoke
in interface DynamicMBean
- Throws:
MBeanException
ReflectionException
preRegister
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws Exception
- Specified by:
preRegister
in interface MBeanRegistration
- Throws:
Exception
postRegister
public void postRegister(Boolean registrationDone)
- Specified by:
postRegister
in interface MBeanRegistration
preDeregister
public void preDeregister()
throws Exception
- Specified by:
preDeregister
in interface MBeanRegistration
- Throws:
Exception
postDeregister
public void postDeregister()
- Specified by:
postDeregister
in interface MBeanRegistration
getNotificationInfo
public MBeanNotificationInfo[] getNotificationInfo()
- Specified by:
getNotificationInfo
in interface NotificationBroadcaster
addNotificationListener
public void addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
throws IllegalArgumentException
- Specified by:
addNotificationListener
in interface NotificationBroadcaster
- Throws:
IllegalArgumentException
removeNotificationListener
public void removeNotificationListener(NotificationListener listener)
throws ListenerNotFoundException
- Specified by:
removeNotificationListener
in interface NotificationBroadcaster
- Throws:
ListenerNotFoundException
removeNotificationListener
public void removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
throws ListenerNotFoundException
- Specified by:
removeNotificationListener
in interface NotificationEmitter
- Throws:
ListenerNotFoundException
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.