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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCompositeStoreTransactionprotected DurableSubscriberStoreImplcreateDurableSubscriberStore(StoreContext ctx, String path) protected LogManagerFactoryprotected NonPersistentStorecreateNonPersistentStore(StoreContext ctx, String queueName, String swapPath, long swapMaxLength) protected StableStorecreateStableStore(StoreContext ctx, String path, int initialSize) protected SwapFileFactorycreateTxLogFile(String filename, String mode) protected voidvoidDurableSubscriberStoreNonPersistentStoregetNonPersistentStore(String queueName) PersistentStoregetPersistentStore(String queueName) voidremovePrepareLogRecord(PrepareLogRecord record) protected voidshutdown()Shutdown the swiftlet.voidstartStore(boolean withRecovery) protected voidstartup(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.SwiftletExceptionSwiftletException
-