org.springframework.integration.monitor
Class ExponentialMovingAverageRatioCumulativeHistory
java.lang.Object
org.springframework.integration.monitor.ExponentialMovingAverageRatioCumulativeHistory
public class ExponentialMovingAverageRatioCumulativeHistory
- extends Object
Cumulative statistics for success rate (ratio) 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
ExponentialMovingAverageRatioCumulativeHistory
public ExponentialMovingAverageRatioCumulativeHistory(double lapsePeriod,
int window)
- Parameters:
lapsePeriod
- the exponential lapse rate for the rate average (in seconds)window
- the exponential lapse window (number of measurements)
success
public void success()
failure
public void failure()
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
Copyright © 2010. All Rights Reserved.