Package org.terracotta.statistics
Class StatisticsManager
java.lang.Object
org.terracotta.context.ContextManager
org.terracotta.statistics.StatisticsManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classNested classes/interfaces inherited from class org.terracotta.context.ContextManager
ContextManager.Association, ContextManager.Dissociation -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Enum<T>>
OperationObserver<T>static <T extends Enum<T>>
OperationObserver<T>createOperationStatistic(Object context, String name, Set<String> tags, Map<String, ? extends Object> properties, Class<T> resultType) private static <T extends Enum<T>>
OperationStatistic<T>createOperationStatistic(String name, Set<String> tags, Map<String, ? extends Object> properties, Class<T> resultType) static <T extends Serializable>
voidcreatePassThroughStatistic(Object context, String name, Set<String> tags, Map<String, ? extends Object> properties, StatisticType type, Supplier<T> source) static <T extends Serializable>
voidcreatePassThroughStatistic(Object context, String name, Set<String> tags, Map<String, ? extends Object> properties, ValueStatistic<T> source) static <T extends Serializable>
voidcreatePassThroughStatistic(Object context, String name, Set<String> tags, StatisticType type, Supplier<T> source) static <T extends Serializable>
voidcreatePassThroughStatistic(Object context, String name, Set<String> tags, ValueStatistic<T> source) static <T extends Enum<T>>
OperationStatistic<T>getOperationStatisticFor(OperationObserver<T> observer) private static voidparseStatisticAnnotations(Object object) properties(String... kvs) static voidremovePassThroughStatistics(Object context) Methods inherited from class org.terracotta.context.ContextManager
associate, deregisterContextCreationListener, deregisterContextListener, dissociate, nodeFor, query, queryForSingleton, registerContextCreationListener, registerContextListener, root, uproot
-
Field Details
-
EQ
-
-
Constructor Details
-
StatisticsManager
public StatisticsManager()
-
-
Method Details
-
createOperationStatistic
-
createOperationStatistic
-
createOperationStatistic
-
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
-
tags
-
parseStatisticAnnotations
-
properties
-