Class FDBStoreTimer
- java.lang.Object
-
- com.apple.foundationdb.record.provider.common.StoreTimer
-
- com.apple.foundationdb.record.provider.foundationdb.FDBStoreTimer
-
@API(STABLE) public class FDBStoreTimer extends StoreTimer
AStoreTimer
associated withFDBRecordStore
operations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FDBStoreTimer.CountAggregates
An aggregate over other count events.static class
FDBStoreTimer.Counts
StandardStoreTimer.Count
events.static class
FDBStoreTimer.DetailEvents
StandardStoreTimer.DetailEvent
s.static class
FDBStoreTimer.Events
Ordinary top-level events which surround a single body of code.static class
FDBStoreTimer.Waits
StandardStoreTimer.Wait
events.-
Nested classes/interfaces inherited from class com.apple.foundationdb.record.provider.common.StoreTimer
StoreTimer.Aggregate, StoreTimer.Count, StoreTimer.Counter, StoreTimer.DetailEvent, StoreTimer.Event, StoreTimer.Wait
-
-
Field Summary
Fields Modifier and Type Field Description protected static Set<StoreTimer.Aggregate>
ALL_AGGREGATES
-
Fields inherited from class com.apple.foundationdb.record.provider.common.StoreTimer
counters, lastReset, timeoutCounters, uuid
-
-
Constructor Summary
Constructors Constructor Description FDBStoreTimer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<StoreTimer.Aggregate>
getAggregates()
Return the set of aggregates that this store timer can produce.protected static Stream<StoreTimer.Event>
possibleEvents()
void
recordTimeout(StoreTimer.Wait event, long startTime)
Record that some operation timed out.-
Methods inherited from class com.apple.foundationdb.record.provider.common.StoreTimer
checkEventNameUniqueness, getCount, getCounter, getCounter, getDifference, getEvents, getKeysAndValues, getTimeNanos, getTimeoutCount, getTimeoutCounter, getTimeoutCounter, getTimeoutEvents, getTimeoutTimeNanos, geUUID, increment, increment, increment, increment, instrument, instrument, instrument, instrument, instrument, instrumentAsync, record, record, record, recordSinceNanoTime, reset
-
-
-
-
Field Detail
-
ALL_AGGREGATES
protected static final Set<StoreTimer.Aggregate> ALL_AGGREGATES
-
-
Method Detail
-
possibleEvents
protected static Stream<StoreTimer.Event> possibleEvents()
-
getAggregates
@Nonnull public Set<StoreTimer.Aggregate> getAggregates()
Description copied from class:StoreTimer
Return the set of aggregates that this store timer can produce. This method is expected to be overridden by implementation in order to expose whichever aggregates they produce. Note that the aggregates that are returned are the complete set that are defined for the store timer, however it is possible that a returned aggregate may not have any of the underlying counters necessary to compute its value (seeStoreTimer.Aggregate.compute(StoreTimer)
).- Overrides:
getAggregates
in classStoreTimer
- Returns:
- the set of aggregates that can be computed by this timer
-
recordTimeout
public void recordTimeout(StoreTimer.Wait event, long startTime)
Description copied from class:StoreTimer
Record that some operation timed out.- Overrides:
recordTimeout
in classStoreTimer
- Parameters:
event
- the event that was waited forstartTime
- theSystem.nanoTime()
when the event started
-
-