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 ScatteredVersionManager
svm
-
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_OWNED
state.CompletableFuture<Void>
onTopologyUpdate(CacheTopology cacheTopology, boolean isRebalance)
Receive notification of topology changes.void
start()
void
startKeysTransfer(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:
start
in interfaceStateProvider
- Overrides:
start
in classStateProviderImpl
-
onTopologyUpdate
public CompletableFuture<Void> onTopologyUpdate(CacheTopology cacheTopology, boolean isRebalance)
Description copied from interface:StateProvider
Receive notification of topology changes. Cancels all outbound transfers to destinations that are no longer members. The other outbound transfers remain unaffected.- Specified by:
onTopologyUpdate
in interfaceStateProvider
- Overrides:
onTopologyUpdate
in classStateProviderImpl
-
startKeysTransfer
public void startKeysTransfer(org.infinispan.commons.util.IntSet segments, Address origin)
- Specified by:
startKeysTransfer
in interfaceScatteredStateProvider
-
confirmRevokedSegments
public CompletableFuture<Void> confirmRevokedSegments(int topologyId)
Description copied from interface:ScatteredStateProvider
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_OWNED
state.- Specified by:
confirmRevokedSegments
in interfaceScatteredStateProvider
-
-