Class JDBCSequentialFile
java.lang.Object
org.apache.activemq.artemis.jdbc.store.file.JDBCSequentialFile
- All Implemented Interfaces:
org.apache.activemq.artemis.core.io.SequentialFile
public class JDBCSequentialFile
extends Object
implements org.apache.activemq.artemis.core.io.SequentialFile
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetaData(Object key, Object value) voidblockingWriteDirect(ByteBuffer bytes, boolean sync, boolean releaseBuffer) intcalculateBlockStart(int position) org.apache.activemq.artemis.core.io.SequentialFilevoidclose()voidclose(boolean waitOnSync, boolean block) voidcopyTo(org.apache.activemq.artemis.core.io.SequentialFile cloneFile) voiddelete()booleanexists()voidfill(int size) booleanfits(int size) longgetId()getMetaData(Object key) intlonggetOid()booleanisOpen()intjdbcWrite(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer, org.apache.activemq.artemis.core.io.IOCallback callback) intjdbcWrite(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer, org.apache.activemq.artemis.core.io.IOCallback callback, boolean append) map(int position, long size) voidopen()voidopen(int maxIO, boolean useExecutor) longposition()voidposition(long pos) intread(ByteBuffer bytes) intread(ByteBuffer bytes, org.apache.activemq.artemis.core.io.IOCallback callback) voidvoidsendToDB(org.apache.activemq.artemis.api.core.ActiveMQBuffer bytes, org.apache.activemq.artemis.core.io.IOCallback callback, boolean append) voidsetId(long id) voidsetOid(long oid) voidsetTimedBuffer(org.apache.activemq.artemis.core.io.buffer.TimedBuffer buffer) longsize()voidsync()voidwrite(org.apache.activemq.artemis.api.core.ActiveMQBuffer bytes, boolean sync) voidwrite(org.apache.activemq.artemis.api.core.ActiveMQBuffer bytes, boolean sync, org.apache.activemq.artemis.core.io.IOCallback callback) voidwrite(org.apache.activemq.artemis.core.journal.EncodingSupport bytes, boolean sync) voidwrite(org.apache.activemq.artemis.core.journal.EncodingSupport bytes, boolean sync, org.apache.activemq.artemis.core.io.IOCallback callback) voidwriteDirect(ByteBuffer bytes, boolean sync) voidwriteDirect(ByteBuffer bytes, boolean sync, org.apache.activemq.artemis.core.io.IOCallback callback) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.core.io.SequentialFile
afterComplete
-
Method Details
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceorg.apache.activemq.artemis.core.io.SequentialFile
-
exists
public boolean exists()- Specified by:
existsin interfaceorg.apache.activemq.artemis.core.io.SequentialFile
-
open
-
open
-
fits
public boolean fits(int size) - Specified by:
fitsin interfaceorg.apache.activemq.artemis.core.io.SequentialFile
-
calculateBlockStart
-
getFileName
- Specified by:
getFileNamein interfaceorg.apache.activemq.artemis.core.io.SequentialFile
-
fill
-
map
- Specified by:
mapin interfaceorg.apache.activemq.artemis.core.io.SequentialFile- Throws:
IOException
-
delete
public void delete() throws IOException, InterruptedException, org.apache.activemq.artemis.api.core.ActiveMQException- Specified by:
deletein interfaceorg.apache.activemq.artemis.core.io.SequentialFile- Throws:
IOExceptionInterruptedExceptionorg.apache.activemq.artemis.api.core.ActiveMQException
-
jdbcWrite
public int jdbcWrite(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer, org.apache.activemq.artemis.core.io.IOCallback callback) -
jdbcWrite
public int jdbcWrite(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer, org.apache.activemq.artemis.core.io.IOCallback callback, boolean append) -
sendToDB
-
write
-
write
-
write
-
write
-
writeDirect
public void writeDirect(ByteBuffer bytes, boolean sync, org.apache.activemq.artemis.core.io.IOCallback callback) - Specified by:
writeDirectin interfaceorg.apache.activemq.artemis.core.io.SequentialFile
-
blockingWriteDirect
- Specified by:
blockingWriteDirectin interfaceorg.apache.activemq.artemis.core.io.SequentialFile
-
writeDirect
- Specified by:
writeDirectin interfaceorg.apache.activemq.artemis.core.io.SequentialFile- Throws:
Exception
-
read
public int read(ByteBuffer bytes, org.apache.activemq.artemis.core.io.IOCallback callback) throws SQLException - Specified by:
readin interfaceorg.apache.activemq.artemis.core.io.SequentialFile- Throws:
SQLException
-
read
- Specified by:
readin interfaceorg.apache.activemq.artemis.core.io.SequentialFile- Throws:
Exception
-
position
- Specified by:
positionin interfaceorg.apache.activemq.artemis.core.io.SequentialFile- Throws:
IOException
-
position
public long position()- Specified by:
positionin interfaceorg.apache.activemq.artemis.core.io.SequentialFile
-
close
-
close
-
getNetworkTimeoutMillis
public int getNetworkTimeoutMillis() -
sync
- Specified by:
syncin interfaceorg.apache.activemq.artemis.core.io.SequentialFile- Throws:
IOException
-
size
-
renameTo
-
cloneFile
public org.apache.activemq.artemis.core.io.SequentialFile cloneFile()- Specified by:
cloneFilein interfaceorg.apache.activemq.artemis.core.io.SequentialFile
-
copyTo
-
getId
public long getId() -
getOid
public long getOid() -
setOid
public void setOid(long oid) -
setId
public void setId(long id) -
getFilename
-
getExtension
-
setTimedBuffer
public void setTimedBuffer(org.apache.activemq.artemis.core.io.buffer.TimedBuffer buffer) - Specified by:
setTimedBufferin interfaceorg.apache.activemq.artemis.core.io.SequentialFile
-
getJavaFile
- Specified by:
getJavaFilein interfaceorg.apache.activemq.artemis.core.io.SequentialFile
-
addMetaData
-
getMetaData
-