public abstract class AbstractOperationStatistic<T extends Enum<T>> extends AbstractSourceStatistic<ChainedOperationObserver<? super T>> implements OperationStatistic<T>
| Modifier and Type | Field and Description |
|---|---|
String |
name |
Map<String,Object> |
properties |
Set<String> |
tags |
Class<T> |
type |
derivedStatistics| Modifier and Type | Method and Description |
|---|---|
void |
begin()
Called immediately prior to the operation beginning.
|
ValueStatistic<Long> |
statistic(Set<T> results) |
ValueStatistic<Long> |
statistic(T result)
Return a returning the count for the given result.
|
long |
sum() |
Class<T> |
type() |
addDerivedStatistic, removeDerivedStatisticclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, sumend, endaddDerivedStatistic, removeDerivedStatisticpublic final String name
public ValueStatistic<Long> statistic(T result)
statistic in interface OperationStatistic<T extends Enum<T>>result - the result of interestValueStatistic instancepublic ValueStatistic<Long> statistic(Set<T> results)
statistic in interface OperationStatistic<T extends Enum<T>>public long sum()
sum in interface OperationStatistic<T extends Enum<T>>public void begin()
OperationObserverbegin in interface OperationObserver<T extends Enum<T>>Copyright © 2019. All rights reserved.