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(RandomAccessFile file) |
int |
compareTo(DataFile df) |
boolean |
delete() |
boolean |
equals(Object o) |
SequenceSet |
getCorruptedBlocks() |
Integer |
getDataFileId() |
File |
getFile() |
int |
getLength() |
int |
hashCode() |
void |
incrementLength(int size) |
void |
move(File targetDirectory) |
RandomAccessFile |
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 RandomAccessFile openRandomAccessFile() throws IOException
IOExceptionpublic void closeRandomAccessFile(RandomAccessFile 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. All rights reserved.