|
Berkeley DB Java Edition version 5.0.34 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sleepycat.je.DatabaseException
com.sleepycat.je.OperationFailureException
com.sleepycat.je.rep.InsufficientReplicasException
public class InsufficientReplicasException
Thrown by 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 Summary | |
---|---|
InsufficientReplicasException(com.sleepycat.je.txn.Locker locker,
Durability.ReplicaAckPolicy ackPolicy,
int requiredAckCount,
Set<String> availableReplicas)
Creates a Commit exception. |
Method Summary | |
---|---|
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 that were required to be active in order to satisfy the Replica ack policy. |
Methods inherited from class com.sleepycat.je.DatabaseException |
---|
getMessage |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InsufficientReplicasException(com.sleepycat.je.txn.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 ReplicasMethod Detail |
---|
public Durability.ReplicaAckPolicy getCommitPolicy()
public int getRequiredNodeCount()
public Set<String> getAvailableReplicas()
|
Berkeley DB Java Edition version 5.0.34 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |