Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.management.counters
Interface CounterManager

All Known Implementing Classes:
CounterManagerImpl

public interface CounterManager

Service interface to manage Counters. This services hides the Counters implementation so that Counters's updated don't have to be dependent on Simon

Author:
Tiry (tdelprat@nuxeo.com)

Method Summary
 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
 

Method Detail

increaseCounter

void increaseCounter(String counterName)
Increase a counter

Parameters:
counterName -

increaseCounter

void increaseCounter(String counterName,
                     long value)

setCounterValue

void setCounterValue(String counterName,
                     long value)
Set the value of a counter

Parameters:
counterName -
value -

decreaseCounter

void decreaseCounter(String counterName)
Decrease a counter

Parameters:
counterName -

decreaseCounter

void decreaseCounter(String counterName,
                     long value)

getCounterHistory

CounterHistoryStack getCounterHistory(String counterName)
Get recorder values of the counter over time

Parameters:
counterName -
Returns:

enableCounters

void enableCounters()
Enables all counters


disableCounters

void disableCounters()
Desable all couters


Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.