Top Fields Constructors Methods
org.terracotta.statistics

pack-priv Class PassThroughStatistic<T extends java.io.Serializable>

extends Object
implements ValueStatistic<T extends Serializable>
Class Inheritance
All Implemented Interfaces
org.terracotta.statistics.ValueStatistic
Annotations
@ContextAttribute:this
Imports
org.terracotta.context.WeakIdentityHashMap, org.terracotta.context.annotations.ContextAttribute, java.io.Serializable, java.util.Collection, .Collections, .HashMap, .HashSet, .Map, .Set, java.util.concurrent.CopyOnWriteArrayList

Field Summary

Modifier and TypeField and Description
private static final WeakIdentityHashMap<Object, Collection<PassThroughStatistic<? extends Serializable>>>
public final String
public final Map<String, Object>
private final ValueStatistic<T>
public final Set<String>
public final StatisticType

Constructor Summary

AccessConstructor and Description
public
PassThroughStatistic(Object context, String name, Set<String> tags, Map<String, ? extends Object> properties, ValueStatistic<T> source)

Method Summary

Modifier and TypeMethod and Description
private static void
pack-priv static boolean
public static void
public StatisticType
public T
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BINDINGback to summary
private static final WeakIdentityHashMap<Object, Collection<PassThroughStatistic<? extends Serializable>>> BINDING
nameback to summary
public final String name
Annotations
@ContextAttribute:name
propertiesback to summary
public final Map<String, Object> properties
Annotations
@ContextAttribute:properties
sourceback to summary
private final ValueStatistic<T> source
tagsback to summary
public final Set<String> tags
Annotations
@ContextAttribute:tags
typeback to summary
public final StatisticType type
Annotations
@ContextAttribute:type

Constructor Detail

PassThroughStatisticback to summary
public PassThroughStatistic(Object context, String name, Set<String> tags, Map<String, ? extends Object> properties, ValueStatistic<T> source)

Method Detail

bindStatisticback to summary
private static void bindStatistic(PassThroughStatistic<? extends Serializable> stat, Object to)
hasStatisticsForback to summary
pack-priv static boolean hasStatisticsFor(Object to)
removeStatisticsback to summary
public static void removeStatistics(Object to)
typeback to summary
public StatisticType type()

Implements org.terracotta.statistics.ValueStatistic.type.

Returns:StatisticType

Doc from org.terracotta.statistics.ValueStatistic.type.

The statistic type

Annotations
@Override
valueback to summary
public T value()

Implements org.terracotta.statistics.ValueStatistic.value.

Returns:T

Doc from org.terracotta.statistics.ValueStatistic.value.

The current statistic value

Annotations
@Override