org.jmonit.features
Class LastValues

java.lang.Object
  extended by org.jmonit.features.AbstractFeature<LastValues>
      extended by org.jmonit.features.LastValues
All Implemented Interfaces:
MonitoringEventListener, Plugin<LastValues>

public class LastValues
extends AbstractFeature<LastValues>

Maintains a list a last N values. Can be used to build a short term detailled history of the monitor.

Author:
Nicolas De Loof

Constructor Summary
LastValues()
           
 
Method Summary
 void clear()
           
 LastValues getFeature()
          A feature is identified by the class it exposes to the monitored application.
 int getSize()
           
 java.util.List getValues()
           
 void onMonitoringEvent(MonitoringEvent event)
          A monitoring event occured and has been dispatched on the bus
 void setSize(int size)
           
 java.lang.String toString()
          
 
Methods inherited from class org.jmonit.features.AbstractFeature
fireMonitoringEvent, getFeature, setMonitor, setMonitoringEventBus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LastValues

public LastValues()
Method Detail

onMonitoringEvent

public void onMonitoringEvent(MonitoringEvent event)
A monitoring event occured and has been dispatched on the bus

See Also:
MonitoringEventListener.onMonitoringEvent(org.jmonit.events.MonitoringEvent)

clear

public void clear()

getSize

public int getSize()
Returns:
the size

getValues

public java.util.List getValues()
Returns:
the values

setSize

public void setSize(int size)
Parameters:
size - the size to set

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

getFeature

public LastValues getFeature()
A feature is identified by the class it exposes to the monitored application.

Returns:
the public API of this feature
See Also:
Plugin.getFeature()


Copyright © 2007 Nicolas De Loof. All Rights Reserved.