Class StoreSwiftletImpl
java.lang.Object
com.swiftmq.swiftlet.Swiftlet
com.swiftmq.swiftlet.store.StoreSwiftlet
com.swiftmq.impl.store.standard.StoreSwiftletImpl
public class StoreSwiftletImpl
extends com.swiftmq.swiftlet.store.StoreSwiftlet
-
Field Summary
Fields inherited from class com.swiftmq.swiftlet.Swiftlet
STATE_ACTIVE, STATE_INACTIVE, STATE_STANDBY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.swiftmq.swiftlet.store.CompositeStoreTransactionprotected DurableSubscriberStoreImplcreateDurableSubscriberStore(StoreContext ctx, String path) protected LogManagerFactoryprotected com.swiftmq.swiftlet.store.NonPersistentStorecreateNonPersistentStore(StoreContext ctx, String queueName, String swapPath, long swapMaxLength) protected StableStorecreateStableStore(StoreContext ctx, String path, int initialSize) protected SwapFileFactorycreateTxLogFile(String filename, String mode) protected voidvoidcom.swiftmq.swiftlet.store.DurableSubscriberStorecom.swiftmq.swiftlet.store.NonPersistentStoregetNonPersistentStore(String queueName) com.swiftmq.swiftlet.store.PersistentStoregetPersistentStore(String queueName) voidremovePrepareLogRecord(com.swiftmq.swiftlet.store.PrepareLogRecord record) protected voidshutdown()Shutdown the swiftlet.voidstartStore(boolean withRecovery) protected voidstartup(com.swiftmq.mgmt.Configuration config) voidMethods inherited from class com.swiftmq.swiftlet.Swiftlet
getName, getStartupTime, getState, isSnapshotAvailable, resume, setStartupTime, standby
-
Constructor Details
-
StoreSwiftletImpl
public StoreSwiftletImpl()
-
-
Method Details
-
getPersistentStore
public com.swiftmq.swiftlet.store.PersistentStore getPersistentStore(String queueName) throws com.swiftmq.swiftlet.store.StoreException - Specified by:
getPersistentStorein classcom.swiftmq.swiftlet.store.StoreSwiftlet- Throws:
com.swiftmq.swiftlet.store.StoreException
-
getNonPersistentStore
public com.swiftmq.swiftlet.store.NonPersistentStore getNonPersistentStore(String queueName) throws com.swiftmq.swiftlet.store.StoreException - Specified by:
getNonPersistentStorein classcom.swiftmq.swiftlet.store.StoreSwiftlet- Throws:
com.swiftmq.swiftlet.store.StoreException
-
getDurableSubscriberStore
public com.swiftmq.swiftlet.store.DurableSubscriberStore getDurableSubscriberStore() throws com.swiftmq.swiftlet.store.StoreException- Specified by:
getDurableSubscriberStorein classcom.swiftmq.swiftlet.store.StoreSwiftlet- Throws:
com.swiftmq.swiftlet.store.StoreException
-
getPrepareLogRecords
- Specified by:
getPrepareLogRecordsin classcom.swiftmq.swiftlet.store.StoreSwiftlet- Throws:
com.swiftmq.swiftlet.store.StoreException
-
removePrepareLogRecord
public void removePrepareLogRecord(com.swiftmq.swiftlet.store.PrepareLogRecord record) throws com.swiftmq.swiftlet.store.StoreException - Specified by:
removePrepareLogRecordin classcom.swiftmq.swiftlet.store.StoreSwiftlet- Throws:
com.swiftmq.swiftlet.store.StoreException
-
createCompositeStoreTransaction
public com.swiftmq.swiftlet.store.CompositeStoreTransaction createCompositeStoreTransaction()- Specified by:
createCompositeStoreTransactionin classcom.swiftmq.swiftlet.store.StoreSwiftlet
-
flushCache
public void flushCache() -
deleteSwaps
protected void deleteSwaps() -
createNonPersistentStore
protected com.swiftmq.swiftlet.store.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 com.swiftmq.swiftlet.store.StoreException - Throws:
com.swiftmq.swiftlet.store.StoreException
-
createTxLogFile
-
createSwapFileFactory
-
createLogManagerFactory
-
startStore
-
stopStore
-
startup
protected void startup(com.swiftmq.mgmt.Configuration config) throws com.swiftmq.swiftlet.SwiftletException - Specified by:
startupin classcom.swiftmq.swiftlet.Swiftlet- Throws:
com.swiftmq.swiftlet.SwiftletException
-
shutdown
protected void shutdown() throws com.swiftmq.swiftlet.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.- Specified by:
shutdownin classcom.swiftmq.swiftlet.Swiftlet- Throws:
com.swiftmq.swiftlet.SwiftletException
-