Spring Integration

org.springframework.integration.monitor
Class ExponentialMovingAverageRateCumulativeHistory

java.lang.Object
  extended by org.springframework.integration.monitor.ExponentialMovingAverageRateCumulativeHistory

public class ExponentialMovingAverageRateCumulativeHistory
extends Object

Cumulative statistics for rate with higher weight given to recent data but without storing any history. Older values are given exponentially smaller weight, with a decay factor determined by a duration chosen by the client.

Author:
Dave Syer

Constructor Summary
ExponentialMovingAverageRateCumulativeHistory(double period, double lapsePeriod, int window)
           
 
Method Summary
 int getCount()
           
 double getMax()
           
 double getMean()
           
 double getMin()
           
 double getStandardDeviation()
           
 double getTimeSinceLastMeasurement()
           
 void increment()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExponentialMovingAverageRateCumulativeHistory

public ExponentialMovingAverageRateCumulativeHistory(double period,
                                                     double lapsePeriod,
                                                     int window)
Parameters:
period - the period to base the rate measurement (in seconds)
lapsePeriod - the exponential lapse rate for the rate average (in seconds)
window - the exponential lapse window (number of measurements)
Method Detail

increment

public void increment()

getCount

public int getCount()

getTimeSinceLastMeasurement

public double getTimeSinceLastMeasurement()
Returns:
the time in seconds since the last measurement

getMean

public double getMean()

getStandardDeviation

public double getStandardDeviation()

getMax

public double getMax()

getMin

public double getMin()

toString

public String toString()
Overrides:
toString in class Object

Spring Integration

Copyright © 2010. All Rights Reserved.