org.nuxeo.runtime.management.counters
Class CounterHistoryRecorder
java.lang.Object
org.javasimon.CallbackSkeleton
org.nuxeo.runtime.management.counters.CounterHistoryRecorder
- All Implemented Interfaces:
- org.javasimon.Callback
public class CounterHistoryRecorder
- extends org.javasimon.CallbackSkeleton
Listen to Simon events to store past values of the counters
History is kept in memory using CounterHistoryStack
- Author:
- Tiry (tdelprat@nuxeo.com)
Nested classes/interfaces inherited from interface org.javasimon.Callback |
org.javasimon.Callback.Event |
Methods inherited from class org.javasimon.CallbackSkeleton |
addCallback, callbacks, cleanup, clear, initialize, message, removeCallback, reset, simonCreated, simonDestroyed, stopwatchAdd, stopwatchStart, stopwatchStop, warning |
CounterHistoryRecorder
public CounterHistoryRecorder(int size)
counterDecrease
public void counterDecrease(org.javasimon.Counter counter,
long dec)
- Specified by:
counterDecrease
in interface org.javasimon.Callback
- Overrides:
counterDecrease
in class org.javasimon.CallbackSkeleton
counterSet
public void counterSet(org.javasimon.Counter counter,
long val)
- Specified by:
counterSet
in interface org.javasimon.Callback
- Overrides:
counterSet
in class org.javasimon.CallbackSkeleton
counterIncrease
public void counterIncrease(org.javasimon.Counter counter,
long inc)
- Specified by:
counterIncrease
in interface org.javasimon.Callback
- Overrides:
counterIncrease
in class org.javasimon.CallbackSkeleton
getCounterHistory
public CounterHistoryStack getCounterHistory(String counterName)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.