public final class ResourceAdaptorEntityStateChangeNotification extends Notification implements VendorExtensions
ResourceManagementMBean
object to
indicate a change in the operational state of a resource adaptor entity.
The notification type of resource adaptor entity state change notifications is
specified by the ResourceManagementMBean.RESOURCE_ADAPTOR_ENTITY_STATE_CHANGE_NOTIFICATION_TYPE
attribute.
source
Constructor and Description |
---|
ResourceAdaptorEntityStateChangeNotification(ResourceManagementMBean resourceManagementMBean,
String entityName,
ResourceAdaptorEntityState newState,
ResourceAdaptorEntityState oldState,
long sequenceNumber)
Create a
ResourceAdaptorEntityStateChangeNotification to notify
listeners of a change in the operational state of a resource adaptor entity. |
Modifier and Type | Method and Description |
---|---|
static void |
disableVendorDataDeserialization()
Disable the deserialization of vendor-specific data for objects of this class.
|
static void |
disableVendorDataSerialization()
Disable the serialization of vendor-specific data for objects of this class.
|
static void |
enableVendorDataDeserialization()
Enable the deserialization of vendor-specific data for objects of this class.
|
static void |
enableVendorDataSerialization()
Enable the serialization of vendor-specific data for objects of this class.
|
String |
getEntityName()
Get the name of the resource adaptor entity that has changed state.
|
ResourceAdaptorEntityState |
getNewState()
Get the new operational state of the resource adaptor entity.
|
ResourceAdaptorEntityState |
getOldState()
Get the state the resource adaptor entity was in before the change to the new state.
|
Object |
getVendorData()
Get the vendor-specific data.
|
void |
setVendorData(Object vendorData)
Set the vendor-specific data.
|
String |
toString()
Get a string representation for this notification.
|
getMessage, getSequenceNumber, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData
getSource
public ResourceAdaptorEntityStateChangeNotification(ResourceManagementMBean resourceManagementMBean, String entityName, ResourceAdaptorEntityState newState, ResourceAdaptorEntityState oldState, long sequenceNumber) throws NullPointerException
ResourceAdaptorEntityStateChangeNotification
to notify
listeners of a change in the operational state of a resource adaptor entity.
Notifications are broadcast after the resource adaptor entity has
changed to the new state.resourceManagementMBean
- the ResourceManagementMBean
object
that is emitting this notification.entityName
- the name of the resource adaptor entity that has changed state.newState
- the new operational state of the resource adaptor entity.oldState
- the old operational state of the resource adaptor entity.sequenceNumber
- the notification sequence number within the source
ResourceManagementMBean
object.NullPointerException
- if notificationSource
, entityName
,
newState
, or oldState
is null
.public String getEntityName()
public ResourceAdaptorEntityState getNewState()
public ResourceAdaptorEntityState getOldState()
public static void enableVendorDataSerialization()
By default, any vendor-specific data included in an object of this class will not be included in the serialization stream when the object is serialized. Invoking this method changes this behavior so that vendor-specific data is included in the serialization stream when an object of this class is serialized.
This method should only be invoked if the vendor-specific data is serializable via standard Java serialization means.
public static void disableVendorDataSerialization()
If the serialization of vendor-specific data for objects of this class has
been enabled via the enableVendorDataSerialization()
method, this
method disables that behavior again.
public static void enableVendorDataDeserialization()
By default, any vendor-specific data included in the serialization stream of objects of this class is discarded upon deserialization. Invoking this method changes that behavior so that the vendor-specific data is also deserialized when an object of this class is deserialized. A management client that enables the deserialization of vendor-specific data must ensure that any necessary classes required to deserialize that data is available in the relevant classloader.
public static void disableVendorDataDeserialization()
If the deserialization of vendor-specific data for objects of this class has
been enabled via the enableVendorDataDeserialization()
method, this
method disables that behavior again.
public void setVendorData(Object vendorData)
setVendorData
in interface VendorExtensions
vendorData
- the vendor-specific data.public Object getVendorData()
getVendorData
in interface VendorExtensions
public String toString()
toString
in class Notification