public interface IHALogReader
Modifier and Type | Field and Description |
---|---|
static String |
HA_LOG_EXT
The filename extension used for the HALog files.
|
static FileFilter |
HALOG_FILTER
A
FileFilter that visits all files ending with the
HA_LOG_EXT and the names of all direct child directories. |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the Reader.
|
void |
computeDigest(MessageDigest digest) |
IRootBlockView |
getClosingRootBlock()
The
IRootBlockView for the committed state AFTER the write set
contained in the HA log file has been applied. |
IRootBlockView |
getOpeningRootBlock()
The
IRootBlockView for the committed state BEFORE the write set
contained in the HA log file has been applied. |
boolean |
hasMoreBuffers()
Checks whether we have reached the end of the file.
|
boolean |
isEmpty()
Return
true if the root blocks in the log file have the same
commit counter. |
IHAWriteMessage |
processNextBuffer(ByteBuffer clientBuffer)
Attempts to read the next
IHAWriteMessage and then the expected
buffer, that is read into the client buffer. |
static final String HA_LOG_EXT
static final FileFilter HALOG_FILTER
FileFilter
that visits all files ending with the
HA_LOG_EXT
and the names of all direct child directories. This
FileFilter
may be used to establish recursive scans of the HALog
directory.void close() throws IOException
IOException
boolean isEmpty()
true
if the root blocks in the log file have the same
commit counter. Such log files are logically empty regardless of their
length.IRootBlockView getOpeningRootBlock()
IRootBlockView
for the committed state BEFORE the write set
contained in the HA log file has been applied.IRootBlockView getClosingRootBlock() throws IOException
IRootBlockView
for the committed state AFTER the write set
contained in the HA log file has been applied.IOException
boolean hasMoreBuffers() throws IOException
IOException
IHAWriteMessage processNextBuffer(ByteBuffer clientBuffer) throws IOException
IHAWriteMessage
and then the expected
buffer, that is read into the client buffer. The IHAWriteMessage
is returned to the caller.
Note: The caller's buffer will be filled in IFF the data is on the HALog.
For some IHABufferStrategy
implementations, that data is not
present in the HALog. The caller's buffer will not be modified and the
caller is responsible for getting the data from the
IHABufferStrategy
(e.g., for the WORMStrategy
).
Note: IF the buffer is filled, then the limit will be the #of bytes ready to be transmitted and the position will be zero.
clientBuffer
- A buffer from the DirectBufferPool.INSTANCE
.IOException
void computeDigest(MessageDigest digest) throws DigestException, IOException
DigestException
IOException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.