org.neo4j.kernel.impl.transaction.xaframework
Class LogIoUtils
java.lang.Object
org.neo4j.kernel.impl.transaction.xaframework.LogIoUtils
public class LogIoUtils
- extends Object
Method Summary |
static void |
moveAllLogicalLogs(File storeDir,
String subDirectoryName)
|
static LogEntry |
readEntry(ByteBuffer buffer,
ReadableByteChannel channel,
XaCommandFactory cf)
|
static LogEntry |
readLogEntry(ByteBuffer buffer,
ReadableByteChannel channel,
XaCommandFactory cf)
|
static long[] |
readLogHeader(ByteBuffer buffer,
ReadableByteChannel channel,
boolean strict)
|
static long[] |
readLogHeader(FileSystemAbstraction fileSystem,
File file)
|
static byte |
readNextByte(ByteBuffer buf,
ReadableByteChannel channel)
|
static void |
writeCommand(LogBuffer buffer,
int identifier,
XaCommand command)
|
static void |
writeCommit(boolean twoPhase,
LogBuffer buffer,
int identifier,
long txId,
long timeWritten)
|
static void |
writeDone(ByteBuffer buffer,
int identifier)
|
static void |
writeDone(LogBuffer buffer,
int identifier)
|
static void |
writeLogEntry(LogEntry entry,
LogBuffer buffer)
|
static ByteBuffer |
writeLogHeader(ByteBuffer buffer,
long logVersion,
long previousCommittedTxId)
|
static void |
writePrepare(LogBuffer buffer,
int identifier,
long timeWritten)
|
static void |
writeStart(LogBuffer buffer,
int identifier,
Xid xid,
int masterId,
int myId,
long timeWritten)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogIoUtils
public LogIoUtils()
readLogHeader
public static long[] readLogHeader(FileSystemAbstraction fileSystem,
File file)
throws IOException
- Throws:
IOException
readLogHeader
public static long[] readLogHeader(ByteBuffer buffer,
ReadableByteChannel channel,
boolean strict)
throws IOException
- Throws:
IOException
writeLogHeader
public static ByteBuffer writeLogHeader(ByteBuffer buffer,
long logVersion,
long previousCommittedTxId)
readEntry
public static LogEntry readEntry(ByteBuffer buffer,
ReadableByteChannel channel,
XaCommandFactory cf)
throws IOException
- Throws:
IOException
readLogEntry
public static LogEntry readLogEntry(ByteBuffer buffer,
ReadableByteChannel channel,
XaCommandFactory cf)
throws IOException,
ReadPastEndException
- Throws:
IOException
ReadPastEndException
writeLogEntry
public static void writeLogEntry(LogEntry entry,
LogBuffer buffer)
throws IOException
- Throws:
IOException
writePrepare
public static void writePrepare(LogBuffer buffer,
int identifier,
long timeWritten)
throws IOException
- Throws:
IOException
writeCommit
public static void writeCommit(boolean twoPhase,
LogBuffer buffer,
int identifier,
long txId,
long timeWritten)
throws IOException
- Throws:
IOException
writeDone
public static void writeDone(LogBuffer buffer,
int identifier)
throws IOException
- Throws:
IOException
writeDone
public static void writeDone(ByteBuffer buffer,
int identifier)
writeStart
public static void writeStart(LogBuffer buffer,
int identifier,
Xid xid,
int masterId,
int myId,
long timeWritten)
throws IOException
- Throws:
IOException
writeCommand
public static void writeCommand(LogBuffer buffer,
int identifier,
XaCommand command)
throws IOException
- Throws:
IOException
readNextByte
public static byte readNextByte(ByteBuffer buf,
ReadableByteChannel channel)
throws IOException,
ReadPastEndException
- Throws:
IOException
ReadPastEndException
moveAllLogicalLogs
public static void moveAllLogicalLogs(File storeDir,
String subDirectoryName)
Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.