public static enum FDBStoreTimer.CountAggregates extends Enum<FDBStoreTimer.CountAggregates> implements StoreTimer.Aggregate, StoreTimer.Count
READS
tracks the number of key-value pairs read and BYTES_READ
tracks the number
of bytes read by such an operation. If there is an instrumented event (e.g., a query) that reads 10 key-value
pairs, each with 100 byte keys and 1,000 byte values, then the READS
metric will return 10 and the
BYTES_READ
metric will return 11,000.Enum Constant and Description |
---|
BYTES_DELETED
The number of bytes deleted.
|
BYTES_READ
The number of bytes read.
|
BYTES_WRITTEN
The number of bytes written.
|
DELETES
The number of deletes.
|
READS
The number of reads.
|
WRITES
The number of writes.
|
LOG_KEY_SUFFIX_CACHE
Modifier and Type | Method and Description |
---|---|
StoreTimer.Counter |
compute(StoreTimer storeTimer)
Compute the value for this aggregate.
|
boolean |
isSize()
Get whether the count value is actually a size in bytes.
|
String |
logKey()
Get the key of this event for logging.
|
String |
title()
Get the title of this event for user displays.
|
static FDBStoreTimer.CountAggregates |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FDBStoreTimer.CountAggregates[] |
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.CountAggregates READS
FDBStoreTimer
.public static final FDBStoreTimer.CountAggregates BYTES_READ
FDBStoreTimer
.public static final FDBStoreTimer.CountAggregates WRITES
FDBStoreTimer
.public static final FDBStoreTimer.CountAggregates BYTES_WRITTEN
FDBStoreTimer
.public static final FDBStoreTimer.CountAggregates DELETES
FDBStoreTimer
.public static final FDBStoreTimer.CountAggregates BYTES_DELETED
FDBStoreTimer
.public static FDBStoreTimer.CountAggregates[] values()
for (FDBStoreTimer.CountAggregates c : FDBStoreTimer.CountAggregates.values()) System.out.println(c);
public static FDBStoreTimer.CountAggregates 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 aggregatepublic boolean isSize()
StoreTimer.Count
isSize
in interface StoreTimer.Count
true
if the count value is actually a size in bytes