Package org.infinispan.scattered.impl
Class ScatteredStateProviderImpl
- java.lang.Object
-
- org.infinispan.statetransfer.StateProviderImpl
-
- org.infinispan.scattered.impl.ScatteredStateProviderImpl
-
- All Implemented Interfaces:
ScatteredStateProvider,StateProvider
public class ScatteredStateProviderImpl extends StateProviderImpl implements ScatteredStateProvider
- Author:
- Radim Vansa <rvansa@redhat.com>
-
-
Field Summary
Fields Modifier and Type Field Description protected ScatteredVersionManagersvm-
Fields inherited from class org.infinispan.statetransfer.StateProviderImpl
cacheName, chunkSize, commandsFactory, dataContainer, distributionManager, entryFactory, executorService, keyPartitioner, persistenceManager, rpcManager, stateTransferLock, timeout
-
-
Constructor Summary
Constructors Constructor Description ScatteredStateProviderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Void>confirmRevokedSegments(int topologyId)Confirm that this node has received cache topology with given topologyId and that it has moved all the segments it does not own according to consistent hash to theScatteredVersionManager.SegmentState.NOT_OWNEDstate.CompletableFuture<Void>onTopologyUpdate(CacheTopology cacheTopology, boolean isRebalance)Receive notification of topology changes.voidstart()voidstartKeysTransfer(org.infinispan.commons.util.IntSet segments, Address origin)-
Methods inherited from class org.infinispan.statetransfer.StateProviderImpl
addTransfer, cancelOutboundTransfer, getClusterListenersToInstall, getTransactionsForSegments, isStateTransferInProgress, onTaskCompletion, startOutboundTransfer, stop
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.statetransfer.StateProvider
cancelOutboundTransfer, getClusterListenersToInstall, getTransactionsForSegments, isStateTransferInProgress, startOutboundTransfer, stop
-
-
-
-
Field Detail
-
svm
protected ScatteredVersionManager svm
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceStateProvider- Overrides:
startin classStateProviderImpl
-
onTopologyUpdate
public CompletableFuture<Void> onTopologyUpdate(CacheTopology cacheTopology, boolean isRebalance)
Description copied from interface:StateProviderReceive notification of topology changes. Cancels all outbound transfers to destinations that are no longer members. The other outbound transfers remain unaffected.- Specified by:
onTopologyUpdatein interfaceStateProvider- Overrides:
onTopologyUpdatein classStateProviderImpl
-
startKeysTransfer
public void startKeysTransfer(org.infinispan.commons.util.IntSet segments, Address origin)- Specified by:
startKeysTransferin interfaceScatteredStateProvider
-
confirmRevokedSegments
public CompletableFuture<Void> confirmRevokedSegments(int topologyId)
Description copied from interface:ScatteredStateProviderConfirm that this node has received cache topology with given topologyId and that it has moved all the segments it does not own according to consistent hash to theScatteredVersionManager.SegmentState.NOT_OWNEDstate.- Specified by:
confirmRevokedSegmentsin interfaceScatteredStateProvider
-
-