Package org.terracotta.statistics
Class StatisticsManager
- java.lang.Object
-
- org.terracotta.context.ContextManager
-
- org.terracotta.statistics.StatisticsManager
-
public class StatisticsManager extends ContextManager
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.terracotta.context.ContextManager
ContextManager.Association, ContextManager.Dissociation
-
-
Constructor Summary
Constructors Constructor Description StatisticsManager()
-
Method Summary
-
Methods inherited from class org.terracotta.context.ContextManager
associate, deregisterContextCreationListener, deregisterContextListener, dissociate, nodeFor, query, queryForSingleton, registerContextCreationListener, registerContextListener, root, uproot
-
-
-
-
Method Detail
-
createOperationStatistic
public static <T extends Enum<T>> OperationObserver<T> createOperationStatistic(Object context, String name, Set<String> tags, Class<T> eventTypes)
-
createOperationStatistic
public static <T extends Enum<T>> OperationObserver<T> createOperationStatistic(Object context, String name, Set<String> tags, Map<String,? extends Object> properties, Class<T> resultType)
-
getOperationStatisticFor
public static <T extends Enum<T>> OperationStatistic<T> getOperationStatisticFor(OperationObserver<T> observer)
-
createPassThroughStatistic
public static <T extends Serializable> void createPassThroughStatistic(Object context, String name, Set<String> tags, StatisticType type, Supplier<T> source)
-
createPassThroughStatistic
public static <T extends Serializable> void createPassThroughStatistic(Object context, String name, Set<String> tags, ValueStatistic<T> source)
-
createPassThroughStatistic
public static <T extends Serializable> void createPassThroughStatistic(Object context, String name, Set<String> tags, Map<String,? extends Object> properties, StatisticType type, Supplier<T> source)
-
createPassThroughStatistic
public static <T extends Serializable> void createPassThroughStatistic(Object context, String name, Set<String> tags, Map<String,? extends Object> properties, ValueStatistic<T> source)
-
removePassThroughStatistics
public static void removePassThroughStatistics(Object context)
-
-