|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sleepycat.je.rep.impl.PointConsistencyPolicy
public class PointConsistencyPolicy
This is used to ensure that the Replica has finished replaying or proceeded past the vlsn specified by the policy. It's like the externally visible CommitPointConsistencyPolicy, except that the latter restricts consistency points to commit vlsns, whereas this policy lets you sync at uncommitted log entries. This class is not public intentionally; it should only be used by unittests and not be replication source code, because it lives in the test packages.
| Field Summary | |
|---|---|
static String |
NAME
The name:"PointConsistencyPolicy" associated with this policy. |
| Constructor Summary | |
|---|---|
PointConsistencyPolicy(VLSN targetVLSN)
|
|
PointConsistencyPolicy(VLSN targetVLSN,
long timeout,
TimeUnit timeoutUnit)
|
|
| Method Summary | |
|---|---|
void |
ensureConsistency(EnvironmentImpl replicatorImpl)
Ensures that the replica has replayed the replication stream to the point identified by the commit token. |
boolean |
equals(Object obj)
|
String |
getName()
Returns the name:"PointConsistencyPolicy", associated with this policy. |
long |
getTimeout(TimeUnit unit)
The timeout associated with the consistency policy. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String NAME
| Constructor Detail |
|---|
public PointConsistencyPolicy(VLSN targetVLSN)
public PointConsistencyPolicy(VLSN targetVLSN,
long timeout,
TimeUnit timeoutUnit)
| Method Detail |
|---|
public String getName()
getName in interface ReplicaConsistencyPolicyNAME
public void ensureConsistency(EnvironmentImpl replicatorImpl)
throws InterruptedException,
ReplicaConsistencyException,
DatabaseException
ensureConsistency in interface ReplicaConsistencyPolicyreplicatorImpl - identifies the replicated environment that must meet
this consistency requirement.
InterruptedException
ReplicaConsistencyException
DatabaseExceptionpublic long getTimeout(TimeUnit unit)
ReplicaConsistencyPolicyReplicaConsistencyException is thrown by Environment.beginTransaction(com.sleepycat.je.Transaction, com.sleepycat.je.TransactionConfig).
getTimeout in interface ReplicaConsistencyPolicypublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||