Package 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>
-
-
Field Summary
Fields Modifier and Type Field Description StringnameMap<String,Object>propertiesSet<String>tagsClass<T>type-
Fields inherited from class org.terracotta.statistics.AbstractSourceStatistic
derivedStatistics
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbegin()Called immediately prior to the operation beginning.voidend(T result)Called immediately after the operation completes with no interesting parameters, and with the same thread the called {OperationObserver.begin()} before.longsum()Class<T>type()-
Methods inherited from class org.terracotta.statistics.AbstractSourceStatistic
addDerivedStatistic, getDerivedStatistics, removeDerivedStatistic
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.terracotta.statistics.OperationStatistic
count, statistic, statistic, sum
-
Methods inherited from interface org.terracotta.statistics.SourceStatistic
addDerivedStatistic, getDerivedStatistics, removeDerivedStatistic
-
-
-
-
Method Detail
-
sum
public long sum()
- Specified by:
sumin interfaceOperationStatistic<T extends Enum<T>>
-
begin
public void begin()
Description copied from interface:OperationObserverCalled immediately prior to the operation beginning.- Specified by:
beginin interfaceOperationObserver<T extends Enum<T>>
-
end
public void end(T result)
Description copied from interface:OperationObserverCalled immediately after the operation completes with no interesting parameters, and with the same thread the called {OperationObserver.begin()} before.- Specified by:
endin interfaceOperationObserver<T extends Enum<T>>- Parameters:
result- the operation result
-
-