org.terracotta.statistics.derived
Class EventParameterSimpleMovingAverage

java.lang.Object
  extended by org.terracotta.statistics.derived.EventParameterSimpleMovingAverage
All Implemented Interfaces:
ChainedEventObserver, ChainedObserver

public class EventParameterSimpleMovingAverage
extends Object
implements ChainedEventObserver

Author:
cdennis

Constructor Summary
EventParameterSimpleMovingAverage(long time, TimeUnit unit)
           
 
Method Summary
 double average()
           
 ValueStatistic<Double> averageStatistic()
           
 void event(long time, long... parameters)
          Called to indicate an event happened.
 Long maximum()
           
 ValueStatistic<Long> maximumStatistic()
           
 Long minimum()
           
 ValueStatistic<Long> minimumStatistic()
           
 void setWindow(long time, TimeUnit unit)
           
 Double value()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventParameterSimpleMovingAverage

public EventParameterSimpleMovingAverage(long time,
                                         TimeUnit unit)
Method Detail

setWindow

public void setWindow(long time,
                      TimeUnit unit)

value

public Double value()

averageStatistic

public ValueStatistic<Double> averageStatistic()

minimumStatistic

public ValueStatistic<Long> minimumStatistic()

maximumStatistic

public ValueStatistic<Long> maximumStatistic()

average

public final double average()

maximum

public final Long maximum()

minimum

public final Long minimum()

event

public void event(long time,
                  long... parameters)
Description copied from interface: ChainedEventObserver
Called to indicate an event happened.

Specified by:
event in interface ChainedEventObserver


Copyright © 2015. All Rights Reserved.