public static enum FDBStoreTimer.EventAggregates extends Enum<FDBStoreTimer.EventAggregates> implements StoreTimer.Aggregate, StoreTimer.Event
Enum Constant and Description |
---|
COMMITS |
LOG_KEY_SUFFIX_CACHE
Modifier and Type | Method and Description |
---|---|
StoreTimer.Counter |
compute(StoreTimer storeTimer)
Compute the value for this aggregate.
|
String |
logKey()
Get the key of this event for logging.
|
String |
title()
Get the title of this event for user displays.
|
static FDBStoreTimer.EventAggregates |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FDBStoreTimer.EventAggregates[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
compute, validate, validate
logKeyWithSuffix, name
public static final FDBStoreTimer.EventAggregates COMMITS
public static FDBStoreTimer.EventAggregates[] values()
for (FDBStoreTimer.EventAggregates c : FDBStoreTimer.EventAggregates.values()) System.out.println(c);
public static FDBStoreTimer.EventAggregates valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Nonnull public String title()
StoreTimer.Event
title
in interface StoreTimer.Event
@Nonnull public String logKey()
StoreTimer.Event
KeyValueLogMessage
s and other key-value based logging
systems to log the values from instrumented events. These keys are
not expected to change frequently. They may, however, change
outside of any minor version change. Their values, therefore,
should not be relied upon, other than for the logging purposes.logKey
in interface StoreTimer.Event
@Nullable public StoreTimer.Counter compute(@Nonnull StoreTimer storeTimer)
StoreTimer.Aggregate
compute
in interface StoreTimer.Aggregate
storeTimer
- the time from which to draw the values that are necessary to compute this aggregate