|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.management.NotificationBroadcasterSupport
|
+--javax.management.modelmbean.RequiredModelMBean
| 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)
Returns the value of the given attribute. |
AttributeList |
getAttributes(java.lang.String[] attributes)
Returns an AttributeList given an array of attributes. |
MBeanInfo |
getMBeanInfo()
Provides the exposed attributes/actions of this DynamicMBean |
java.lang.Object |
invoke(java.lang.String method,
java.lang.Object[] arguments,
java.lang.String[] params)
Invoke the given method. |
void |
load()
Instantiates for the data found in the persistance store. |
void |
postDeregister()
Called upon after the MBean has been de-registered. |
void |
postRegister(java.lang.Boolean registrationDone)
Called upon after a registration ( successful or not ). |
void |
preDeregister()
Called upon before an MBean will be de-registered by
the MBeanServer. |
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
Allows the MBean to perform any operations before being registered to the MBeanServer.
|
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)
Set the value of the specific attribute |
AttributeList |
setAttributes(AttributeList attributes)
Set the attribute using the given attribute as an AttributeList |
void |
setManagedResource(java.lang.Object resource,
java.lang.String resourceType)
|
void |
setModelMBeanInfo(ModelMBeanInfo modelMBeanInfo)
|
void |
store()
Captures the current state of the MBean. |
| 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 |
public RequiredModelMBean()
throws MBeanException,
RuntimeOperationsException
public RequiredModelMBean(ModelMBeanInfo info)
throws MBeanException,
RuntimeOperationsException
| Method Detail |
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws java.lang.Exception
MBeanRegistrationMBeanServer.
Any exception will cause the MBean not being registered.
preRegister in interface MBeanRegistrationjavax.management.MBeanRegistrationserver - The MBeanServer on which the MBean will be registered.name - The ObjectName of the MBean.java.lang.Exception - Exception of the operation. Note that this is caught
by the MBeanServer and re-thrown as an
MBeanRegistrationException.public void postRegister(java.lang.Boolean registrationDone)
MBeanRegistrationpostRegister in interface MBeanRegistrationjavax.management.MBeanRegistrationregistrationDone - Evaluates to true of the registrations
is successful, false otherwise.
public void preDeregister()
throws java.lang.Exception
MBeanRegistrationMBean will be de-registered by
the MBeanServer.preDeregister in interface MBeanRegistrationjavax.management.MBeanRegistrationjava.lang.Exception - Would be caught by the MBeanServer
and rethrown as an MBeanRegistrationException.public void postDeregister()
MBeanRegistrationpostDeregister in interface MBeanRegistration
public void setModelMBeanInfo(ModelMBeanInfo modelMBeanInfo)
throws MBeanException,
RuntimeOperationsException
setModelMBeanInfo in interface ModelMBean
public void setManagedResource(java.lang.Object resource,
java.lang.String resourceType)
throws MBeanException,
RuntimeOperationsException,
InstanceNotFoundException,
InvalidTargetObjectTypeException
setManagedResource in interface ModelMBeanpublic MBeanInfo getMBeanInfo()
DynamicMBeanDynamicMBeangetMBeanInfo in interface DynamicMBeanjavax.management.DynamicMBeanMBeanInfo
public void addAttributeChangeNotificationListener(NotificationListener listener,
java.lang.String attributeName,
java.lang.Object handback)
throws MBeanException,
RuntimeOperationsException,
java.lang.IllegalArgumentException
addAttributeChangeNotificationListener in interface ModelMBeanNotificationBroadcaster
public void removeAttributeChangeNotificationListener(NotificationListener listener,
java.lang.String attributeName)
throws MBeanException,
RuntimeOperationsException,
ListenerNotFoundException
removeAttributeChangeNotificationListener in interface ModelMBeanNotificationBroadcaster
public void sendAttributeChangeNotification(Attribute oldAttribute,
Attribute newAttribute)
throws MBeanException,
RuntimeOperationsException
sendAttributeChangeNotification in interface ModelMBeanNotificationBroadcaster
public void sendAttributeChangeNotification(AttributeChangeNotification notification)
throws MBeanException,
RuntimeOperationsException
sendAttributeChangeNotification in interface ModelMBeanNotificationBroadcaster
public void sendNotification(java.lang.String message)
throws MBeanException,
RuntimeOperationsException
sendNotification in interface ModelMBeanNotificationBroadcasterpublic AttributeList getAttributes(java.lang.String[] attributes)
DynamicMBeanAttributeList given an array of attributes.getAttributes in interface DynamicMBeanjavax.management.DynamicMBeanattributes - The array of attributes being retrievedAttribute
public java.lang.Object getAttribute(java.lang.String attribute)
throws AttributeNotFoundException,
MBeanException,
ReflectionException
DynamicMBeangetAttribute in interface DynamicMBeanjavax.management.DynamicMBeanattribute - The attribute name for the value being retrieved.AttributeNotFoundException - If the given attribute isn't found.MBeanException - Wraps a java.lang.ExceptionReflectionException - Wraps a java.lang.Exception while trying
to invoke the getter.public AttributeList setAttributes(AttributeList attributes)
DynamicMBeanAttributeListsetAttributes in interface DynamicMBeanjavax.management.DynamicMBeanattributes - The attribute being set.Attribute successfully set.
public void setAttribute(Attribute attribute)
throws AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException
DynamicMBeansetAttribute in interface DynamicMBeanjavax.management.DynamicMBeanattribute - The Attribute being set.AttributeNotFoundException - InvalidAttributeValueException - MBeanException - Wraps a java.lang.Exception which is thrown
by the setter.
public java.lang.Object invoke(java.lang.String method,
java.lang.Object[] arguments,
java.lang.String[] params)
throws MBeanException,
ReflectionException
DynamicMBeaninvoke in interface DynamicMBeanjavax.management.DynamicMBeanmethod - The name of the method to be invoked.arguments - The array of arguments to be set.params - Contains the signature of the method to be invoked.MBeanException - Wraps a java.lang.ExceptionReflectionException -
public void load()
throws MBeanException,
RuntimeOperationsException,
InstanceNotFoundException
PersistentMBeanload in interface PersistentMBeanjavax.management.PersistentMBeanMBeanException - Wraps another exception or thrown when
persistance is not supported.RuntimeOperationsException - Wraps exception from persistance operationInstanceNotFoundException - Cant find the MBean from
the persistance store.
public void store()
throws MBeanException,
RuntimeOperationsException,
InstanceNotFoundException
PersistentMBeanstore in interface PersistentMBeanjavax.management.PersistentMBeanMBeanException - RuntimeOperationsException - InstanceNotFoundException -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||