Class ReadOnlyDataFile
- java.lang.Object
-
- org.apache.activemq.store.kahadb.disk.util.LinkedNode<DataFile>
-
- org.apache.activemq.store.kahadb.disk.journal.DataFile
-
- org.apache.activemq.store.kahadb.disk.journal.ReadOnlyDataFile
-
- All Implemented Interfaces:
Comparable<DataFile>
public class ReadOnlyDataFile extends DataFile
Allows you to open a data file in read only mode. Useful when working with archived data files.
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.store.kahadb.disk.journal.DataFile
appendRandomAccessFile, corruptedBlocks, dataFileId, file, length, STANDARD_LOG_FILE, typeCode
-
Fields inherited from class org.apache.activemq.store.kahadb.disk.util.LinkedNode
list, next, prev
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeRandomAccessFile(RandomAccessFile file)
boolean
delete()
void
move(File targetDirectory)
RandomAccessFile
openRandomAccessFile(boolean appender)
-
Methods inherited from class org.apache.activemq.store.kahadb.disk.journal.DataFile
appendRandomAccessFile, closeRandomAccessFile, compareTo, decrementLength, equals, getCorruptedBlocks, getDataFileId, getFile, getLength, getTypeCode, hashCode, incrementLength, openRandomAccessFile, setLength, setTypeCode, toString
-
Methods inherited from class org.apache.activemq.store.kahadb.disk.util.LinkedNode
getHeadNode, getList, getNext, getNextCircular, getPrevious, getPreviousCircular, getTailNode, isHeadNode, isLinked, isTailNode, linkAfter, linkAfter, linkBefore, linkBefore, linkToHead, linkToTail, splitAfter, splitBefore, unlink
-
-
-
-
Method Detail
-
openRandomAccessFile
public RandomAccessFile openRandomAccessFile(boolean appender) throws IOException
- Throws:
IOException
-
closeRandomAccessFile
public void closeRandomAccessFile(RandomAccessFile file) throws IOException
- Throws:
IOException
-
delete
public boolean delete() throws IOException
- Overrides:
delete
in classDataFile
- Throws:
IOException
-
move
public void move(File targetDirectory) throws IOException
- Overrides:
move
in classDataFile
- Throws:
IOException
-
-