public class JDBCSequentialFile extends Object implements SequentialFile
| Modifier and Type | Method and Description |
|---|---|
void |
addMetaData(Object key,
Object value) |
void |
blockingWriteDirect(ByteBuffer bytes,
boolean sync,
boolean releaseBuffer) |
int |
calculateBlockStart(int position) |
SequentialFile |
cloneFile() |
void |
close() |
void |
close(boolean waitOnSync) |
void |
copyTo(SequentialFile cloneFile) |
void |
delete() |
boolean |
exists() |
void |
fill(int size) |
boolean |
fits(int size) |
String |
getExtension() |
String |
getFilename() |
String |
getFileName() |
long |
getId() |
File |
getJavaFile() |
Object |
getMetaData(Object key) |
int |
internalWrite(ActiveMQBuffer buffer,
IOCallback callback) |
int |
internalWrite(ActiveMQBuffer buffer,
IOCallback callback,
boolean append) |
boolean |
isOpen() |
ByteBuffer |
map(int position,
long size) |
void |
open() |
void |
open(int maxIO,
boolean useExecutor) |
long |
position() |
void |
position(long pos) |
int |
read(ByteBuffer bytes) |
int |
read(ByteBuffer bytes,
IOCallback callback) |
void |
renameTo(String newFileName) |
void |
setId(long id) |
void |
setTimedBuffer(TimedBuffer buffer) |
long |
size() |
void |
sync() |
void |
write(ActiveMQBuffer bytes,
boolean sync) |
void |
write(ActiveMQBuffer bytes,
boolean sync,
IOCallback callback) |
void |
write(ActiveMQBuffer bytes,
boolean sync,
IOCallback callback,
boolean append) |
void |
write(EncodingSupport bytes,
boolean sync) |
void |
write(EncodingSupport bytes,
boolean sync,
IOCallback callback) |
void |
writeDirect(ByteBuffer bytes,
boolean sync) |
void |
writeDirect(ByteBuffer bytes,
boolean sync,
IOCallback callback) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendTopublic boolean isOpen()
isOpen in interface SequentialFilepublic boolean exists()
exists in interface SequentialFilepublic void open()
throws Exception
open in interface SequentialFileExceptionpublic void open(int maxIO,
boolean useExecutor)
throws Exception
open in interface SequentialFileExceptionpublic boolean fits(int size)
fits in interface SequentialFilepublic int calculateBlockStart(int position)
throws Exception
calculateBlockStart in interface SequentialFileExceptionpublic String getFileName()
getFileName in interface SequentialFilepublic void fill(int size)
throws Exception
fill in interface SequentialFileExceptionpublic ByteBuffer map(int position, long size) throws IOException
map in interface SequentialFileIOExceptionpublic void delete()
throws IOException,
InterruptedException,
ActiveMQException
delete in interface SequentialFileIOExceptionInterruptedExceptionActiveMQExceptionpublic int internalWrite(ActiveMQBuffer buffer, IOCallback callback)
public int internalWrite(ActiveMQBuffer buffer, IOCallback callback, boolean append)
public void write(ActiveMQBuffer bytes, boolean sync, IOCallback callback, boolean append) throws Exception
Exceptionpublic void write(ActiveMQBuffer bytes, boolean sync, IOCallback callback) throws Exception
write in interface SequentialFileExceptionpublic void write(ActiveMQBuffer bytes, boolean sync) throws Exception
write in interface SequentialFileExceptionpublic void write(EncodingSupport bytes, boolean sync, IOCallback callback) throws Exception
write in interface SequentialFileExceptionpublic void write(EncodingSupport bytes, boolean sync) throws Exception
write in interface SequentialFileExceptionpublic void writeDirect(ByteBuffer bytes, boolean sync, IOCallback callback)
writeDirect in interface SequentialFilepublic void blockingWriteDirect(ByteBuffer bytes, boolean sync, boolean releaseBuffer)
blockingWriteDirect in interface SequentialFilepublic void writeDirect(ByteBuffer bytes, boolean sync) throws Exception
writeDirect in interface SequentialFileExceptionpublic int read(ByteBuffer bytes, IOCallback callback) throws SQLException
read in interface SequentialFileSQLExceptionpublic int read(ByteBuffer bytes) throws Exception
read in interface SequentialFileExceptionpublic void position(long pos)
throws IOException
position in interface SequentialFileIOExceptionpublic long position()
position in interface SequentialFilepublic void close()
throws Exception
close in interface SequentialFileExceptionpublic void close(boolean waitOnSync)
throws Exception
close in interface SequentialFileExceptionpublic void sync()
throws IOException
sync in interface SequentialFileIOExceptionpublic long size()
throws Exception
size in interface SequentialFileExceptionpublic void renameTo(String newFileName) throws Exception
renameTo in interface SequentialFileExceptionpublic SequentialFile cloneFile()
cloneFile in interface SequentialFilepublic void copyTo(SequentialFile cloneFile) throws Exception
copyTo in interface SequentialFileExceptionpublic long getId()
public void setId(long id)
public String getFilename()
public String getExtension()
public void setTimedBuffer(TimedBuffer buffer)
setTimedBuffer in interface SequentialFilepublic File getJavaFile()
getJavaFile in interface SequentialFileCopyright © 2020 The Apache Software Foundation. All rights reserved.