Package org.jppf.management.forwarding
Class JPPFNodeForwardingNotification
java.lang.Object
java.util.EventObject
javax.management.Notification
org.jppf.management.forwarding.JPPFNodeForwardingNotification
- All Implemented Interfaces:
Serializable
Instances of this notification class wrap any JMX notification received from a node.
They provide additional information to allow users to know from which node and which MBean the notification was emitted.
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields inherited from class javax.management.Notification
source -
Constructor Summary
ConstructorsConstructorDescriptionJPPFNodeForwardingNotification(Notification notification, String nodeUuid, String mBeanName) Initialize this notification with the actual node notification that was received. -
Method Summary
Modifier and TypeMethodDescriptionGet the name of the originating MBean in the node.Get the uuid of the originating node.Get the actual notification forwarded from the node.toString()Methods inherited from class javax.management.Notification
getMessage, getSequenceNumber, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserDataMethods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
JPPFNodeForwardingNotification
Initialize this notification with the actual node notification that was received.- Parameters:
notification- the notification to forward.nodeUuid- the uuid of the originating node.mBeanName- name of the originating MBean in the node.
-
-
Method Details
-
getNotification
Get the actual notification forwarded from the node.- Returns:
- an instance of
Notification.
-
getNodeUuid
Get the uuid of the originating node.- Returns:
- the node uuid as a string.
-
getMBeanName
Get the name of the originating MBean in the node.- Returns:
- the MBean name as a string.
-
toString
- Overrides:
toStringin classNotification
-