public static class

ReliableLog.LogFile

extends RandomAccessFile
java.lang.Object
   ↳ java.io.RandomAccessFile
     ↳ sun.rmi.log.ReliableLog.LogFile

Class Overview

ReliableLog's log file implementation. This implementation is subclassable for testing purposes.

Summary

Public Constructors
ReliableLog.LogFile(String name, String mode)
Constructs a LogFile and initializes the file descriptor.
Protected Methods
boolean checkSpansBoundary(long fp)
Returns true if writing 4 bytes starting at the specified file position, would span a 512 byte sector boundary; otherwise returns false.
void sync()
Invokes sync on the file descriptor for this log file.
[Expand]
Inherited Methods
From class java.io.RandomAccessFile
From class java.lang.Object
From interface java.io.Closeable
From interface java.io.DataInput
From interface java.io.DataOutput

Public Constructors

public ReliableLog.LogFile (String name, String mode)

Constructs a LogFile and initializes the file descriptor.

Protected Methods

protected boolean checkSpansBoundary (long fp)

Returns true if writing 4 bytes starting at the specified file position, would span a 512 byte sector boundary; otherwise returns false.

protected void sync ()

Invokes sync on the file descriptor for this log file.

Throws
IOException