org.jboss.messaging.core.journal
Interface SequentialFile

All Known Implementing Classes:
AIOSequentialFile, NIOSequentialFile

public interface SequentialFile

A SequentialFile

Author:
Tim Fox, Clebert Suconic

Method Summary
 int calculateBlockStart(int position)
           
 void close()
           
 void delete()
           
 void fill(int position, int size, byte fillCharacter)
           
 int getAlignment()
           
 java.lang.String getFileName()
           
 void open()
           
 void position(int pos)
           
 int read(java.nio.ByteBuffer bytes)
           
 int read(java.nio.ByteBuffer bytes, IOCallback callback)
           
 int write(java.nio.ByteBuffer bytes, boolean sync)
           
 int write(java.nio.ByteBuffer bytes, IOCallback callback)
           
 

Method Detail

open

void open()
          throws java.lang.Exception
Throws:
java.lang.Exception

getAlignment

int getAlignment()
                 throws java.lang.Exception
Throws:
java.lang.Exception

calculateBlockStart

int calculateBlockStart(int position)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getFileName

java.lang.String getFileName()

fill

void fill(int position,
          int size,
          byte fillCharacter)
          throws java.lang.Exception
Throws:
java.lang.Exception

delete

void delete()
            throws java.lang.Exception
Throws:
java.lang.Exception

write

int write(java.nio.ByteBuffer bytes,
          IOCallback callback)
          throws java.lang.Exception
Throws:
java.lang.Exception

write

int write(java.nio.ByteBuffer bytes,
          boolean sync)
          throws java.lang.Exception
Throws:
java.lang.Exception

read

int read(java.nio.ByteBuffer bytes,
         IOCallback callback)
         throws java.lang.Exception
Throws:
java.lang.Exception

read

int read(java.nio.ByteBuffer bytes)
         throws java.lang.Exception
Throws:
java.lang.Exception

position

void position(int pos)
              throws java.lang.Exception
Throws:
java.lang.Exception

close

void close()
           throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2006 JBoss Inc. All Rights Reserved.