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 instead
Runtime component that provides the
CounterManager
service. Uses Simon Counters for implementation- Author:
- Tiry ([email protected])
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Deprecated.protected CounterHistoryRecorder
Deprecated.Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
decreaseCounter
(String counterName) Deprecated.Decrease a countervoid
decreaseCounter
(String counterName, long value) Deprecated.void
Deprecated.Desable all coutersvoid
Deprecated.Enables all countersgetCounterHistory
(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
getApplicationStartedOrder
-
Field Details
-
COUNTER_PREFIX
Deprecated.- See Also:
-
history
Deprecated.
-
-
Constructor Details
-
CounterManagerImpl
public CounterManagerImpl()Deprecated.
-
-
Method Details
-
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
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
Deprecated.Description copied from interface:CounterManager
Decrease a counter- Specified by:
decreaseCounter
in interfaceCounterManager
-
increaseCounter
Deprecated.Description copied from interface:CounterManager
Increase a counter- Specified by:
increaseCounter
in interfaceCounterManager
-
decreaseCounter
Deprecated.- Specified by:
decreaseCounter
in interfaceCounterManager
-
increaseCounter
Deprecated.- Specified by:
increaseCounter
in interfaceCounterManager
-
setCounterValue
Deprecated.Description copied from interface:CounterManager
Set the value of a counter- Specified by:
setCounterValue
in interfaceCounterManager
-
getCounterHistory
Deprecated.Description copied from interface:CounterManager
Get recorder values of the counter over time- Specified by:
getCounterHistory
in interfaceCounterManager
-