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
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.protected CounterHistoryRecorderDeprecated.Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecreaseCounter(String counterName) Deprecated.Decrease a countervoiddecreaseCounter(String counterName, long value) Deprecated.voidDeprecated.Desable all coutersvoidDeprecated.Enables all countersgetCounterHistory(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, unregisterExtensionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:CounterManagerEnables all counters- Specified by:
enableCountersin interfaceCounterManager
-
disableCounters
public void disableCounters()Deprecated.Description copied from interface:CounterManagerDesable all couters- Specified by:
disableCountersin interfaceCounterManager
-
start
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
Deprecated.Description copied from interface:CounterManagerDecrease a counter- Specified by:
decreaseCounterin interfaceCounterManager
-
increaseCounter
Deprecated.Description copied from interface:CounterManagerIncrease a counter- Specified by:
increaseCounterin interfaceCounterManager
-
decreaseCounter
Deprecated.- Specified by:
decreaseCounterin interfaceCounterManager
-
increaseCounter
Deprecated.- Specified by:
increaseCounterin interfaceCounterManager
-
setCounterValue
Deprecated.Description copied from interface:CounterManagerSet the value of a counter- Specified by:
setCounterValuein interfaceCounterManager
-
getCounterHistory
Deprecated.Description copied from interface:CounterManagerGet recorder values of the counter over time- Specified by:
getCounterHistoryin interfaceCounterManager
-