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 instead
Listen to Simon events to store past values of the counters History is kept in memory using
CounterHistoryStack
- Author:
- Tiry ([email protected])
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.javasimon.Callback
org.javasimon.Callback.Event
-
Field Summary
Modifier and TypeFieldDescriptionprotected Map<String,
CounterHistoryStack> Deprecated.protected int
Deprecated. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
counterDecrease
(org.javasimon.Counter counter, long dec) Deprecated.void
counterIncrease
(org.javasimon.Counter counter, long inc) Deprecated.void
counterSet
(org.javasimon.Counter counter, long val) Deprecated.getCounterHistory
(String counterName) Deprecated.protected CounterHistoryStack
getCounterHistoryStack
(org.javasimon.Counter counter) Deprecated.protected void
storeCounter
(org.javasimon.Counter counter) Deprecated.Methods inherited from class org.javasimon.CallbackSkeleton
addCallback, callbacks, cleanup, clear, initialize, message, removeCallback, reset, simonCreated, simonDestroyed, stopwatchAdd, stopwatchStart, stopwatchStop, warning
-
Field Details
-
counterHistory
Deprecated. -
historyLength
protected int historyLengthDeprecated.
-
-
Constructor Details
-
CounterHistoryRecorder
public CounterHistoryRecorder(int size) Deprecated.
-
-
Method Details
-
getCounterHistoryStack
Deprecated. -
storeCounter
protected void storeCounter(org.javasimon.Counter counter) Deprecated. -
counterDecrease
public void counterDecrease(org.javasimon.Counter counter, long dec) Deprecated.- Specified by:
counterDecrease
in interfaceorg.javasimon.Callback
- Overrides:
counterDecrease
in classorg.javasimon.CallbackSkeleton
-
counterSet
public void counterSet(org.javasimon.Counter counter, long val) Deprecated.- Specified by:
counterSet
in interfaceorg.javasimon.Callback
- Overrides:
counterSet
in classorg.javasimon.CallbackSkeleton
-
counterIncrease
public void counterIncrease(org.javasimon.Counter counter, long inc) Deprecated.- Specified by:
counterIncrease
in interfaceorg.javasimon.Callback
- Overrides:
counterIncrease
in classorg.javasimon.CallbackSkeleton
-
getCounterHistory
Deprecated.
-