Class CounterHistoryRecorder
- java.lang.Object
-
- org.javasimon.CallbackSkeleton
-
- org.nuxeo.runtime.management.counters.CounterHistoryRecorder
-
- All Implemented Interfaces:
org.javasimon.Callback
@Deprecated(since="11.4") public class CounterHistoryRecorder extends org.javasimon.CallbackSkeleton
Deprecated.since 11.4: use dropwizard metrics insteadListen to Simon events to store past values of the counters History is kept in memory usingCounterHistoryStack- Author:
- Tiry (tdelprat@nuxeo.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,CounterHistoryStack>counterHistoryDeprecated.protected inthistoryLengthDeprecated.
-
Constructor Summary
Constructors Constructor Description CounterHistoryRecorder(int size)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcounterDecrease(org.javasimon.Counter counter, long dec)Deprecated.voidcounterIncrease(org.javasimon.Counter counter, long inc)Deprecated.voidcounterSet(org.javasimon.Counter counter, long val)Deprecated.CounterHistoryStackgetCounterHistory(String counterName)Deprecated.protected CounterHistoryStackgetCounterHistoryStack(org.javasimon.Counter counter)Deprecated.protected voidstoreCounter(org.javasimon.Counter counter)Deprecated.
-
-
-
Field Detail
-
counterHistory
protected Map<String,CounterHistoryStack> counterHistory
Deprecated.
-
historyLength
protected int historyLength
Deprecated.
-
-
Constructor Detail
-
CounterHistoryRecorder
public CounterHistoryRecorder(int size)
Deprecated.
-
-
Method Detail
-
getCounterHistoryStack
protected CounterHistoryStack getCounterHistoryStack(org.javasimon.Counter counter)
Deprecated.
-
storeCounter
protected void storeCounter(org.javasimon.Counter counter)
Deprecated.
-
counterDecrease
public void counterDecrease(org.javasimon.Counter counter, long dec)
Deprecated.- Specified by:
counterDecreasein interfaceorg.javasimon.Callback- Overrides:
counterDecreasein classorg.javasimon.CallbackSkeleton
-
counterSet
public void counterSet(org.javasimon.Counter counter, long val)
Deprecated.- Specified by:
counterSetin interfaceorg.javasimon.Callback- Overrides:
counterSetin classorg.javasimon.CallbackSkeleton
-
counterIncrease
public void counterIncrease(org.javasimon.Counter counter, long inc)
Deprecated.- Specified by:
counterIncreasein interfaceorg.javasimon.Callback- Overrides:
counterIncreasein classorg.javasimon.CallbackSkeleton
-
getCounterHistory
public CounterHistoryStack getCounterHistory(String counterName)
Deprecated.
-
-