org.terracotta.context.extended
Class StatisticsRegistry

java.lang.Object
  extended by org.terracotta.context.extended.StatisticsRegistry

public class StatisticsRegistry
extends Object

Author:
Ludovic Orban

Constructor Summary
StatisticsRegistry(Object contextObject, ScheduledExecutorService executor, long averageWindowDuration, TimeUnit averageWindowUnit, int historySize, long historyInterval, TimeUnit historyIntervalUnit, long timeToDisable, TimeUnit timeToDisableUnit)
           
 
Method Summary
 void clearRegistrations()
           
 SampledStatistic<? extends Number> findSampledCompoundStatistic(String statisticName, StatisticType statisticType)
           
 SampledStatistic<? extends Number> findSampledStatistic(String statisticName)
           
 Map<String,RegisteredStatistic> getRegistrations()
           
<T extends Enum<T>>
void
registerCompoundOperations(String name, OperationStatisticDescriptor<T> descriptor, EnumSet<T> compound)
           
 void registerCounter(String name, ValueStatisticDescriptor descriptor)
           
<T extends Enum<T>>
void
registerRatios(String name, OperationStatisticDescriptor<T> descriptor, EnumSet<T> ratioNumerator, EnumSet<T> ratioDenominator)
           
 void registerSize(String name, ValueStatisticDescriptor descriptor)
           
 void setAlwaysOn(boolean enabled)
           
 void setTimeToDisable(long time, TimeUnit unit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticsRegistry

public StatisticsRegistry(Object contextObject,
                          ScheduledExecutorService executor,
                          long averageWindowDuration,
                          TimeUnit averageWindowUnit,
                          int historySize,
                          long historyInterval,
                          TimeUnit historyIntervalUnit,
                          long timeToDisable,
                          TimeUnit timeToDisableUnit)
Method Detail

setTimeToDisable

public void setTimeToDisable(long time,
                             TimeUnit unit)

setAlwaysOn

public void setAlwaysOn(boolean enabled)

registerSize

public void registerSize(String name,
                         ValueStatisticDescriptor descriptor)

registerCounter

public void registerCounter(String name,
                            ValueStatisticDescriptor descriptor)

registerCompoundOperations

public <T extends Enum<T>> void registerCompoundOperations(String name,
                                                           OperationStatisticDescriptor<T> descriptor,
                                                           EnumSet<T> compound)

registerRatios

public <T extends Enum<T>> void registerRatios(String name,
                                               OperationStatisticDescriptor<T> descriptor,
                                               EnumSet<T> ratioNumerator,
                                               EnumSet<T> ratioDenominator)

getRegistrations

public Map<String,RegisteredStatistic> getRegistrations()

clearRegistrations

public void clearRegistrations()

findSampledStatistic

public SampledStatistic<? extends Number> findSampledStatistic(String statisticName)

findSampledCompoundStatistic

public SampledStatistic<? extends Number> findSampledCompoundStatistic(String statisticName,
                                                                       StatisticType statisticType)


Copyright © 2017. All rights reserved.