com.ibm.websphere.management
Class RuntimeCollaborator
java.lang.Object
|
+--com.ibm.websphere.management.RuntimeCollaborator
- public abstract class RuntimeCollaborator
- extends java.lang.Object
A class to setup the managed resource object of a ModelMBean. The ModelMBean
associated with this class is automatically set to be the managed resource,
so classes do not have to call setManagedResource(). This class also emits
notifications if an attribute is changed to all listeners.
Field Summary |
protected javax.management.modelmbean.ModelMBean |
modelMBean
|
Method Summary |
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 |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
modelMBean
protected javax.management.modelmbean.ModelMBean modelMBean
RuntimeCollaborator
public RuntimeCollaborator()
bindMBean
public void bindMBean(javax.management.modelmbean.ModelMBeanInfo info,
javax.management.modelmbean.ModelMBean bean)
throws java.lang.Exception
- Bind the ModelMBeanInfo Object with specific runtime object.
More specifically, this method sets the TargetObject and TargetType
for attributes and operations.
- Parameters:
info
- - the ModelMBeanInfo instance that the runtime object is to be bound to.bean
- - the ModelMBean instance that the runtime object is to be bound to.
sendNotification
public void sendNotification(javax.management.Notification ntfyObj)
throws javax.management.MBeanException,
javax.management.RuntimeOperationsException
- Send the given notification through the ModelMBean.
- See Also:
ModelMBeanNotificationBroadcaster.sendNotification(Notification)
sendNotification
public void sendNotification(java.lang.String ntfyText)
throws javax.management.MBeanException,
javax.management.RuntimeOperationsException
- Send a notification with the given text through the ModelMBean.
- See Also:
ModelMBeanNotificationBroadcaster.sendNotification(String)
getObjectName
public javax.management.ObjectName getObjectName()
setObjectName
public void setObjectName(javax.management.ObjectName name)