public class JMXManageableSupport extends java.lang.Object implements JMXManageable
| Modifier and Type | Field and Description |
|---|---|
protected javax.management.modelmbean.ModelMBean |
modelMBean |
protected long |
sequenceNumber |
| Constructor and Description |
|---|
JMXManageableSupport() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Properties |
getMBeanProperties()
Provides additional customer-defined key properties
to be added to the key property list of the ObjectName for the MBean.
|
javax.management.modelmbean.ModelMBean |
getModelMBean()
Returns this managed resource's ModelMBean in order to allow
sub-class of JMXManageableSupport class to have access to its
associated ModelMBean.
|
java.lang.String |
getType()
Returns the MBean type for the MBean instance to be created.
|
void |
sendNotification(javax.management.Notification ntfyObj)
Built-in helper function to allow sub-class to send any
Notification through its associated ModelMBean.
|
void |
sendNotification(java.lang.String type)
Built-in helper function to allow sub-class to simplify
sending declared Notifications only using the notification type.
|
void |
setModelMBean(javax.management.modelmbean.ModelMBean srcModelMBean)
Allows WebSphere JMX admin system to bind associated
ModelMBean to this managed resource's modelMBean.
|
protected javax.management.modelmbean.ModelMBean modelMBean
protected long sequenceNumber
public java.lang.String getType()
This type information is used by the WebSphere admin system to load the proper MBean Descriptor in order to define the attributes, operations, and notifications for the MBean.
The WebSphere admin system will first check whether this type is one of the predefined types shipped with the WebSphere product. If the type is one of the predefined ones, the MBean Descriptor shipped with WebSphere is loaded and used. Otherwise, the admin will attempt to locate an MBeanExtensionProvider configured to support this type of MBean and will load the MBean Descriptor from that MBeanExtensionProvider configuration.
If the JMXManageable implementation returns null from this method, the class name of the implementation will be used as the type.
getType in interface JMXManageablepublic java.util.Properties getMBeanProperties()
Note that in distributed environment, all ObjectNames
have at least cell, node, process, type and mbeanIdentifier
key properties.
getMBeanProperties in interface JMXManageablejavax.management.ObjectNamepublic javax.management.modelmbean.ModelMBean getModelMBean()
ModelMBeanpublic final void setModelMBean(javax.management.modelmbean.ModelMBean srcModelMBean)
ModelMBeanpublic void sendNotification(java.lang.String type)
throws javax.management.MBeanException,
javax.management.RuntimeOperationsException
javax.management.MBeanExceptionjavax.management.RuntimeOperationsExceptionModelMBeanpublic void sendNotification(javax.management.Notification ntfyObj)
throws javax.management.MBeanException,
javax.management.RuntimeOperationsException
javax.management.MBeanExceptionjavax.management.RuntimeOperationsExceptionModelMBean