Package org.infinispan.scattered.impl
Class ScatteredStateProviderImpl
java.lang.Object
org.infinispan.statetransfer.StateProviderImpl
org.infinispan.scattered.impl.ScatteredStateProviderImpl
- All Implemented Interfaces:
ScatteredStateProvider,StateProvider
- Author:
- Radim Vansa <rvansa@redhat.com>
-
Field Summary
FieldsFields inherited from class org.infinispan.statetransfer.StateProviderImpl
cacheName, chunkSize, commandsFactory, dataContainer, distributionManager, entryFactory, keyPartitioner, localPublisherManager, persistenceManager, rpcManager, stateTransferLock, timeout, transactionOriginatorChecker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfirmRevokedSegments(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.onTopologyUpdate(CacheTopology cacheTopology, boolean isRebalance) Receive notification of topology changes.voidstart()voidstartKeysTransfer(org.infinispan.commons.util.IntSet segments, Address origin) Start transferring keys and remote metadata for the given segments to the origin.Methods inherited from class org.infinispan.statetransfer.StateProviderImpl
addTransfer, cancelOutboundTransfer, getClusterListenersToInstall, getTransactionsForSegments, isStateTransferInProgress, logError, onTaskCompletion, readEntries, startOutboundTransfer, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.statetransfer.StateProvider
cancelOutboundTransfer, getClusterListenersToInstall, getTransactionsForSegments, isStateTransferInProgress, startOutboundTransfer, stop
-
Field Details
-
svm
-
-
Constructor Details
-
ScatteredStateProviderImpl
public ScatteredStateProviderImpl()
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceStateProvider- Overrides:
startin classStateProviderImpl
-
onTopologyUpdate
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
Description copied from interface:ScatteredStateProviderStart transferring keys and remote metadata for the given segments to the origin.- Specified by:
startKeysTransferin interfaceScatteredStateProvider
-
confirmRevokedSegments
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
-