org.neo4j.kernel.impl.transaction.xaframework
Class LogExtractor

java.lang.Object
  extended by org.neo4j.kernel.impl.transaction.xaframework.LogExtractor

public class LogExtractor
extends Object


Nested Class Summary
static interface LogExtractor.LogLoader
           
static class LogExtractor.LogPositionCache
           
static class LogExtractor.TxPosition
           
 
Constructor Summary
LogExtractor(LogExtractor.LogPositionCache cache, LogExtractor.LogLoader logLoader, XaCommandFactory commandFactory, long startTxId, long endTxIdHint)
           
 
Method Summary
 void close()
           
 long extractNext(LogBuffer target)
           
protected  void finalize()
           
static LogExtractor from(String storeDir)
           
static LogExtractor from(String storeDir, long startTxId)
           
 LogEntry.Commit getLastCommitEntry()
           
 LogEntry.Start getLastStartEntry()
           
 long getLastTxChecksum()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogExtractor

public LogExtractor(LogExtractor.LogPositionCache cache,
                    LogExtractor.LogLoader logLoader,
                    XaCommandFactory commandFactory,
                    long startTxId,
                    long endTxIdHint)
             throws IOException
Throws:
IOException
Method Detail

extractNext

public long extractNext(LogBuffer target)
                 throws IOException
Returns:
the txId for the extracted tx. Or -1 if end-of-stream was reached.
Throws:
RuntimeException - if there was something unexpected with the stream.
IOException

close

public void close()

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable

getLastCommitEntry

public LogEntry.Commit getLastCommitEntry()

getLastTxChecksum

public long getLastTxChecksum()

getLastStartEntry

public LogEntry.Start getLastStartEntry()

from

public static LogExtractor from(String storeDir)
                         throws IOException
Throws:
IOException

from

public static LogExtractor from(String storeDir,
                                long startTxId)
                         throws IOException
Throws:
IOException


Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.