org.terracotta.statistics
Class AbstractOperationStatistic<T extends Enum<T>>
java.lang.Object
org.terracotta.statistics.AbstractSourceStatistic<ChainedOperationObserver<? super T>>
org.terracotta.statistics.AbstractOperationStatistic<T>
- All Implemented Interfaces:
- OperationObserver<T>, OperationStatistic<T>, SourceStatistic<ChainedOperationObserver<? super T>>
public abstract class AbstractOperationStatistic<T extends Enum<T>>
- extends AbstractSourceStatistic<ChainedOperationObserver<? super T>>
- implements OperationStatistic<T>
- Author:
- cdennis
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
public final String name
tags
public final Set<String> tags
properties
public final Map<String,Object> properties
type
public final Class<T extends Enum<T>> type
type
public Class<T> type()
- Specified by:
type in interface OperationStatistic<T extends Enum<T>>
statistic
public ValueStatistic<Long> statistic(T result)
- Return a returning the count for the given result.
- Specified by:
statistic in interface OperationStatistic<T extends Enum<T>>
- Parameters:
result - the result of interest
- Returns:
- a
ValueStatistic instance
statistic
public ValueStatistic<Long> statistic(Set<T> results)
- Specified by:
statistic in interface OperationStatistic<T extends Enum<T>>
sum
public long sum()
- Specified by:
sum in interface OperationStatistic<T extends Enum<T>>
begin
public void begin()
- Description copied from interface:
OperationObserver
- Called immediately prior to the operation beginning.
- Specified by:
begin in interface OperationObserver<T extends Enum<T>>
Copyright © 2016. All Rights Reserved.