public interface IHALogWriter
Modifier and Type | Method and Description |
---|---|
void |
closeHALog(IRootBlockView rootBlock)
Write the final root block on the HA log and close the file.
|
void |
disableHALog()
Disable (and remove) the current log file if one is open (an HALog file
which has been committed by applying its closing root block is NOT
removed).
|
long |
getCommitCounter()
Return the commit counter that is expected for the writes that will be
logged (the same commit counter that is on the opening root block).
|
long |
getSequence()
Return the sequence number that is expected for the next write.
|
boolean |
isHALogOpen()
Return
true iff there is an HALog file that is
currently open for writing. |
void |
writeOnHALog(IHAWriteMessage msg,
ByteBuffer data)
Write the message and the data on the live HALog.
|
boolean isHALogOpen()
true
iff there is an HALog file that is
currently open for writing.long getCommitCounter()
Note: Once the HALog is sealed, the closing root block will have a
commitCounter that is equal to getCommitCounter() + 1
.
Note: The HALog filename contains the closing commit counter - that is, the HALog file is named for the commit counter associated with the closing root block for a given write set.
long getSequence()
void writeOnHALog(IHAWriteMessage msg, ByteBuffer data) throws IOException
msg
- The message.data
- The data.IllegalStateException
- if the message is not appropriate for the state of the log.IOException
- if we can not write on the log.void closeHALog(IRootBlockView rootBlock) throws IOException
rootBlock
- The final root block for the write set.IOException
void disableHALog() throws IOException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.