com.ibm.websphere.management
Class RuntimeCollaborator
- java.lang.Object
com.ibm.websphere.management.RuntimeCollaborator
- public abstract class RuntimeCollaborator
- extends java.lang.Object
Field Summary
Modifier and Type | Field and Description |
---|---|
|
modelMBean
|
Constructor Summary
Constructor and Description |
---|
RuntimeCollaborator()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
bindMBean(javax.management.modelmbean.ModelMBeanInfo info,javax.management.modelmbean.ModelMBean bean)
Bind the ModelMBeanInfo Object with specific runtime object.
|
|
getObjectName()
|
|
mbeanActivated()
Called when the MBean for which this is the managed resource is
activated.
|
|
sendNotification(javax.management.Notification ntfyObj)
Send the given notification through the ModelMBean.
|
|
sendNotification(java.lang.String ntfyText)
Send a notification with the given text through the ModelMBean.
|
|
setObjectName(javax.management.ObjectName name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail
modelMBean
- protected javax.management.modelmbean.ModelMBean modelMBean
Constructor Detail
RuntimeCollaborator
- public RuntimeCollaborator()
Method Detail
bindMBean
- public void bindMBean(javax.management.modelmbean.ModelMBeanInfo info,
- javax.management.modelmbean.ModelMBean bean)
- throws java.lang.Exception
Parameters:
info
- - the ModelMBeanInfo instance that the runtime object is to be bound to;
this should only be used for read-access of the ModelMBeanInfo bean
- - the ModelMBean instance that the runtime object is to be bound to. Throws:
java.lang.Exception
sendNotification
- public void sendNotification(javax.management.Notification ntfyObj)
- throws javax.management.MBeanException
- javax.management.RuntimeOperationsException
Send the given notification through the ModelMBean.
Throws:
javax.management.MBeanException
javax.management.RuntimeOperationsException
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.
Throws:
javax.management.MBeanException
javax.management.RuntimeOperationsException
See Also:
ModelMBeanNotificationBroadcaster.sendNotification(String)
getObjectName
- public javax.management.ObjectName getObjectName( )
setObjectName
- public void setObjectName(javax.management.ObjectName name)
mbeanActivated
- public void mbeanActivated()
Called when the MBean for which this is the managed resource is
activated. This should be overridden by implementations that need to
perform some action after the MBean is activated.
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: