|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.utilint.Matchpoint
public class Matchpoint
This class writes out a log entry that can be used for replication syncup. It can be issued arbitrarily by the master at any point, in order to bound the syncup interval in much the way that a checkpoint bounds the recovery interval. The entry will a replicated one, which means that it will be tagged with a VLSN. Although this is a replication class, it resides in the utilint package because it is referenced in LogEntryType.java. TODO: This is currently not used. When it is used, it will be the first replicated log entry that does not have a real txn id. All replicated entries are expected to have negative ids, and the matchpoint should be exempt from Replay.updateSequences, or it should pass in a special reserved negative id, so as not to incur the assertion in Replay.updateSequences, that the txn id is <0.
Constructor Summary | |
---|---|
Matchpoint()
For constructing from the log. |
|
Matchpoint(int repMasterNodeId)
|
Method Summary | |
---|---|
void |
dumpLog(StringBuilder sb,
boolean verbose)
Write the object into the string buffer for log dumping. |
int |
getLogSize()
|
int |
getMasterNodeId()
|
long |
getTransactionId()
|
boolean |
logicalEquals(Loggable other)
|
void |
readFromLog(ByteBuffer logBuffer,
int entryVersion)
Initialize this object from the data in itemBuf. |
void |
writeToLog(ByteBuffer logBuffer)
Serialize this object into the buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Matchpoint(int repMasterNodeId)
public Matchpoint()
Method Detail |
---|
public int getMasterNodeId()
public int getLogSize()
getLogSize
in interface Loggable
Loggable.getLogSize()
public void writeToLog(ByteBuffer logBuffer)
Loggable
writeToLog
in interface Loggable
logBuffer
- is the destination bufferLoggable.writeToLog(java.nio.ByteBuffer)
public void readFromLog(ByteBuffer logBuffer, int entryVersion)
Loggable
readFromLog
in interface Loggable
Loggable.readFromLog(java.nio.ByteBuffer, int)
public void dumpLog(StringBuilder sb, boolean verbose)
Loggable
dumpLog
in interface Loggable
sb
- destination string bufferverbose
- if true, dump the full, verbose versionLoggable.dumpLog(java.lang.StringBuilder, boolean)
public long getTransactionId()
getTransactionId
in interface Loggable
Loggable.getTransactionId()
public boolean logicalEquals(Loggable other)
logicalEquals
in interface Loggable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |