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

Constructor Summary
RequiredModelMBean()
           
RequiredModelMBean(ModelMBeanInfo info)
           
 
Method Summary
 void addAttributeChangeNotificationListener(NotificationListener listener, java.lang.String attributeName, java.lang.Object handback)
           
 java.lang.Object getAttribute(java.lang.String attribute)
           
 AttributeList getAttributes(java.lang.String[] attributes)
           
 MBeanInfo getMBeanInfo()
           
 java.lang.Object invoke(java.lang.String method, java.lang.Object[] arguments, java.lang.String[] params)
           
 void load()
           
 void postDeregister()
           
 void postRegister(java.lang.Boolean registrationDone)
           
 void preDeregister()
           
 ObjectName preRegister(MBeanServer server, ObjectName name)
           
 void removeAttributeChangeNotificationListener(NotificationListener listener, java.lang.String attributeName)
           
 void sendAttributeChangeNotification(Attribute oldAttribute, Attribute newAttribute)
           
 void sendAttributeChangeNotification(AttributeChangeNotification notification)
           
 void sendNotification(java.lang.String message)
           
 void setAttribute(Attribute attribute)
           
 AttributeList setAttributes(AttributeList attributes)
           
 void setManagedResource(java.lang.Object resource, java.lang.String resourceType)
           
 void setModelMBeanInfo(ModelMBeanInfo modelMBeanInfo)
           
 void store()
           
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.management.modelmbean.ModelMBeanNotificationBroadcaster
sendNotification
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 

Constructor Detail

RequiredModelMBean

public RequiredModelMBean()
                   throws MBeanException,
                          RuntimeOperationsException

RequiredModelMBean

public RequiredModelMBean(ModelMBeanInfo info)
                   throws MBeanException,
                          RuntimeOperationsException
Method Detail

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