public interface ReplicatorInstance
Modifier and Type | Method and Description |
---|---|
VLSN |
bumpVLSN()
Increment and get the next VLSN.
|
Txn |
createRepTxn(EnvironmentImpl envImpl,
TransactionConfig config)
Create an appropriate type of Replicated transaction.
|
Txn |
createRepTxn(EnvironmentImpl envImpl,
TransactionConfig config,
boolean noAPIReadLock,
long mandatedId)
A form used primarily for auto commit transactions.
|
Txn |
createRepTxn(EnvironmentImpl envImpl,
TransactionConfig config,
ReplicationContext repContext)
A variation of the above used for testing; it arranges for a
ReplicationContext to be passed in for testing purposes.
|
void |
decrementVLSN()
Decrement the vlsn if there was a problem logging the entry
|
boolean |
isMaster() |
void |
preCheckpointEndFlush()
Do any work that must be included as part of the checkpoint process.
|
void |
registerVLSN(long lsn,
LogEntryHeader header)
Record the vlsn->lsn mapping for this just-logged log entry.
|
void registerVLSN(long lsn, LogEntryHeader header)
lsn
- lsn of the target log entryheader
- of the target log entry, which contains the VLSN and
log entry type.VLSN bumpVLSN()
void decrementVLSN()
boolean isMaster()
void preCheckpointEndFlush() throws DatabaseException
DatabaseException
- if any activity failsTxn createRepTxn(EnvironmentImpl envImpl, TransactionConfig config) throws DatabaseException
envImpl
- the environment associated with the transactionconfig
- the transaction configurationDatabaseException
Txn createRepTxn(EnvironmentImpl envImpl, TransactionConfig config, boolean noAPIReadLock, long mandatedId) throws DatabaseException
Txn createRepTxn(EnvironmentImpl envImpl, TransactionConfig config, ReplicationContext repContext) throws DatabaseException
DatabaseException