Top Methods
org.terracotta.statistics

public Interface OperationStatistic<T extends java.lang.Enum<T>>

extends OperationObserver<T extends Enum<T>>, SourceStatistic<ChainedOperationObserver<? super T extends Enum<T>>>
Known Direct Implementers
org.terracotta.statistics.StatisticMapper, org.terracotta.statistics.AbstractOperationStatistic, org.terracotta.statistics.GeneralOperationStatistic, org.terracotta.statistics.MappedOperationStatistic
Imports
java.util.Set, org.terracotta.statistics.observer.ChainedOperationObserver, .OperationObserver

Author
cdennis

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

the operation count
count
(T
the result type
type
)

Return the count of operations with the given type.

public ValueStatistic<Long>

Returns:

a ValueStatistic instance
statistic
(T
the result of interest
result
)

Return a ValueStatistic returning the count for the given result.

public ValueStatistic<Long>
statistic(Set<T> results)

public long
sum(Set<T> types)

public long
sum()

public Class<T>
type()

Inherited from org.terracotta.statistics.observer.OperationObserver:
beginendend
Inherited from org.terracotta.statistics.SourceStatistic:
addDerivedStatisticremoveDerivedStatistic

Method Detail

countback to summary
public long count(T type)

Return the count of operations with the given type.

Parameters
type:T

the result type

Returns:long

the operation count

statisticback to summary
public ValueStatistic<Long> statistic(T result)

Return a ValueStatistic returning the count for the given result.

Parameters
result:T

the result of interest

Returns:ValueStatistic<Long>

a ValueStatistic instance

statisticback to summary
public ValueStatistic<Long> statistic(Set<T> results)
sumback to summary
public long sum(Set<T> types)
sumback to summary
public long sum()
typeback to summary
public Class<T> type()