Class DataFile
java.lang.Object
org.apache.activemq.store.kahadb.disk.util.LinkedNode<DataFile>
org.apache.activemq.store.kahadb.disk.journal.DataFile
- All Implemented Interfaces:
Comparable<DataFile>
- Direct Known Subclasses:
ReadOnlyDataFile
DataFile
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RecoverableRandomAccessFileprotected final SequenceSetprotected final Integerprotected final Fileprotected intstatic final byteprotected intFields inherited from class org.apache.activemq.store.kahadb.disk.util.LinkedNode
list, next, prev -
Method Summary
Modifier and TypeMethodDescriptionvoidintvoiddecrementLength(int size) booleandelete()booleangetFile()intintinthashCode()voidincrementLength(int size) voidvoidsetLength(int length) voidsetTypeCode(int typeCode) 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
-
Field Details
-
STANDARD_LOG_FILE
public static final byte STANDARD_LOG_FILE- See Also:
-
file
-
dataFileId
-
length
protected volatile int length -
typeCode
protected int typeCode -
corruptedBlocks
-
appendRandomAccessFile
-
-
Method Details
-
getFile
-
getDataFileId
-
getTypeCode
public int getTypeCode() -
setTypeCode
public void setTypeCode(int typeCode) -
getLength
public int getLength() -
setLength
public void setLength(int length) -
incrementLength
public void incrementLength(int size) -
decrementLength
public void decrementLength(int size) -
toString
-
appendRandomAccessFile
- Throws:
IOException
-
openRandomAccessFile
- Throws:
IOException
-
closeRandomAccessFile
- Throws:
IOException
-
delete
- Throws:
IOException
-
move
- Throws:
IOException
-
getCorruptedBlocks
-
compareTo
- Specified by:
compareToin interfaceComparable<DataFile>
-
equals
-
hashCode
public int hashCode()
-