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>
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, typeCodeFields inherited from class org.apache.activemq.store.kahadb.disk.util.LinkedNode
list, next, prev -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleandelete()voidopenRandomAccessFile(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, toStringMethods 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 Details
-
openRandomAccessFile
- Throws:
IOException
-
closeRandomAccessFile
- Throws:
IOException
-
delete
- Overrides:
deletein classDataFile- Throws:
IOException
-
move
- Overrides:
movein classDataFile- Throws:
IOException
-