Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.management.counters
Class CounterHistoryRecorder

java.lang.Object
  extended by org.javasimon.CallbackSkeleton
      extended by org.nuxeo.runtime.management.counters.CounterHistoryRecorder
All Implemented Interfaces:
org.javasimon.Callback

public class CounterHistoryRecorder
extends org.javasimon.CallbackSkeleton

Listen to Simon events to store past values of the counters History is kept in memory using CounterHistoryStack

Author:
Tiry (tdelprat@nuxeo.com)

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.javasimon.Callback
org.javasimon.Callback.Event
 
Constructor Summary
CounterHistoryRecorder(int size)
           
 
Method Summary
 void counterDecrease(org.javasimon.Counter counter, long dec)
           
 void counterIncrease(org.javasimon.Counter counter, long inc)
           
 void counterSet(org.javasimon.Counter counter, long val)
           
 CounterHistoryStack getCounterHistory(String counterName)
           
 
Methods inherited from class org.javasimon.CallbackSkeleton
addCallback, callbacks, cleanup, clear, initialize, message, removeCallback, reset, simonCreated, simonDestroyed, stopwatchAdd, stopwatchStart, stopwatchStop, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CounterHistoryRecorder

public CounterHistoryRecorder(int size)
Method Detail

counterDecrease

public void counterDecrease(org.javasimon.Counter counter,
                            long dec)
Specified by:
counterDecrease in interface org.javasimon.Callback
Overrides:
counterDecrease in class org.javasimon.CallbackSkeleton

counterSet

public void counterSet(org.javasimon.Counter counter,
                       long val)
Specified by:
counterSet in interface org.javasimon.Callback
Overrides:
counterSet in class org.javasimon.CallbackSkeleton

counterIncrease

public void counterIncrease(org.javasimon.Counter counter,
                            long inc)
Specified by:
counterIncrease in interface org.javasimon.Callback
Overrides:
counterIncrease in class org.javasimon.CallbackSkeleton

getCounterHistory

public CounterHistoryStack getCounterHistory(String counterName)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.