public static class NGTransaction.LogFile extends RandomAccessFile
Modifier and Type | Field and Description |
---|---|
(package private) File |
dir |
(package private) int |
logCounter
Number of valid operation in this log file
|
(package private) int |
logidx
Unique index of this log file
|
(package private) static int |
maxUsedIdx
Maximum index of existing log files
|
Constructor and Description |
---|
NGTransaction.LogFile(File dir,
int logidx,
String mode)
Creates a random access file stream to read from and to write to the file specified
by the File argument.
|
Modifier and Type | Method and Description |
---|---|
void |
renameTo() |
close, getChannel, getFD, getFilePointer, length, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seek, setLength, skipBytes, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
int logidx
int logCounter
File dir
static int maxUsedIdx
public NGTransaction.LogFile(File dir, int logidx, String mode) throws FileNotFoundException
file
- the specified file.FileNotFoundException
Copyright © 2018 ScalAgent D.T.. All Rights Reserved.