T
- public static class WORMStrategy.StoreCounters<T extends WORMStrategy.StoreCounters<T>> extends StripedCounters<T>
IRawStore
access, including
operations that read or write through to the underlying media.Modifier and Type | Field and Description |
---|---|
long |
bytesRead
#of bytes read.
|
long |
bytesReadFromDisk
#of bytes that have been read from the disk.
|
long |
bytesWritten
#of bytes written.
|
long |
bytesWrittenOnDisk
#of bytes that have been written on the disk.
|
long |
checksumErrorCount
The #of checksum errors while reading on the local disk.
|
long |
elapsedDiskReadNanos
Total elapsed time for reading on the disk.
|
long |
elapsedDiskWriteNanos
Total elapsed time for writing 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 |
ndiskWrite
#of write requests that write 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 |
---|
WORMStrategy.StoreCounters() |
WORMStrategy.StoreCounters(int batchSize) |
WORMStrategy.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 ndiskWrite
public volatile long maxReadSize
public volatile long maxWriteSize
public volatile long bytesWritten
public volatile long bytesWrittenOnDisk
public volatile long elapsedWriteNanos
public volatile long elapsedDiskWriteNanos
public volatile long nforce
public volatile long ntruncate
public volatile long nreopen
public volatile long nwriteRootBlock
public WORMStrategy.StoreCounters()
public WORMStrategy.StoreCounters(int batchSize)
public WORMStrategy.StoreCounters(int nstripes, int batchSize)
public void add(T o)
StripedCounters
add
in class StripedCounters<T extends WORMStrategy.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 WORMStrategy.StoreCounters<T>>
o
- The other counters.public void clear()
StripedCounters
clear
in class StripedCounters<T extends WORMStrategy.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 WORMStrategy.StoreCounters<T>>
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.