|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.runtime.model.DefaultComponent org.nuxeo.runtime.management.counters.CounterManagerImpl
public class CounterManagerImpl
Runtime component that provides the CounterManager
service.
Uses Simon Counters for implementation
Field Summary | |
---|---|
static String |
COUNTER_PREFIX
|
Constructor Summary | |
---|---|
CounterManagerImpl()
|
Method Summary | |
---|---|
void |
applicationStarted(ComponentContext context)
Notify the component that Nuxeo Framework finished starting all Nuxeo bundles. |
void |
decreaseCounter(String counterName)
Decrease a counter |
void |
decreaseCounter(String counterName,
long value)
|
void |
disableCounters()
Desable all couters |
void |
enableCounters()
Enables all counters |
CounterHistoryStack |
getCounterHistory(String counterName)
Get recorder values of the counter over time |
void |
increaseCounter(String counterName)
Increase a counter |
void |
increaseCounter(String counterName,
long value)
|
void |
setCounterValue(String counterName,
long value)
Set the value of a counter |
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent |
---|
activate, deactivate, getAdapter, registerContribution, registerExtension, unregisterContribution, unregisterExtension |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String COUNTER_PREFIX
Constructor Detail |
---|
public CounterManagerImpl()
Method Detail |
---|
public void enableCounters()
CounterManager
enableCounters
in interface CounterManager
public void disableCounters()
CounterManager
disableCounters
in interface CounterManager
public void applicationStarted(ComponentContext context) throws Exception
Component
applicationStarted
in interface Component
applicationStarted
in class DefaultComponent
Exception
public void decreaseCounter(String counterName)
CounterManager
decreaseCounter
in interface CounterManager
public void increaseCounter(String counterName)
CounterManager
increaseCounter
in interface CounterManager
public void decreaseCounter(String counterName, long value)
decreaseCounter
in interface CounterManager
public void increaseCounter(String counterName, long value)
increaseCounter
in interface CounterManager
public void setCounterValue(String counterName, long value)
CounterManager
setCounterValue
in interface CounterManager
public CounterHistoryStack getCounterHistory(String counterName)
CounterManager
getCounterHistory
in interface CounterManager
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |