org.neo4j.kernel.impl.transaction.xaframework
Class LogExtractor
java.lang.Object
org.neo4j.kernel.impl.transaction.xaframework.LogExtractor
public class LogExtractor
- extends Object
LogExtractor
public LogExtractor(LogExtractor.LogPositionCache cache,
LogExtractor.LogLoader logLoader,
XaCommandFactory commandFactory,
long startTxId,
long endTxIdHint)
throws IOException
- Throws:
IOException
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.