public abstract class RuntimeCollaborator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected javax.management.modelmbean.ModelMBean |
modelMBean |
| Constructor and Description |
|---|
RuntimeCollaborator() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindMBean(javax.management.modelmbean.ModelMBeanInfo info,
javax.management.modelmbean.ModelMBean bean)
Bind the ModelMBeanInfo Object with specific runtime object.
|
javax.management.ObjectName |
getObjectName() |
void |
mbeanActivated()
Called when the MBean for which this is the managed resource is
activated.
|
void |
sendNotification(javax.management.Notification ntfyObj)
Send the given notification through the ModelMBean.
|
void |
sendNotification(java.lang.String ntfyText)
Send a notification with the given text through the ModelMBean.
|
void |
setObjectName(javax.management.ObjectName name) |
public void bindMBean(javax.management.modelmbean.ModelMBeanInfo info,
javax.management.modelmbean.ModelMBean bean)
throws java.lang.Exception
IMPORTANT: Subclasses which modify the ModelMBeanInfo should not use the info parameter passed on this method; instead they should get and set the ModelMBeanInfo on the ModelMBean itself. For example:
ModelMBeanInfo mbeanInfo = (ModelMBeanInfo) bean.getMBeanInfo();
... modify the ModelMBeanInfo ...
bean.setModelMBeanInfo(mbeanInfo);
info - - the ModelMBeanInfo instance that the runtime object is to be bound to;
this should only be used for read-access of the ModelMBeanInfobean - - the ModelMBean instance that the runtime object is to be bound to.java.lang.Exceptionpublic void sendNotification(javax.management.Notification ntfyObj)
throws javax.management.MBeanException,
javax.management.RuntimeOperationsException
javax.management.MBeanExceptionjavax.management.RuntimeOperationsExceptionModelMBeanNotificationBroadcaster.sendNotification(Notification)public void sendNotification(java.lang.String ntfyText)
throws javax.management.MBeanException,
javax.management.RuntimeOperationsException
javax.management.MBeanExceptionjavax.management.RuntimeOperationsExceptionModelMBeanNotificationBroadcaster.sendNotification(String)public javax.management.ObjectName getObjectName()
public void setObjectName(javax.management.ObjectName name)
public void mbeanActivated()