Class ECLMultiDomainDBCursor
java.lang.Object
org.opends.server.replication.server.changelog.file.ECLMultiDomainDBCursor
- All Implemented Interfaces:
Closeable,AutoCloseable,DBCursor<UpdateRecord>
Multi domain DB cursor that only returns updates for the domains which have been enabled for the external changelog.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opends.server.replication.server.changelog.api.DBCursor
DBCursor.CursorOptions, DBCursor.PositionStrategy -
Constructor Summary
ConstructorsConstructorDescriptionECLMultiDomainDBCursor(Predicate<Dn> isEclEnabledDomain, MultiDomainDBCursor cursor) Builds an instance of this class filtering updates from the provided cursor. -
Method Summary
-
Constructor Details
-
ECLMultiDomainDBCursor
Builds an instance of this class filtering updates from the provided cursor.- Parameters:
isEclEnabledDomain- tells whether a domain is enabled for the external changelogcursor- the cursor whose updates will be filtered
-
-
Method Details
-
getRecord
Description copied from interface:DBCursorGetter for the current record.This method will always return
nullwhen- a call to
DBCursor.next()returnsfalse - it is called before the very first call to
DBCursor.next().
- Specified by:
getRecordin interfaceDBCursor<UpdateRecord>- Returns:
- The current record. May be
null.
- a call to
-
next
Description copied from interface:DBCursorSkip to the next record of the database.- Specified by:
nextin interfaceDBCursor<UpdateRecord>- Returns:
- true if has next, false otherwise
- Throws:
ChangelogException- When database exception raised.
-
close
public void close()Description copied from interface:DBCursorRelease the resources and locks used by this Iterator. This method must be called when the iterator is no longer used. Failure to do it could cause DB deadlock.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceDBCursor<UpdateRecord>
-
toString
-