|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.replication.server.ReplicationIterator
public class ReplicationIterator
This class allows to iterate through the changes received from a given LDAP Server Identifier.
Constructor Summary | |
---|---|
ReplicationIterator(short id,
ReplicationDB db,
ChangeNumber changeNumber)
Creates a new ReplicationIterator. |
Method Summary | |
---|---|
protected void |
finalize()
Called by the Gc when the object is garbage collected Release the cursor in case the iterator was badly used and releaseCursor was never called. |
UpdateMessage |
getChange()
Get the UpdateMessage where the iterator is currently set. |
boolean |
next()
Go to the next change in the ReplicationDB or in the server Queue. |
void |
releaseCursor()
Release the resources and locks used by this Iterator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReplicationIterator(short id, ReplicationDB db, ChangeNumber changeNumber) throws java.lang.Exception, com.sleepycat.je.DatabaseException
id
- the Identifier of the server on which the iterator applies.db
- The db where the iterator must be created.changeNumber
- The ChangeNumber after which the iterator must start.
java.lang.Exception
- If there is no other change to push after change
with changeNumber number.
com.sleepycat.je.DatabaseException
- if a database problem happened.Method Detail |
---|
public UpdateMessage getChange()
public boolean next()
public void releaseCursor()
protected void finalize()
finalize
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |