org.opends.server.replication.server
Class ReplicationDB.ReplServerDBCursor

java.lang.Object
  extended by org.opends.server.replication.server.ReplicationDB.ReplServerDBCursor
Enclosing class:
ReplicationDB

public class ReplicationDB.ReplServerDBCursor
extends java.lang.Object

This Class implements a cursor that can be used to browse a replicationServer database.


Method Summary
 void abort()
          Abort the Cursor after a Deadlock Exception.
 void close()
          Close the ReplicationServer Cursor.
 void delete()
          Delete the record at the current cursor position.
 UpdateMessage next()
          Get the next UpdateMessage from this cursor.
 ChangeNumber nextChangeNumber()
          Get the next ChangeNumber in the database from this Cursor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

close

public void close()
Close the ReplicationServer Cursor.


abort

public void abort()
Abort the Cursor after a Deadlock Exception. This method catch and ignore the DeadlockException because this must be done when aborting a cursor after a DeadlockException (per the Cursor documentation). This should not be used in any other case.


nextChangeNumber

public ChangeNumber nextChangeNumber()
                              throws com.sleepycat.je.DatabaseException
Get the next ChangeNumber in the database from this Cursor.

Returns:
The next ChangeNumber in the database from this cursor.
Throws:
com.sleepycat.je.DatabaseException - In case of underlying database problem.

next

public UpdateMessage next()
Get the next UpdateMessage from this cursor.

Returns:
the next UpdateMessage.

delete

public void delete()
            throws com.sleepycat.je.DatabaseException
Delete the record at the current cursor position.

Throws:
com.sleepycat.je.DatabaseException - In case of database problem.