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(Class<? extends OperationType> operationTypeClazz, Object contextObject, ScheduledExecutorService executor, long averageWindowDuration, TimeUnit averageWindowUnit, int historySize, long historyInterval, TimeUnit historyIntervalUnit, long timeToDisable, TimeUnit timeToDisableUnit)
           
 
Method Summary
 void clearRegistrations()
           
 Collection<ExposedStatistic> getRegistrations()
           
 void registerCompoundOperation(String name, Set<String> tags, Map<String,Object> properties, OperationType operationType, Set<?> operations)
           
 void registerCountOperation(String name, Set<String> tags, Map<String,Object> properties, OperationType operationType)
           
 void registerRatio(String name, Set<String> tags, Map<String,Object> properties, OperationType operationType, Set<?> numerator, Set<?> denominator)
           
 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(Class<? extends OperationType> operationTypeClazz,
                          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)

registerCompoundOperation

public void registerCompoundOperation(String name,
                                      Set<String> tags,
                                      Map<String,Object> properties,
                                      OperationType operationType,
                                      Set<?> operations)

registerCountOperation

public void registerCountOperation(String name,
                                   Set<String> tags,
                                   Map<String,Object> properties,
                                   OperationType operationType)

registerRatio

public void registerRatio(String name,
                          Set<String> tags,
                          Map<String,Object> properties,
                          OperationType operationType,
                          Set<?> numerator,
                          Set<?> denominator)

getRegistrations

public Collection<ExposedStatistic> getRegistrations()

clearRegistrations

public void clearRegistrations()


Copyright © 2015. All Rights Reserved.