javax.management.modelmbean
Class RequiredModelMBean
java.lang.Object
|
+--javax.management.NotificationBroadcasterSupport
|
+--javax.management.modelmbean.RequiredModelMBean
- All Implemented Interfaces:
- DynamicMBean, MBeanRegistration, ModelMBean, ModelMBeanNotificationBroadcaster, NotificationBroadcaster, PersistentMBean
- public class RequiredModelMBean
- extends NotificationBroadcasterSupport
- implements ModelMBean, MBeanRegistration
- Version:
- $Revision: 1.5 $
- Author:
- Simone Bordet
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequiredModelMBean
public RequiredModelMBean()
throws MBeanException,
RuntimeOperationsException
RequiredModelMBean
public RequiredModelMBean(ModelMBeanInfo info)
throws MBeanException,
RuntimeOperationsException
preRegister
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws java.lang.Exception
- Specified by:
preRegister in interface MBeanRegistration
postRegister
public void postRegister(java.lang.Boolean registrationDone)
- Specified by:
postRegister in interface MBeanRegistration
preDeregister
public void preDeregister()
throws java.lang.Exception
- Specified by:
preDeregister in interface MBeanRegistration
postDeregister
public void postDeregister()
- Specified by:
postDeregister in interface MBeanRegistration
setModelMBeanInfo
public void setModelMBeanInfo(ModelMBeanInfo modelMBeanInfo)
throws MBeanException,
RuntimeOperationsException
- Specified by:
setModelMBeanInfo in interface ModelMBean
setManagedResource
public void setManagedResource(java.lang.Object resource,
java.lang.String resourceType)
throws MBeanException,
RuntimeOperationsException,
InstanceNotFoundException,
InvalidTargetObjectTypeException
- Specified by:
setManagedResource in interface ModelMBean
getMBeanInfo
public MBeanInfo getMBeanInfo()
- Specified by:
getMBeanInfo in interface DynamicMBean
addAttributeChangeNotificationListener
public void addAttributeChangeNotificationListener(NotificationListener listener,
java.lang.String attributeName,
java.lang.Object handback)
throws MBeanException,
RuntimeOperationsException,
java.lang.IllegalArgumentException
- Specified by:
addAttributeChangeNotificationListener in interface ModelMBeanNotificationBroadcaster
removeAttributeChangeNotificationListener
public void removeAttributeChangeNotificationListener(NotificationListener listener,
java.lang.String attributeName)
throws MBeanException,
RuntimeOperationsException,
ListenerNotFoundException
- Specified by:
removeAttributeChangeNotificationListener in interface ModelMBeanNotificationBroadcaster
sendAttributeChangeNotification
public void sendAttributeChangeNotification(Attribute oldAttribute,
Attribute newAttribute)
throws MBeanException,
RuntimeOperationsException
- Specified by:
sendAttributeChangeNotification in interface ModelMBeanNotificationBroadcaster
sendAttributeChangeNotification
public void sendAttributeChangeNotification(AttributeChangeNotification notification)
throws MBeanException,
RuntimeOperationsException
- Specified by:
sendAttributeChangeNotification in interface ModelMBeanNotificationBroadcaster
sendNotification
public void sendNotification(java.lang.String message)
throws MBeanException,
RuntimeOperationsException
- Specified by:
sendNotification in interface ModelMBeanNotificationBroadcaster
getAttributes
public AttributeList getAttributes(java.lang.String[] attributes)
- Specified by:
getAttributes in interface DynamicMBean
getAttribute
public java.lang.Object getAttribute(java.lang.String attribute)
throws AttributeNotFoundException,
MBeanException,
ReflectionException
- Specified by:
getAttribute in interface DynamicMBean
setAttributes
public AttributeList setAttributes(AttributeList attributes)
- Specified by:
setAttributes in interface DynamicMBean
setAttribute
public void setAttribute(Attribute attribute)
throws AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException
- Specified by:
setAttribute in interface DynamicMBean
invoke
public java.lang.Object invoke(java.lang.String method,
java.lang.Object[] arguments,
java.lang.String[] params)
throws MBeanException,
ReflectionException
- Specified by:
invoke in interface DynamicMBean
load
public void load()
throws MBeanException,
RuntimeOperationsException,
InstanceNotFoundException
- Specified by:
load in interface PersistentMBean
store
public void store()
throws MBeanException,
RuntimeOperationsException,
InstanceNotFoundException
- Specified by:
store in interface PersistentMBean