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 theCounterManager
service. Uses Simon Counters for implementation- Author:
- Tiry ([email protected])
-
-
Field Summary
Fields Modifier and Type Field Description static String
COUNTER_PREFIX
Deprecated.protected CounterHistoryRecorder
history
Deprecated.-
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 void
decreaseCounter(String counterName)
Deprecated.Decrease a countervoid
decreaseCounter(String counterName, long value)
Deprecated.void
disableCounters()
Deprecated.Desable all coutersvoid
enableCounters()
Deprecated.Enables all countersCounterHistoryStack
getCounterHistory(String counterName)
Deprecated.Get recorder values of the counter over timevoid
increaseCounter(String counterName)
Deprecated.Increase a countervoid
increaseCounter(String counterName, long value)
Deprecated.void
setCounterValue(String counterName, long value)
Deprecated.Set the value of a countervoid
start(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:CounterManager
Enables all counters- Specified by:
enableCounters
in interfaceCounterManager
-
disableCounters
public void disableCounters()
Deprecated.Description copied from interface:CounterManager
Desable all couters- Specified by:
disableCounters
in interfaceCounterManager
-
start
public void start(ComponentContext context)
Deprecated.Description copied from interface:Component
Start the component. This method is called after all the components were resolved and activated- Specified by:
start
in interfaceComponent
- Overrides:
start
in classDefaultComponent
-
decreaseCounter
public void decreaseCounter(String counterName)
Deprecated.Description copied from interface:CounterManager
Decrease a counter- Specified by:
decreaseCounter
in interfaceCounterManager
-
increaseCounter
public void increaseCounter(String counterName)
Deprecated.Description copied from interface:CounterManager
Increase a counter- Specified by:
increaseCounter
in interfaceCounterManager
-
decreaseCounter
public void decreaseCounter(String counterName, long value)
Deprecated.- Specified by:
decreaseCounter
in interfaceCounterManager
-
increaseCounter
public void increaseCounter(String counterName, long value)
Deprecated.- Specified by:
increaseCounter
in interfaceCounterManager
-
setCounterValue
public void setCounterValue(String counterName, long value)
Deprecated.Description copied from interface:CounterManager
Set the value of a counter- Specified by:
setCounterValue
in interfaceCounterManager
-
getCounterHistory
public CounterHistoryStack getCounterHistory(String counterName)
Deprecated.Description copied from interface:CounterManager
Get recorder values of the counter over time- Specified by:
getCounterHistory
in interfaceCounterManager
-
-