| | |
| | | */ |
| | | package org.opends.server.replication.server.changelog.je; |
| | | |
| | | import org.opends.messages.Message; |
| | | import org.opends.server.replication.common.CSN; |
| | | import org.opends.server.replication.protocol.UpdateMsg; |
| | | import org.opends.server.replication.server.changelog.api.ChangelogException; |
| | |
| | | */ |
| | | public class JEReplicaDBCursor implements ReplicaDBCursor |
| | | { |
| | | private UpdateMsg currentChange = null; |
| | | private ReplServerDBCursor cursor = null; |
| | | private UpdateMsg currentChange; |
| | | private ReplServerDBCursor cursor; |
| | | private DbHandler dbHandler; |
| | | private ReplicationDB db; |
| | | private CSN lastNonNullCurrentCSN; |
| | |
| | | * @param db |
| | | * The db where the cursor must be created. |
| | | * @param startAfterCSN |
| | | * The CSN after which the cursor must start. |
| | | * The CSN after which the cursor must start.If null, start from the |
| | | * oldest CSN |
| | | * @param dbHandler |
| | | * The associated DbHandler. |
| | | * @throws ChangelogException |
| | |
| | | |
| | | // look again in the db |
| | | cursor = db.openReadCursor(startAfterCSN); |
| | | if (cursor == null) |
| | | { |
| | | throw new ChangelogException(Message.raw("no new change")); |
| | | } |
| | | } |
| | | } |
| | | |