Class CounterManagerImpl
- java.lang.Object
-
- org.nuxeo.runtime.model.DefaultComponent
-
- org.nuxeo.runtime.management.counters.CounterManagerImpl
-
- All Implemented Interfaces:
CounterManager,Adaptable,Component,Extensible,TimestampedService
@Deprecated(since="11.4") public class CounterManagerImpl extends DefaultComponent implements CounterManager
Deprecated.since 11.4: use dropwizard metrics counter insteadRuntime component that provides theCounterManagerservice. Uses Simon Counters for implementation- Author:
- Tiry ([email protected])
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOUNTER_PREFIXDeprecated.protected CounterHistoryRecorderhistoryDeprecated.-
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
-
Constructor Summary
Constructors Constructor Description CounterManagerImpl()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddecreaseCounter(String counterName)Deprecated.Decrease a countervoiddecreaseCounter(String counterName, long value)Deprecated.voiddisableCounters()Deprecated.Desable all coutersvoidenableCounters()Deprecated.Enables all countersCounterHistoryStackgetCounterHistory(String counterName)Deprecated.Get recorder values of the counter over timevoidincreaseCounter(String counterName)Deprecated.Increase a countervoidincreaseCounter(String counterName, long value)Deprecated.voidsetCounterValue(String counterName, long value)Deprecated.Set the value of a countervoidstart(ComponentContext context)Deprecated.Start the component.-
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, stop, unregister, unregisterContribution, unregisterExtension
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.model.Component
applicationStarted, getApplicationStartedOrder
-
-
-
-
Field Detail
-
COUNTER_PREFIX
public static final String COUNTER_PREFIX
Deprecated.- See Also:
- Constant Field Values
-
history
protected CounterHistoryRecorder history
Deprecated.
-
-
Method Detail
-
enableCounters
public void enableCounters()
Deprecated.Description copied from interface:CounterManagerEnables all counters- Specified by:
enableCountersin interfaceCounterManager
-
disableCounters
public void disableCounters()
Deprecated.Description copied from interface:CounterManagerDesable all couters- Specified by:
disableCountersin interfaceCounterManager
-
start
public void start(ComponentContext context)
Deprecated.Description copied from interface:ComponentStart the component. This method is called after all the components were resolved and activated- Specified by:
startin interfaceComponent- Overrides:
startin classDefaultComponent
-
decreaseCounter
public void decreaseCounter(String counterName)
Deprecated.Description copied from interface:CounterManagerDecrease a counter- Specified by:
decreaseCounterin interfaceCounterManager
-
increaseCounter
public void increaseCounter(String counterName)
Deprecated.Description copied from interface:CounterManagerIncrease a counter- Specified by:
increaseCounterin interfaceCounterManager
-
decreaseCounter
public void decreaseCounter(String counterName, long value)
Deprecated.- Specified by:
decreaseCounterin interfaceCounterManager
-
increaseCounter
public void increaseCounter(String counterName, long value)
Deprecated.- Specified by:
increaseCounterin interfaceCounterManager
-
setCounterValue
public void setCounterValue(String counterName, long value)
Deprecated.Description copied from interface:CounterManagerSet the value of a counter- Specified by:
setCounterValuein interfaceCounterManager
-
getCounterHistory
public CounterHistoryStack getCounterHistory(String counterName)
Deprecated.Description copied from interface:CounterManagerGet recorder values of the counter over time- Specified by:
getCounterHistoryin interfaceCounterManager
-
-