Package org.jppf.utils.stats
Class JPPFStatisticsEvent
java.lang.Object
java.util.EventObject
org.jppf.utils.stats.JPPFStatisticsEvent
- All Implemented Interfaces:
Serializable
A statistics event.
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionJPPFStatisticsEvent(JPPFStatistics statistics, JPPFSnapshot snapshot) Initialize this event with the specified source statistics and snapshot. -
Method Summary
Modifier and TypeMethodDescriptionGet the snapshot that was created, removed or updated.Get the statistics source of this event.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
JPPFStatisticsEvent
Initialize this event with the specified source statistics and snapshot.- Parameters:
statistics- the statistics object to whom the snapshot belongs.snapshot- the snapshot for which the event occurred.
-
-
Method Details
-
getStatistics
Get the statistics source of this event.- Returns:
- a
JPPFStatisticsinstance.
-
getSnapshot
Get the snapshot that was created, removed or updated.- Returns:
- a
JPPFSnapshotinstance.
-