public class DataFile extends LinkedNode<DataFile> implements Comparable<DataFile>
| Modifier and Type | Field and Description |
|---|---|
protected SequenceSet |
corruptedBlocks |
protected Integer |
dataFileId |
protected File |
file |
protected int |
length |
list, next, prev| Modifier and Type | Method and Description |
|---|---|
void |
closeRandomAccessFile(RecoverableRandomAccessFile file) |
int |
compareTo(DataFile df) |
void |
decrementLength(int size) |
boolean |
delete() |
boolean |
equals(Object o) |
SequenceSet |
getCorruptedBlocks() |
Integer |
getDataFileId() |
File |
getFile() |
int |
getLength() |
int |
hashCode() |
void |
incrementLength(int size) |
void |
move(File targetDirectory) |
RecoverableRandomAccessFile |
openRandomAccessFile() |
void |
setLength(int length) |
String |
toString() |
getHeadNode, getList, getNext, getNextCircular, getPrevious, getPreviousCircular, getTailNode, isHeadNode, isLinked, isTailNode, linkAfter, linkAfter, linkBefore, linkBefore, linkToHead, linkToTail, splitAfter, splitBefore, unlinkprotected final Integer dataFileId
protected volatile int length
protected final SequenceSet corruptedBlocks
public Integer getDataFileId()
public int getLength()
public void setLength(int length)
public void incrementLength(int size)
public void decrementLength(int size)
public RecoverableRandomAccessFile openRandomAccessFile() throws IOException
IOExceptionpublic void closeRandomAccessFile(RecoverableRandomAccessFile file) throws IOException
IOExceptionpublic boolean delete() throws IOException
IOExceptionpublic void move(File targetDirectory) throws IOException
IOExceptionpublic SequenceSet getCorruptedBlocks()
public int compareTo(DataFile df)
compareTo in interface Comparable<DataFile>Copyright © 2005–2017 FuseSource, Corp.. All rights reserved.