Modifier and Type | Field and Description |
---|---|
static int |
MAXIMUM_POOL_COUNT
Maximum number of buffers this pool may have
|
static int |
MINIMUM_POOL_COUNT
Minimum number of buffers this pool may have
|
Modifier and Type | Method and Description |
---|---|
Buffer |
getBufferCopy(int index) |
Buffer |
getBufferCopy(Volume vol,
long page)
Returns a copy of Buffer.
|
int |
getBufferCount() |
int |
getBufferSize() |
long |
getEarliestDirtyTimestamp() |
long |
getForcedCheckpointWriteCounter()
This counter is incremented each time a application modifies a buffer
that is (a) dirty, and (b) required to be written as part of a
checkpoint.
|
long |
getForcedWriteCounter()
This counter is incremented ach time the eviction algorithm selects a
dirty buffer to evict.
|
long |
getHitCounter() |
double |
getHitRatio()
Get the "hit ratio" - the number of hits divided by the number of overall
gets.
|
long |
getMissCounter() |
long |
getNewCounter() |
void |
resetCounters()
Resets the get and hit counters to zero.
|
String |
toString() |
public static final int MINIMUM_POOL_COUNT
public static final int MAXIMUM_POOL_COUNT
public int getBufferSize()
Buffer
managed by this pool.public int getBufferCount()
Buffer
s managed by this pool.public long getMissCounter()
public long getHitCounter()
BufferPool
. This number, in comparison with the get
counter, indicates how effective the cache is in reducing disk
I/O.public long getNewCounter()
public long getForcedWriteCounter()
public long getForcedCheckpointWriteCounter()
public void resetCounters()
public double getHitRatio()
BufferPool
are successful - i.e., that the cache is
effectively reducing the need for disk read operations.public Buffer getBufferCopy(Volume vol, long page) throws InvalidPageAddressException, InvalidPageStructureException, VolumeClosedException, InUseException, PersistitIOException, PersistitInterruptedException
vol
- page
- InvalidPageAddressException
InvalidPageStructureException
VolumeClosedException
PersistitInterruptedException
RetryException
IOException
InUseException
PersistitIOException
public Buffer getBufferCopy(int index) throws IllegalArgumentException
IllegalArgumentException
public long getEarliestDirtyTimestamp()
BufferPool
.Copyright © 2025 Open Identity Platform Community. All rights reserved.