public class TempMessageDatabase extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TempMessageDatabase.MessageKeysMarshaller |
protected class |
TempMessageDatabase.StoredDestinationMarshaller |
| Modifier and Type | Field and Description |
|---|---|
static int |
CLOSED_STATE |
protected BTreeIndex<String,org.apache.activemq.store.kahadb.TempMessageDatabase.StoredDestination> |
destinations |
protected File |
directory |
protected Object |
indexMutex |
protected LinkedHashMap<org.apache.activemq.command.TransactionId,ArrayList<org.apache.activemq.store.kahadb.TempMessageDatabase.Operation>> |
inflightTransactions |
static int |
OPEN_STATE |
protected AtomicBoolean |
opened |
protected PageFile |
pageFile |
protected LinkedHashMap<org.apache.activemq.command.TransactionId,ArrayList<org.apache.activemq.store.kahadb.TempMessageDatabase.Operation>> |
preparedTransactions |
protected AtomicBoolean |
started |
| Constructor and Description |
|---|
TempMessageDatabase() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
File |
getDirectory() |
int |
getIndexWriteBatchSize() |
HashSet<Integer> |
getJournalFilesBeingReplicated() |
PageFile |
getPageFile() |
protected org.apache.activemq.store.kahadb.TempMessageDatabase.StoredDestination |
getStoredDestination(KahaDestination destination,
Transaction tx) |
void |
load() |
void |
open() |
void |
process(KahaRemoveDestinationCommand command) |
void |
process(KahaSubscriptionCommand command) |
void |
processAdd(KahaAddMessageCommand command,
org.apache.activemq.command.TransactionId txid,
ByteSequence data) |
void |
processCommit(org.apache.activemq.command.TransactionId key) |
void |
processPrepare(org.apache.activemq.command.TransactionId key) |
void |
processRemove(KahaRemoveMessageCommand command,
org.apache.activemq.command.TransactionId txid) |
void |
processRollback(org.apache.activemq.command.TransactionId key) |
void |
setDirectory(File directory) |
void |
setEnableIndexWriteAsync(boolean enableIndexWriteAsync) |
void |
setIndexWriteBatchSize(int setIndexWriteBatchSize) |
void |
start() |
void |
stop() |
void |
unload() |
public static final int CLOSED_STATE
public static final int OPEN_STATE
protected BTreeIndex<String,org.apache.activemq.store.kahadb.TempMessageDatabase.StoredDestination> destinations
protected AtomicBoolean started
protected AtomicBoolean opened
protected final Object indexMutex
protected final LinkedHashMap<org.apache.activemq.command.TransactionId,ArrayList<org.apache.activemq.store.kahadb.TempMessageDatabase.Operation>> inflightTransactions
protected final LinkedHashMap<org.apache.activemq.command.TransactionId,ArrayList<org.apache.activemq.store.kahadb.TempMessageDatabase.Operation>> preparedTransactions
public TempMessageDatabase()
public void open() throws IOException
IOExceptionpublic void load() throws IOException
IOExceptionpublic void close() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void unload() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void processAdd(KahaAddMessageCommand command, org.apache.activemq.command.TransactionId txid, ByteSequence data) throws IOException
IOExceptionpublic void processRemove(KahaRemoveMessageCommand command, org.apache.activemq.command.TransactionId txid) throws IOException
IOExceptionpublic void process(KahaRemoveDestinationCommand command) throws IOException
IOExceptionpublic void process(KahaSubscriptionCommand command) throws IOException
IOExceptionpublic void processCommit(org.apache.activemq.command.TransactionId key) throws IOException
IOExceptionpublic void processPrepare(org.apache.activemq.command.TransactionId key)
public void processRollback(org.apache.activemq.command.TransactionId key)
public HashSet<Integer> getJournalFilesBeingReplicated()
protected org.apache.activemq.store.kahadb.TempMessageDatabase.StoredDestination getStoredDestination(KahaDestination destination, Transaction tx) throws IOException
IOExceptionpublic File getDirectory()
public void setDirectory(File directory)
public void setIndexWriteBatchSize(int setIndexWriteBatchSize)
public int getIndexWriteBatchSize()
public void setEnableIndexWriteAsync(boolean enableIndexWriteAsync)
public PageFile getPageFile()
Copyright © 2005–2017 FuseSource, Corp.. All rights reserved.