public class FileChannelVol
extends Volume
Volume which uses FileChannel. Uses global lock and does not use mapped memory.
Modifier and Type | Field and Description |
---|---|
static VolumeFactory |
FACTORY |
java.nio.channels.FileChannel |
channel |
java.io.File |
file |
java.nio.channels.FileLock |
fileLock |
java.util.concurrent.locks.Lock |
growLock |
boolean |
readOnly |
long |
size |
int |
sliceSize |
LOG, UNSAFE_VOL_FACTORY, closed
Constructor and Description |
---|
FileChannelVol() |
FileChannelVol() |
Modifier and Type | Method and Description |
---|---|
static void |
checkFolder() |
void |
clear() |
static void |
clear() |
void |
close() |
void |
ensureAvailable() |
byte |
getByte() |
void |
getData() |
DataInput2.ByteBuffer |
getDataInput() |
java.io.File |
getFile() |
boolean |
getFileLocked() |
int |
getInt() |
long |
getLong() |
boolean |
isReadOnly() |
boolean |
isSliced() |
long |
length() |
void |
putByte() |
void |
putData() |
void |
putData() |
void |
putInt() |
void |
putLong() |
void |
readFully() |
int |
sliceSize() |
void |
sync() |
void |
truncate() |
void |
writeFully() |
assertZeroes, clear, clearOverlap, close, copyFrom, copyTo, copyTo, copyTo, deleteFile, ensureAvailable, fileLoad, finalize, getByte, getData, getDataInput, getDataInputOverlap, getFile, getFileLocked, getInt, getLong, getPackedLong, getSixLong, getUnsignedByte, getUnsignedShort, hash, isClosed, isReadOnly, isSliced, length, putByte, putData, putData, putDataOverlap, putInt, putLong, putPackedLong, putSixLong, putUnsignedByte, putUnsignedShort, sliceSize, sync, truncate
public static VolumeFactory FACTORY
public java.io.File file
public int sliceSize
public java.nio.channels.FileChannel channel
public boolean readOnly
public java.nio.channels.FileLock fileLock
public long size
public java.util.concurrent.locks.Lock growLock
public static void checkFolder()
public void ensureAvailable()
public void truncate()
public void writeFully()
public void putLong()
public void putInt()
public void putByte()
public void putData()
public void putData()
public void readFully()
public long getLong()
public int getInt()
public byte getByte()
public DataInput2.ByteBuffer getDataInput()
public void getData()
public void close()
public void sync()
public int sliceSize()
public boolean isSliced()
public long length()
public boolean isReadOnly()
public java.io.File getFile()
public boolean getFileLocked()
public void clear()
public static void clear()