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, removeDerivedStatistic
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
count, sum
end, end
addDerivedStatistic, removeDerivedStatistic
public 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()
OperationObserver
begin
in interface OperationObserver<T extends Enum<T>>
Copyright © 2016. All rights reserved.