- Type Parameters:
K- key type
V- value type
- All Implemented Interfaces:
public class SFSToSIFSStore<K,
extends DelegatingNonBlockingStore<K, V>
Store that is used to migrate data from ISPN 12.0 SingleFileStore to an ISPN 13.0 SoftIndexFileStore. This store works identically to a SoftIndexFileStore except that it will first attempt to copy all the entries from a SingleFileStore with the same location as the configured
SoftIndexFileStoreConfiguration.dataLocation(). Note that both a segmented and non segmented SingleFileStore is attempted since it could have been either and SoftIndexFileStore only supports segmentation now.
Nested Class Summary
Nested classes/interfaces inherited from interface org.infinispan.persistence.spi.NonBlockingStore
Fields inherited from interface org.infinispan.persistence.spi.NonBlockingStore
Method SummaryModifier and TypeMethodDescription
delegate()The first method to invoke so that the store can be configured and additional steps, such as connecting through a socket or opening file descriptors, are performed.
Methods inherited from class org.infinispan.persistence.support.DelegatingNonBlockingStore
addSegments, approximateSize, batch, characteristics, clear, commit, containsKey, delete, ignoreCommandWithFlags, isAvailable, load, prepareWithModifications, publishEntries, publishKeys, purgeExpired, removeSegments, rollback, size, stop, write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.infinispan.persistence.spi.NonBlockingStore
- Specified by:
startpublic CompletionStage<Void> start
(InitializationContext ctx)Description copied from interface:
NonBlockingStoreThe first method to invoke so that the store can be configured and additional steps, such as connecting through a socket or opening file descriptors, are performed.
InitializationContextcontains many helpful objects, including the configuration of the cache and store, concurrency utilities such as
BlockingManageror an executor reserved for non-blocking operations only
This method is guaranteed not to be invoked concurrently with other operations. This means other methods are not invoked on this store until after the returned Stage completes.
It is expected that an implementation should be able to "restart" by invoking
starta second time if
NonBlockingStore.stop()has been invoked and allowed for its stage to complete.
- Specified by:
ctx- initialization context used to initialize this store.
- a stage that, when complete, indicates that this store has started successfully.