Package org.apache.activemq.store.kahadb
Class TempMessageDatabase
java.lang.Object
org.apache.activemq.store.kahadb.TempMessageDatabase
- Direct Known Subclasses:
TempKahaDBStore
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprotected BTreeIndex<String,org.apache.activemq.store.kahadb.TempMessageDatabase.StoredDestination> protected Fileprotected final Objectprotected final LinkedHashMap<org.apache.activemq.command.TransactionId,ArrayList<org.apache.activemq.store.kahadb.TempMessageDatabase.Operation>> static final intprotected AtomicBooleanprotected PageFileprotected final LinkedHashMap<org.apache.activemq.command.TransactionId,ArrayList<org.apache.activemq.store.kahadb.TempMessageDatabase.Operation>> protected AtomicBoolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intprotected org.apache.activemq.store.kahadb.TempMessageDatabase.StoredDestinationgetStoredDestination(KahaDestination destination, Transaction tx) voidload()voidopen()voidprocess(KahaRemoveDestinationCommand command) voidprocess(KahaSubscriptionCommand command) voidprocessAdd(KahaAddMessageCommand command, org.apache.activemq.command.TransactionId txid, ByteSequence data) voidprocessCommit(org.apache.activemq.command.TransactionId key) voidprocessPrepare(org.apache.activemq.command.TransactionId key) voidprocessRemove(KahaRemoveMessageCommand command, org.apache.activemq.command.TransactionId txid) voidprocessRollback(org.apache.activemq.command.TransactionId key) voidsetDirectory(File directory) voidsetEnableIndexWriteAsync(boolean enableIndexWriteAsync) voidsetIndexWriteBatchSize(int setIndexWriteBatchSize) voidstart()voidstop()voidunload()
-
Field Details
-
CLOSED_STATE
public static final int CLOSED_STATE- See Also:
-
OPEN_STATE
public static final int OPEN_STATE- See Also:
-
destinations
protected BTreeIndex<String,org.apache.activemq.store.kahadb.TempMessageDatabase.StoredDestination> destinations -
pageFile
-
directory
-
started
-
opened
-
indexMutex
-
inflightTransactions
protected final LinkedHashMap<org.apache.activemq.command.TransactionId,ArrayList<org.apache.activemq.store.kahadb.TempMessageDatabase.Operation>> inflightTransactions -
preparedTransactions
protected final LinkedHashMap<org.apache.activemq.command.TransactionId,ArrayList<org.apache.activemq.store.kahadb.TempMessageDatabase.Operation>> preparedTransactions
-
-
Constructor Details
-
TempMessageDatabase
public TempMessageDatabase()
-
-
Method Details
-
start
- Throws:
Exception
-
stop
- Throws:
Exception
-
open
- Throws:
IOException
-
load
- Throws:
IOException
-
close
- Throws:
IOExceptionInterruptedException
-
unload
- Throws:
IOExceptionInterruptedException
-
processAdd
public void processAdd(KahaAddMessageCommand command, org.apache.activemq.command.TransactionId txid, ByteSequence data) throws IOException - Throws:
IOException
-
processRemove
public void processRemove(KahaRemoveMessageCommand command, org.apache.activemq.command.TransactionId txid) throws IOException - Throws:
IOException
-
process
- Throws:
IOException
-
process
- Throws:
IOException
-
processCommit
- Throws:
IOException
-
processPrepare
public void processPrepare(org.apache.activemq.command.TransactionId key) -
processRollback
public void processRollback(org.apache.activemq.command.TransactionId key) -
getJournalFilesBeingReplicated
-
getStoredDestination
protected org.apache.activemq.store.kahadb.TempMessageDatabase.StoredDestination getStoredDestination(KahaDestination destination, Transaction tx) throws IOException - Throws:
IOException
-
getDirectory
-
setDirectory
-
setIndexWriteBatchSize
public void setIndexWriteBatchSize(int setIndexWriteBatchSize) -
getIndexWriteBatchSize
public int getIndexWriteBatchSize() -
setEnableIndexWriteAsync
public void setEnableIndexWriteAsync(boolean enableIndexWriteAsync) -
getPageFile
-