public class AIOSequentialFileFactory extends AbstractSequentialFileFactory
bufferSize, bufferTimeout, EXECUTOR_TIMEOUT, journalDir, timedBuffer, writeExecutor
Constructor and Description |
---|
AIOSequentialFileFactory(String journalDir) |
AIOSequentialFileFactory(String journalDir,
int bufferSize,
int bufferTimeout,
boolean logRates) |
AIOSequentialFileFactory(String journalDir,
int bufferSize,
int bufferTimeout,
boolean logRates,
IOCriticalErrorListener listener) |
AIOSequentialFileFactory(String journalDir,
IOCriticalErrorListener listener) |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
allocateDirectBuffer(int size)
used for cases where you need direct buffer outside of the journal context.
|
int |
calculateBlockSize(int position) |
void |
clearBuffer(ByteBuffer directByteBuffer) |
SequentialFile |
createSequentialFile(String fileName,
int maxIO) |
protected void |
finalize() |
int |
getAlignment() |
static boolean |
isSupported() |
boolean |
isSupportsCallbacks() |
ByteBuffer |
newBuffer(int size)
Note: You need to release the buffer if is used for reading operations.
|
void |
releaseBuffer(ByteBuffer buffer) |
void |
releaseDirectBuffer(ByteBuffer buffer)
used for cases where you need direct buffer outside of the journal context.
|
void |
start() |
void |
stop() |
ByteBuffer |
wrapBuffer(byte[] bytes) |
activateBuffer, createDirs, deactivateBuffer, flush, getDirectory, listFiles, onIOError
public AIOSequentialFileFactory(String journalDir)
public AIOSequentialFileFactory(String journalDir, IOCriticalErrorListener listener)
public AIOSequentialFileFactory(String journalDir, int bufferSize, int bufferTimeout, boolean logRates)
public AIOSequentialFileFactory(String journalDir, int bufferSize, int bufferTimeout, boolean logRates, IOCriticalErrorListener listener)
public SequentialFile createSequentialFile(String fileName, int maxIO)
public boolean isSupportsCallbacks()
public static boolean isSupported()
public ByteBuffer allocateDirectBuffer(int size)
SequentialFileFactory
public void releaseDirectBuffer(ByteBuffer buffer)
SequentialFileFactory
public ByteBuffer newBuffer(int size)
SequentialFileFactory
public void clearBuffer(ByteBuffer directByteBuffer)
public int getAlignment()
public ByteBuffer wrapBuffer(byte[] bytes)
public int calculateBlockSize(int position)
public void releaseBuffer(ByteBuffer buffer)
releaseBuffer
in interface SequentialFileFactory
releaseBuffer
in class AbstractSequentialFileFactory
public void start()
start
in interface SequentialFileFactory
start
in class AbstractSequentialFileFactory
public void stop()
stop
in interface SequentialFileFactory
stop
in class AbstractSequentialFileFactory
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.