|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.replication.common.ServerState
org.opends.server.replication.plugin.PersistentServerState
public class PersistentServerState
This class implements a ServerState that is stored on the backends used to store the synchronized data and that is therefore persistent accross server reboot.
Field Summary | |
---|---|
protected static java.lang.String |
REPLICATION_STATE
The attribute name used to store the state in the backend. |
Constructor Summary | |
---|---|
PersistentServerState(DN baseDn,
short serverId)
create a new ServerState. |
Method Summary | |
---|---|
void |
checkAndUpdateServerState()
The ServerState is saved to the database periodically, therefore in case of crash it is possible that is does not contain the latest changes that have been processed and saved to the database. |
void |
clear()
Empty the ServerState. |
void |
clearInMemory()
Empty the ServerState. |
void |
loadState()
Load the ServerState from the backing entry in database to memory. |
void |
save()
Save this object to persistent storage. |
boolean |
update(ChangeNumber changeNumber)
Update the Server State with a ChangeNumber. |
Methods inherited from class org.opends.server.replication.common.ServerState |
---|
cover, duplicate, getBytes, getMaxChangeNumber, isEmpty, iterator, toASN1ArrayList, toString, toStringSet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String REPLICATION_STATE
Constructor Detail |
---|
public PersistentServerState(DN baseDn, short serverId)
baseDn
- The baseDN for which the ServerState is createdserverId
- The serverIdMethod Detail |
---|
public boolean update(ChangeNumber changeNumber)
update
in class ServerState
changeNumber
- the committed ChangeNumber.
public void save()
public void loadState()
public void clearInMemory()
public void clear()
clear
in class ServerState
public final void checkAndUpdateServerState()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |