| Package | Description |
|---|---|
| com.sleepycat.je.rep |
Berkeley DB Java Edition High Availability (JE HA) enables replication of JE
environments.
|
| com.sleepycat.je.rep.impl |
INTERNAL: Top level HA implementation classes.
|
| com.sleepycat.je.rep.impl.node |
INTERNAL: Feeder and Replica node implementations.
|
| com.sleepycat.je.rep.stream |
INTERNAL: Feeding and syncup (init) of rep stream from master node to
other node types (replicas, etc).
|
| com.sleepycat.je.rep.txn |
INTERNAL: HA Txn/Locker subclasses for enforcing consistency and durability
constraints.
|
| Constructor and Description |
|---|
InsufficientAcksException(MasterTxn txn,
int acksPending,
int ackTimeoutMs,
String feederState) |
| Modifier and Type | Method and Description |
|---|---|
Set<MasterTxn> |
RepImpl.getExistingMasterTxns()
Peruse the environment wide transaction table, and return a set of
all existing MasterTxns.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RepImpl.postLogAbortHook(MasterTxn txn)
Releases the block latch lock, if held.
|
void |
RepImpl.postLogCommitAbortHook(MasterTxn txn)
Removes any pending acknowledgments that were registered by the
preLogCommitHook.
|
void |
RepImpl.postLogCommitHook(MasterTxn txn,
LogItem commitItem)
It ensures that the feeder obtains the requisite number of
acknowledgments required for a successful commit.
|
void |
RepImpl.preLogAbortHook(MasterTxn txn)
Invoked before aborting a MasterTxn, this happens when the master is
going to be a replica because of mastership transfer.
|
void |
RepImpl.preLogCommitHook(MasterTxn txn)
This hook is used primarily to perform the final checks before allowing
the commit operation to proceed.
|
void |
RepImpl.txnBeginHook(MasterTxn txn)
Ensure that a sufficient number of feeders are available before
proceeding with a master transaction begin.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DurabilityQuorum.ensureReplicasForCommit(MasterTxn txn,
int insufficientReplicasTimeout)
See if there are a sufficient number of replicas alive to support
the commit for this transaction.
|
| Modifier and Type | Method and Description |
|---|---|
MasterTxn |
FeederTxns.getAckTxn(long txnId)
Returns the transaction if it's waiting for acknowledgments.
|
MasterTxn |
FeederTxns.TxnInfo.getTxn() |
| Modifier and Type | Method and Description |
|---|---|
void |
FeederTxns.awaitReplicaAcks(MasterTxn txn,
int timeoutMs)
Waits for the required number of replica acks to come through.
|
void |
FeederTxns.setupForAcks(MasterTxn txn)
Create a new TxnInfo so that transaction commit can wait on the latch it
sets up.
|
| Modifier and Type | Method and Description |
|---|---|
static MasterTxn |
MasterTxn.create(EnvironmentImpl envImpl,
TransactionConfig config,
NameIdPair nameIdPair) |
MasterTxn |
MasterTxn.MasterTxnFactory.create(EnvironmentImpl envImpl,
TransactionConfig config,
NameIdPair nameIdPair) |
static MasterTxn |
MasterTxn.createNullTxn(EnvironmentImpl envImpl,
TransactionConfig config,
NameIdPair nameIdPair) |
MasterTxn |
MasterTxn.MasterTxnFactory.createNullTxn(EnvironmentImpl envImpl,
TransactionConfig config,
NameIdPair nameIdPair)
Create a special "null" txn that does not result in any changes to
the environment.
|
Copyright © 2024. All rights reserved.