|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.cursor.AbstractCursor<ReplicaEventMessage>
org.apache.directory.server.ldap.replication.provider.ReplicaJournalCursor
public class ReplicaJournalCursor
Define a cursor on top of a replication journal.
| Constructor Summary | |
|---|---|
ReplicaJournalCursor(org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable<String,ReplicaEventMessage> journal,
String consumerCsn)
Creates a cursor on top of the given journal |
|
| Method Summary | |
|---|---|
void |
after(ReplicaEventMessage arg0)
|
void |
afterLast()
|
boolean |
available()
|
void |
before(ReplicaEventMessage arg0)
|
void |
beforeFirst()
|
void |
close()
|
void |
close(Exception cause)
|
protected void |
delete()
delete the current message used for internal log cleanup ONLY |
boolean |
first()
|
ReplicaEventMessage |
get()
|
Iterator<ReplicaEventMessage> |
iterator()
|
boolean |
last()
|
boolean |
next()
|
boolean |
previous()
|
protected void |
skipQualifyingWhileFetching()
sets the flag to skip CSN based checking while traversing used for internal log cleanup ONLY |
| Methods inherited from class org.apache.directory.api.ldap.model.cursor.AbstractCursor |
|---|
checkNotClosed, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, setClosureMonitor, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReplicaJournalCursor(org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable<String,ReplicaEventMessage> journal,
String consumerCsn)
throws Exception
journal - the log journalconsumerCsn - the consumer's CSN taken from cookie
Exception| Method Detail |
|---|
public void after(ReplicaEventMessage arg0)
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException,
IOException
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
IOException
public void afterLast()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException,
IOException
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
IOExceptionpublic boolean available()
public void before(ReplicaEventMessage arg0)
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException,
IOException
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
IOException
public void beforeFirst()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException,
IOException
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
IOException
public boolean first()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException,
IOException
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
IOException
public ReplicaEventMessage get()
throws org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.cursor.CursorException
public boolean last()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException,
IOException
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
IOException
public boolean next()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException,
IOException
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
IOException
public boolean previous()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException,
IOException
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
IOExceptionpublic void close()
close in interface org.apache.directory.api.ldap.model.cursor.Cursor<ReplicaEventMessage>close in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<ReplicaEventMessage>public void close(Exception cause)
close in interface org.apache.directory.api.ldap.model.cursor.Cursor<ReplicaEventMessage>close in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<ReplicaEventMessage>protected void skipQualifyingWhileFetching()
protected void delete()
public Iterator<ReplicaEventMessage> iterator()
iterator in interface Iterable<ReplicaEventMessage>iterator in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<ReplicaEventMessage>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||