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>>
- Direct Known Subclasses:
GeneralOperationStatistic
public abstract class AbstractOperationStatistic<T extends Enum<T>>
extends AbstractSourceStatistic<ChainedOperationObserver<? super T>>
implements OperationStatistic<T>
-
Field Summary
FieldsFields inherited from class org.terracotta.statistics.AbstractSourceStatistic
derivedStatistics -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbegin()Called immediately prior to the operation beginning.voidCalled immediately after the operation completes with no interesting parameters, and with the same thread the called {OperationObserver.begin()} before.longsum()type()Methods inherited from class org.terracotta.statistics.AbstractSourceStatistic
addDerivedStatistic, getDerivedStatistics, removeDerivedStatisticMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.terracotta.statistics.OperationStatistic
count, statistic, statistic, sumMethods inherited from interface org.terracotta.statistics.SourceStatistic
addDerivedStatistic, getDerivedStatistics, removeDerivedStatistic
-
Field Details
-
name
-
tags
-
properties
-
type
-
operationStartTime
-
-
Constructor Details
-
Method Details
-
type
- Specified by:
typein interfaceOperationStatistic<T extends Enum<T>>
-
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
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
-