org.apache.zookeeper.server.persistence
Interface TxnLog.TxnIterator

All Known Implementing Classes:
FileTxnLog.FileTxnIterator
Enclosing interface:
TxnLog

public static interface TxnLog.TxnIterator

an iterating interface for reading transaction logs.


Method Summary
 void close()
          close files and release the resources
 TxnHeader getHeader()
          return the transaction header.
 org.apache.jute.Record getTxn()
          return the transaction record.
 boolean next()
          go to the next transaction record.
 

Method Detail

getHeader

TxnHeader getHeader()
return the transaction header.

Returns:
return the transaction header.

getTxn

org.apache.jute.Record getTxn()
return the transaction record.

Returns:
return the transaction record.

next

boolean next()
             throws IOException
go to the next transaction record.

Throws:
IOException

close

void close()
           throws IOException
close files and release the resources

Throws:
IOException


Copyright © 2011 The Apache Software Foundation