org.apache.directory.server.ldap.replication.provider
Class ReplicaJournalCursor

java.lang.Object
  extended by org.apache.directory.shared.ldap.model.cursor.AbstractCursor<ReplicaEventMessage>
      extended by org.apache.directory.server.ldap.replication.provider.ReplicaJournalCursor
All Implemented Interfaces:
Iterable<ReplicaEventMessage>, org.apache.directory.shared.ldap.model.cursor.Cursor<ReplicaEventMessage>

public class ReplicaJournalCursor
extends org.apache.directory.shared.ldap.model.cursor.AbstractCursor<ReplicaEventMessage>

Define a cursor on top of a replication journal.

Author:
Apache Directory Project

Constructor Summary
ReplicaJournalCursor(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)
          
 boolean first()
          
 ReplicaEventMessage get()
          
 Iterator<ReplicaEventMessage> iterator()
          
 boolean last()
          
 boolean next()
          
 boolean previous()
          
 
Methods inherited from class org.apache.directory.shared.ldap.model.cursor.AbstractCursor
checkNotClosed, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, setClosureMonitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplicaJournalCursor

public ReplicaJournalCursor(JdbmTable<String,ReplicaEventMessage> journal,
                            String consumerCsn)
                     throws Exception
Creates a cursor on top of the given journal

Parameters:
journal - the log journal
consumerCsn - the consumer's CSN taken from cookie
Throws:
Exception
Method Detail

after

public void after(ReplicaEventMessage arg0)
           throws Exception

Throws:
Exception

afterLast

public void afterLast()
               throws Exception

Throws:
Exception

available

public boolean available()


before

public void before(ReplicaEventMessage arg0)
            throws Exception

Throws:
Exception

beforeFirst

public void beforeFirst()
                 throws Exception

Throws:
Exception

first

public boolean first()
              throws Exception

Throws:
Exception

get

public ReplicaEventMessage get()
                        throws Exception

Throws:
Exception

last

public boolean last()
             throws Exception

Throws:
Exception

next

public boolean next()
             throws Exception

Throws:
Exception

previous

public boolean previous()
                 throws Exception

Throws:
Exception

close

public void close()
           throws Exception

Specified by:
close in interface org.apache.directory.shared.ldap.model.cursor.Cursor<ReplicaEventMessage>
Overrides:
close in class org.apache.directory.shared.ldap.model.cursor.AbstractCursor<ReplicaEventMessage>
Throws:
Exception

close

public void close(Exception cause)
           throws Exception

Specified by:
close in interface org.apache.directory.shared.ldap.model.cursor.Cursor<ReplicaEventMessage>
Overrides:
close in class org.apache.directory.shared.ldap.model.cursor.AbstractCursor<ReplicaEventMessage>
Throws:
Exception

iterator

public Iterator<ReplicaEventMessage> iterator()

Specified by:
iterator in interface Iterable<ReplicaEventMessage>
Overrides:
iterator in class org.apache.directory.shared.ldap.model.cursor.AbstractCursor<ReplicaEventMessage>


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.