Class TopologyEvent
java.lang.Object
java.util.EventObject
org.jppf.client.monitoring.topology.TopologyEvent
- All Implemented Interfaces:
Serializable
Instances of this class represent topology events, including addition/removal of a driver,
addition/removal/update of a node and addition/removal of a peer driver connected as a node.
- Since:
- 5.0
- Author:
- Laurent Cohen
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe types of updates for an event. -
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionTopologyEvent(TopologyManager source, TopologyDriver driverData, TopologyNode nodeData, TopologyEvent.UpdateType updateType) Initialize this event. -
Method Summary
Modifier and TypeMethodDescriptionGet the driver data.Get the node data.Get the topology manager which emitted this event.Get the type of update.toString()Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
TopologyEvent
public TopologyEvent(TopologyManager source, TopologyDriver driverData, TopologyNode nodeData, TopologyEvent.UpdateType updateType) Initialize this event.- Parameters:
source- the source of this event.driverData- the driver data.nodeData- the node data.updateType- the type of update.
-
-
Method Details
-
getDriver
Get the driver data.- Returns:
- a
TopologyDriverinstance.
-
getNodeOrPeer
Get the node data.- Returns:
- a
TopologyNodeinstance.
-
getTopologyManager
Get the topology manager which emitted this event.- Returns:
- a
TopologyManagerinstance.
-
toString
- Overrides:
toStringin classEventObject
-
getUpdateType
Get the type of update.- Returns:
- an
TopologyEvent.UpdateTypeenum value.
-