|
Berkeley DB version 4.3.29 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sleepycat.db.ReplicationStatus
The return status from processing a replication message.
Method Summary | |
DatabaseEntry |
getCData()
Whenever the system receives contact information from a new environment, a copy of the opaque data specified in the cdata parameter to the Environment.startReplication is available
from the getCDAta method. |
int |
getEnvID()
Whenever a new master is elected, the environment ID of the new master is available from the getEnvID method. |
LogSequenceNumber |
getLSN()
Whenever processing a messages results in the processing of messages that are permanent, or a message carrying a DB_REP_PERMANENT flag was processed successfully, but was not written to disk, the LSN of the record is available from the getLSN method. |
boolean |
isDupMaster()
The replication group has more than one master. |
boolean |
isHoldElection()
An election is needed. |
boolean |
isNewMaster()
A new master has been elected. |
boolean |
isNewSite()
The system received contact information from a new environment. |
boolean |
isNotPermanent()
A message carrying a DB_REP_PERMANENT flag was processed successfully, but was not written to disk. |
boolean |
isPermanent()
Processing this message resulted in the processing of records that are permanent. |
boolean |
isStartupDone()
The client completed startup synchronization. |
boolean |
isSuccess()
The operation succeeded. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public boolean isSuccess()
public boolean isDupMaster()
Environment.startReplication
method, and then call for an
election by calling Environment.electReplicationMaster
.
public boolean isHoldElection()
Environment.electReplicationMaster
.
public boolean isPermanent()
public boolean isNewMaster()
public boolean isNewSite()
Environment.startReplication
is available from the
getCDAta method. The application should take whatever action is
needed to establish a communication channel with this new
environment.
public boolean isNotPermanent()
public boolean isStartupDone()
public DatabaseEntry getCData()
Environment.startReplication
is available
from the getCDAta method. The application should take whatever
action is needed to establish a communication channel with this new
environment.
public int getEnvID()
public LogSequenceNumber getLSN()
|
Berkeley DB version 4.3.29 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |