Package com.swiftmq.impl.store.standard
Class StoreSwiftletImpl
java.lang.Object
StoreSwiftlet
com.swiftmq.impl.store.standard.StoreSwiftletImpl
public class StoreSwiftletImpl
extends StoreSwiftlet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCompositeStoreTransaction
protected DurableSubscriberStoreImpl
createDurableSubscriberStore
(StoreContext ctx, String path) protected LogManagerFactory
protected NonPersistentStore
createNonPersistentStore
(StoreContext ctx, String queueName, String swapPath, long swapMaxLength) protected StableStore
createStableStore
(StoreContext ctx, String path, int initialSize) protected SwapFileFactory
createTxLogFile
(String filename, String mode) protected void
void
DurableSubscriberStore
NonPersistentStore
getNonPersistentStore
(String queueName) PersistentStore
getPersistentStore
(String queueName) void
removePrepareLogRecord
(PrepareLogRecord record) protected void
shutdown()
Shutdown the swiftlet.void
startStore
(boolean withRecovery) protected void
startup
(Configuration config) void
-
Constructor Details
-
StoreSwiftletImpl
public StoreSwiftletImpl()
-
-
Method Details
-
getPersistentStore
- Throws:
StoreException
-
getNonPersistentStore
- Throws:
StoreException
-
getDurableSubscriberStore
public DurableSubscriberStore getDurableSubscriberStore() throws StoreException- Throws:
StoreException
-
getPrepareLogRecords
- Throws:
StoreException
-
removePrepareLogRecord
public void removePrepareLogRecord(PrepareLogRecord record) throws StoreException - Throws:
StoreException
-
createCompositeStoreTransaction
public CompositeStoreTransaction createCompositeStoreTransaction() -
flushCache
public void flushCache() -
deleteSwaps
protected void deleteSwaps() -
createNonPersistentStore
protected NonPersistentStore createNonPersistentStore(StoreContext ctx, String queueName, String swapPath, long swapMaxLength) -
createStableStore
protected StableStore createStableStore(StoreContext ctx, String path, int initialSize) throws Exception - Throws:
Exception
-
createDurableSubscriberStore
protected DurableSubscriberStoreImpl createDurableSubscriberStore(StoreContext ctx, String path) throws StoreException - Throws:
StoreException
-
createTxLogFile
- Throws:
Exception
-
createSwapFileFactory
-
createLogManagerFactory
-
startStore
- Throws:
Exception
-
stopStore
- Throws:
Exception
-
startup
protected void startup(Configuration config) throws SwiftletException - Throws:
SwiftletException
-
shutdown
protected void shutdown() throws SwiftletExceptionShutdown the swiftlet. Check if all shutdown conditions are met. Do shutdown work (i. e. stop working thread, close resources). If any condition prevends from shutdown fire a SwiftletException.- Throws:
com.swiftmq.swiftlet.SwiftletException
SwiftletException
-