fr.dyade.aaa.ext
Class NGTransaction.LogFile

java.lang.Object
  extended by java.io.RandomAccessFile
      extended by fr.dyade.aaa.ext.NGTransaction.LogFile
All Implemented Interfaces:
java.io.Closeable, java.io.DataInput, java.io.DataOutput
Enclosing class:
NGTransaction

public static class NGTransaction.LogFile
extends java.io.RandomAccessFile


Constructor Summary
NGTransaction.LogFile(java.io.File dir, int logidx, java.lang.String mode)
          Creates a random access file stream to read from and to write to the file specified by the File argument.
 
Method Summary
 void renameTo(int newidx)
           
 
Methods inherited from class java.io.RandomAccessFile
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NGTransaction.LogFile

public NGTransaction.LogFile(java.io.File dir,
                             int logidx,
                             java.lang.String mode)
                      throws java.io.FileNotFoundException
Creates a random access file stream to read from and to write to the file specified by the File argument. The file is open in "rwd" mode and require that every update to the file's content be written synchronously to the underlying storage device.

Parameters:
file - the specified file.
Throws:
java.io.FileNotFoundException
Method Detail

renameTo

public void renameTo(int newidx)


Copyright © 2011 ScalAgent D.T.. All Rights Reserved.