org.jppf.ui.monitoring.event
Class StatsHandlerEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.jppf.ui.monitoring.event.StatsHandlerEvent
All Implemented Interfaces:
Serializable

public class StatsHandlerEvent
extends EventObject

Event sent when the stats data has changed.

Author:
Laurent Cohen
See Also:
Serialized Form

Nested Class Summary
static class StatsHandlerEvent.Type
          Enumeration of the types of events.
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
StatsHandlerEvent(StatsHandler source, StatsHandlerEvent.Type type)
          Initialize this event with a specified source StatsHandler.
 
Method Summary
 StatsHandler getStatsFormatter()
          Get the StatsHandler source of this event.
 StatsHandlerEvent.Type getType()
          Get the type of this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatsHandlerEvent

public StatsHandlerEvent(StatsHandler source,
                         StatsHandlerEvent.Type type)
Initialize this event with a specified source StatsHandler.

Parameters:
source - the stats formatter whose data has changed.
type - the type of this event.
Method Detail

getStatsFormatter

public StatsHandler getStatsFormatter()
Get the StatsHandler source of this event.

Returns:
a StatsHandler instance.

getType

public StatsHandlerEvent.Type getType()
Get the type of this event.

Returns:
the type as a typesafe Type enumerated value.


Copyright © 2005-2010 JPPF Team.