public class DomainDBCursor extends Object
DBCursor.CursorOptions, DBCursor.KeyMatchingStrategy, DBCursor.PositionStrategy| Constructor and Description |
|---|
DomainDBCursor(DN baseDN,
ReplicationDomainDB domainDB,
DBCursor.CursorOptions options)
Builds a DomainDBCursor instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCursor(DBCursor<UpdateMsg> cursor,
T data)
Adds a cursor to this composite cursor.
|
void |
addReplicaDB(int serverId,
CSN startCSN)
Adds a replicaDB for this cursor to iterate over.
|
void |
close()
Release the resources and locks used by this Iterator.
|
DN |
getBaseDN()
Returns the replication domain baseDN of this cursor.
|
T |
getData()
Returns the data associated to the cursor that returned the current record.
|
UpdateMsg |
getRecord()
Getter for the current record.
|
protected void |
incorporateNewCursors()
Called when implementors should incorporate new cursors into the current
composite DBCursor.
|
boolean |
next()
Skip to the next record of the database.
|
protected void |
removeCursor(T dataToFind)
Removes the cursor matching the provided data.
|
String |
toString() |
public DomainDBCursor(DN baseDN, ReplicationDomainDB domainDB, DBCursor.CursorOptions options)
baseDN - the replication domain baseDN of this cursordomainDB - the DB for the provided replication domainoptions - The cursor optionspublic DN getBaseDN()
public void addReplicaDB(int serverId, CSN startCSN)
next().serverId - the serverId of the replicastartCSN - the CSN to use as a starting pointprotected void incorporateNewCursors() throws ChangelogException
addCursor(DBCursor, Object) to do so.ChangelogException - if a database problem occurredpublic void close()
public boolean next() throws ChangelogException
next in interface DBCursor<UpdateMsg>ChangelogException - When database exception raised.protected void removeCursor(T dataToFind)
dataToFind - the data for which the cursor must be found and removedprotected void addCursor(DBCursor<UpdateMsg> cursor, T data) throws ChangelogException
DBCursor.next() to verify whether it is exhausted or not.cursor - the cursor to add to this compositedata - the data associated to the provided cursorChangelogException - if a database problem occurredpublic T getData()
Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.