public static class Management.BufferInfo extends Management.AcquisitionTimeBase implements Serializable
Exposes information about one Buffer
. Use the
Management.getBufferInfoArray(int, int, java.lang.String, java.lang.String)
method to get an array of
BufferInfo
s for Buffers
in various states.
Note that the content of a BufferPool
and the status of
individual Buffer
s changes extremely rapidly when Persistit
is active. A BufferInfo
represents a snapshot of this state
at the acquisition time.
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
BufferInfo() |
BufferInfo(int poolIndex,
int type,
String typeName,
int status,
String statusName,
String writerThreadName,
long pageAddress,
long rightSiblingAddress,
String volumeName,
long volumeId,
long timestamp,
int bufferSize,
int availableBytes,
int alloc,
int slack,
int mvvCount,
int mvvSize,
int keyBlockStart,
int keyBlockEnd) |
Modifier and Type | Method and Description |
---|---|
String |
displayableSummary()
Return a human-readable summary of information about the page
contained in this
Buffer . |
int |
getAlloc() |
int |
getAvailableBytes() |
int |
getBufferSize() |
int |
getKeyBlockEnd()
Return an offset within the
Buffer used internally in
allocating space for key/value pairs. |
int |
getKeyBlockStart()
Return an offset within the
Buffer used internally in
allocating space for key/value pairs. |
int |
getMvvCount() |
int |
getMvvSize() |
long |
getPageAddress() |
int |
getPoolIndex()
Return the index of this
Buffer within the
BufferPool array. |
long |
getRightSiblingAddress() |
int |
getSlack() |
int |
getStatus()
Return the status integer for this
Buffer . |
String |
getStatusName()
Return the status of this
Buffer in displayable form. |
long |
getTimestamp() |
int |
getType()
Return the type of page occupying this
Buffer as an
integer. |
String |
getTypeName()
Return the type of page occupying this
Buffer in
displayable name form. |
long |
getVolumeId() |
String |
getVolumeName() |
String |
getWriterThreadName()
Return the name of the
Thread that currently holds a
writer (exclusive) claim on the Buffer if there is one,
otherwise returns null . |
boolean |
isDataPage()
Indicates whether the page occupying this buffer is a Data page.
|
boolean |
isGarbagePage()
Indicates whether the page occupying this buffer is a Garbage page.
|
boolean |
isIndexPage()
Indicates whether the page occupying this buffer is an Index page.
|
boolean |
isLongRecordPage()
Indicates whether the page occupying this buffer is a LongRecord
page.
|
boolean |
isUnallocatedPage()
Indicates whether the page occupying this buffer is an Unallocated
page.
|
getAcquisitionTime, setAcquisitionTime
public static final long serialVersionUID
public BufferInfo()
@ConstructorProperties(value={"poolIndex","type","typeName","status","statusName","writerThreadName","pageAddress","rightSiblingAddress","volumeName","volumeId","timestamp","bufferSize","availableBytes","alloc","slack","mvvCount","mvvSize","keyBlockStart","keyBlockEnd"}) public BufferInfo(int poolIndex, int type, String typeName, int status, String statusName, String writerThreadName, long pageAddress, long rightSiblingAddress, String volumeName, long volumeId, long timestamp, int bufferSize, int availableBytes, int alloc, int slack, int mvvCount, int mvvSize, int keyBlockStart, int keyBlockEnd)
public boolean isGarbagePage()
true
if this is a Garbage page, otherwise
false
.public boolean isDataPage()
true
if this is a Data page, otherwise
false
.public boolean isIndexPage()
true
if this is an Index page, otherwise
false
.public boolean isLongRecordPage()
true
if this is a LongRecord page, otherwise
false
.public boolean isUnallocatedPage()
true
if this is an Unallocated page, otherwise
false
.public int getPoolIndex()
Buffer
within the
BufferPool
array.public int getType()
Buffer
as an
integer. See getTypeName()
for a displayable form.public String getTypeName()
Buffer
in
displayable name form. Values include
Unused
Data
IndexNN
Garbage
LongRecord
where NN indicates index level counting from the leaf data
page.public int getStatus()
Buffer
. See
getStatusName()
for a displayable form.public String getStatusName()
Buffer
in displayable form.
Character flags in the string value include:
v
- validr
- reader claimw
- writer claimd
- dirtynnn
- count of threads with reader claims
public String getWriterThreadName()
Thread
that currently holds a
writer (exclusive) claim on the Buffer
if there is one,
otherwise returns null
.null
if there is nonepublic long getPageAddress()
public long getRightSiblingAddress()
public String getVolumeName()
public long getVolumeId()
public long getTimestamp()
public int getBufferSize()
public int getAvailableBytes()
public int getAlloc()
Buffer
used internally in
allocating space for key/value pairs.public int getSlack()
public int getMvvCount()
public int getMvvSize()
public int getKeyBlockStart()
Buffer
used internally in
allocating space for key/value pairs.public int getKeyBlockEnd()
Buffer
used internally in
allocating space for key/value pairs.public String displayableSummary()
Buffer
.Copyright © 2025 Open Identity Platform Community. All rights reserved.