Class JPPFStatisticsEvent

java.lang.Object
java.util.EventObject
org.jppf.utils.stats.JPPFStatisticsEvent
All Implemented Interfaces:
Serializable

public class JPPFStatisticsEvent extends EventObject
A statistics event.
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • JPPFStatisticsEvent

      public JPPFStatisticsEvent(JPPFStatistics statistics, JPPFSnapshot snapshot)
      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

      public JPPFStatistics getStatistics()
      Get the statistics source of this event.
      Returns:
      a JPPFStatistics instance.
    • getSnapshot

      public JPPFSnapshot getSnapshot()
      Get the snapshot that was created, removed or updated.
      Returns:
      a JPPFSnapshot instance.