org.jmonit.features
Class LastValues
java.lang.Object
org.jmonit.features.AbstractFeature<LastValues>
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LastValues
public LastValues()
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.