public class InsufficientReplicasException extends OperationFailureException
Environment.beginTransaction(com.sleepycat.je.Transaction, com.sleepycat.je.TransactionConfig) and Transaction.commit() when these operations are initiated at a Master which is
not in contact with a quorum of Replicas as determined by the Durability.ReplicaAckPolicy that is in effect for the operation.| Constructor and Description |
|---|
InsufficientReplicasException(Locker locker,
Durability.ReplicaAckPolicy ackPolicy,
int requiredAckCount,
Set<String> availableReplicas)
Creates a Commit exception.
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAvailableReplicas()
Returns the set of Replicas that were in contact with the master at the
time of the commit operation.
|
Durability.ReplicaAckPolicy |
getCommitPolicy()
Returns the Replica ack policy that was in effect for the transaction.
|
int |
getRequiredNodeCount()
Returns the number of nodes (including the master) that were
required to be active in order to satisfy the Replica ack
policy.
|
OperationFailureException |
wrapSelf(String msg)
For internal use only.
|
isReplicaWriteaddErrorMessage, addRethrownStackTrace, getMessage, getVersionHeaderaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InsufficientReplicasException(Locker locker, Durability.ReplicaAckPolicy ackPolicy, int requiredAckCount, Set<String> availableReplicas)
ackPolicy - the ack policy that could not be implementedrequiredAckCount - the replica acks required to satisfy the policyavailableReplicas - the set of available Replicaspublic OperationFailureException wrapSelf(String msg)
wrapSelf in class OperationFailureExceptionpublic Durability.ReplicaAckPolicy getCommitPolicy()
public int getRequiredNodeCount()
Copyright © 2024. All rights reserved.