org.terracotta.statistics.archive
Class StatisticSampler<T extends Number>

java.lang.Object
  extended by org.terracotta.statistics.archive.StatisticSampler<T>

public class StatisticSampler<T extends Number>
extends Object

Author:
cdennis

Constructor Summary
StatisticSampler(long time, TimeUnit unit, ValueStatistic<T> statistic, SampleSink<? super Timestamped<T>> sink)
           
StatisticSampler(ScheduledExecutorService executor, long time, TimeUnit unit, ValueStatistic<T> statistic, SampleSink<? super Timestamped<T>> sink)
           
 
Method Summary
 void setPeriod(long time, TimeUnit unit)
           
 void shutdown()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticSampler

public StatisticSampler(long time,
                        TimeUnit unit,
                        ValueStatistic<T> statistic,
                        SampleSink<? super Timestamped<T>> sink)

StatisticSampler

public StatisticSampler(ScheduledExecutorService executor,
                        long time,
                        TimeUnit unit,
                        ValueStatistic<T> statistic,
                        SampleSink<? super Timestamped<T>> sink)
Method Detail

setPeriod

public void setPeriod(long time,
                      TimeUnit unit)

start

public void start()

stop

public void stop()

shutdown

public void shutdown()
              throws InterruptedException
Throws:
InterruptedException


Copyright © 2016. All Rights Reserved.