org.apache.activemq.kaha.impl.async
Class DataFile
java.lang.Object
org.apache.activemq.util.LinkedNode
org.apache.activemq.kaha.impl.async.DataFile
- All Implemented Interfaces:
- java.lang.Comparable<DataFile>
- Direct Known Subclasses:
- ReadOnlyDataFile
public class DataFile
- extends LinkedNode
- implements java.lang.Comparable<DataFile>
DataFile
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
file
protected final java.io.File file
dataFileId
protected final java.lang.Integer dataFileId
preferedSize
protected final int preferedSize
length
protected int length
referenceCount
protected int referenceCount
getDataFileId
public java.lang.Integer getDataFileId()
getLength
public int getLength()
setLength
public void setLength(int length)
incrementLength
public void incrementLength(int size)
increment
public int increment()
decrement
public int decrement()
getReferenceCount
public int getReferenceCount()
isUnused
public boolean isUnused()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
openRandomAccessFile
public java.io.RandomAccessFile openRandomAccessFile(boolean appender)
throws java.io.IOException
- Throws:
java.io.IOException
closeRandomAccessFile
public void closeRandomAccessFile(java.io.RandomAccessFile file)
throws java.io.IOException
- Throws:
java.io.IOException
delete
public boolean delete()
throws java.io.IOException
- Throws:
java.io.IOException
move
public void move(java.io.File targetDirectory)
throws java.io.IOException
- Throws:
java.io.IOException
compareTo
public int compareTo(DataFile df)
- Specified by:
compareTo
in interface java.lang.Comparable<DataFile>
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
Copyright © 2005-2016. All Rights Reserved.