T
- public static class RWStore.StoreCounters<T extends RWStore.StoreCounters<T>> extends StripedCounters<T>
IRawStore
access, including
operations that read or write through to the underlying media.
Note: The performance counters for writes to the disk are reported by the
WriteCacheService
. The RWStore
never writes directly onto
the disk (other than the root blocks).
Modifier and Type | Field and Description |
---|---|
long |
bufferDataBytes
buffer counters
|
long |
bufferDataWrites |
long |
bufferFileWrites |
long |
bytesRead
#of bytes read.
|
long |
bytesReadFromDisk
#of bytes that have been read from the disk.
|
long |
bytesWritten
#of bytes written.
|
long |
checksumErrorCount
The #of checksum errors while reading on the local disk.
|
long |
elapsedDiskReadNanos
Total elapsed time for reading on the disk.
|
long |
elapsedReadNanos
Total elapsed time for reads.
|
long |
elapsedWriteNanos
Total elapsed time for writes.
|
long |
maxReadSize
The size of the largest record read.
|
long |
maxWriteSize
The size of the largest record written.
|
long |
ndiskRead
#of read requests that read through to the backing file.
|
long |
nforce
#of times the data were forced to the disk.
|
long |
nreads
#of read requests.
|
long |
nreopen
#of times the file has been reopened after it was closed by an
interrupt.
|
long |
ntruncate
#of times the length of the file was changed (typically, extended).
|
long |
nwriteRootBlock
#of times one of the root blocks has been written.
|
long |
nwrites
#of write requests.
|
batchSize, locks, n, parent
Constructor and Description |
---|
RWStore.StoreCounters() |
RWStore.StoreCounters(int batchSize) |
RWStore.StoreCounters(int nstripes,
int batchSize) |
Modifier and Type | Method and Description |
---|---|
void |
add(T o)
Adds counters to the current counters.
|
void |
clear()
Clear the counter values back to zero.
|
CounterSet |
getCounters()
Return a new, empty
CounterSet . |
T |
subtract(T o)
Returns a new
StripedCounters containing the current counter
values minus the given counter values. |
acquire, release, toString
public volatile long nreads
public volatile long ndiskRead
public volatile long bytesRead
public volatile long bytesReadFromDisk
public volatile long elapsedReadNanos
public volatile long elapsedDiskReadNanos
public volatile long checksumErrorCount
public volatile long nwrites
public volatile long maxReadSize
public volatile long maxWriteSize
public volatile long bytesWritten
public volatile long elapsedWriteNanos
public volatile long nforce
public volatile long ntruncate
public volatile long nreopen
public volatile long nwriteRootBlock
public volatile long bufferDataBytes
public volatile long bufferDataWrites
public volatile long bufferFileWrites
public RWStore.StoreCounters()
public RWStore.StoreCounters(int batchSize)
public RWStore.StoreCounters(int nstripes, int batchSize)
public void add(T o)
StripedCounters
add
in class StripedCounters<T extends RWStore.StoreCounters<T>>
o
- The other counters.public T subtract(T o)
StripedCounters
StripedCounters
containing the current counter
values minus the given counter values.subtract
in class StripedCounters<T extends RWStore.StoreCounters<T>>
o
- The other counters.public void clear()
StripedCounters
clear
in class StripedCounters<T extends RWStore.StoreCounters<T>>
public CounterSet getCounters()
StripedCounters
CounterSet
. This method must be extended
to attach the various performance counters to that CounterSet
.getCounters
in class StripedCounters<T extends RWStore.StoreCounters<T>>
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.