Save This Page
Home » activemq-parent-5.3.1-source-release » org.apache » activemq » kaha » impl » async » [javadoc | source]
org.apache.activemq.kaha.impl.async
public class: ReadOnlyDataFile [javadoc | source]
java.lang.Object
   org.apache.activemq.util.LinkedNode
      org.apache.activemq.kaha.impl.async.DataFile
         org.apache.activemq.kaha.impl.async.ReadOnlyDataFile

All Implemented Interfaces:
    Comparable

Allows you to open a data file in read only mode. Useful when working with archived data files.
Fields inherited from org.apache.activemq.kaha.impl.async.DataFile:
file,  dataFileId,  preferedSize,  length,  referenceCount
Fields inherited from org.apache.activemq.util.LinkedNode:
next,  prev,  tail
Constructor:
 ReadOnlyDataFile(File file,
    int number,
    int preferedSize) 
Method from org.apache.activemq.kaha.impl.async.ReadOnlyDataFile Summary:
closeRandomAccessFile,   delete,   move,   openRandomAccessFile
Methods from org.apache.activemq.kaha.impl.async.DataFile:
closeRandomAccessFile,   compareTo,   decrement,   delete,   equals,   getDataFileId,   getFile,   getLength,   getReferenceCount,   hashCode,   increment,   incrementLength,   isUnused,   move,   openRandomAccessFile,   setLength,   toString
Methods from org.apache.activemq.util.LinkedNode:
getHeadNode,   getNext,   getPrevious,   getTailNode,   isHeadNode,   isTailNode,   linkAfter,   linkBefore,   reset,   unlink
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.activemq.kaha.impl.async.ReadOnlyDataFile Detail:
 public  void closeRandomAccessFile(RandomAccessFile file) throws IOException 
 public synchronized boolean delete() throws IOException 
 public synchronized  void move(File targetDirectory) throws IOException 
 public RandomAccessFile openRandomAccessFile(boolean appender) throws IOException