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(com.sleepycat.je.txn.Locker locker,
Durability.ReplicaAckPolicy ackPolicy,
int requiredAckCount,
java.util.Set<java.lang.String> availableReplicas)
Creates a Commit exception.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.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.
|
getMessage
public InsufficientReplicasException(com.sleepycat.je.txn.Locker locker, Durability.ReplicaAckPolicy ackPolicy, int requiredAckCount, java.util.Set<java.lang.String> availableReplicas)
ackPolicy
- the ack policy that could not be implementedrequiredAckCount
- the replica acks required to satisfy the policyavailableReplicas
- the set of available Replicaspublic Durability.ReplicaAckPolicy getCommitPolicy()
public int getRequiredNodeCount()
public java.util.Set<java.lang.String> getAvailableReplicas()
Copyright (c) 2002, 2017 Oracle and/or its affiliates. All rights reserved.