Package org.infinispan.statetransfer
Interface StateTransferManager
-
- All Known Implementing Classes:
StateTransferManagerImpl
public interface StateTransferManagerA component that manages the state transfer when the topology of the cluster changes.- Since:
- 5.1
- Author:
- Dan Berindei <dan@infinispan.org>, Mircea Markus, anistor@redhat.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description Map<Address,Response>forwardCommandIfNeeded(TopologyAffectedCommand command, Set<Object> affectedKeys, Address origin)If there is an state transfer happening at the moment, this method forwards the supplied command to the nodes that are new owners of the data, in order to assure consistency.StringgetRebalancingStatus()StateConsumergetStateConsumer()StateProvidergetStateProvider()booleanisJoinComplete()booleanisStateTransferInProgress()Checks if an inbound state transfer is in progress.default booleanisStateTransferInProgressForKey(Object key)Deprecated.since 10.0; to be removed in next major versionvoidstart()voidstop()voidwaitForInitialStateTransferToComplete()Wait for the local cache to receive initial state from the other members.
-
-
-
Method Detail
-
isJoinComplete
boolean isJoinComplete()
-
isStateTransferInProgress
boolean isStateTransferInProgress()
Checks if an inbound state transfer is in progress.
-
isStateTransferInProgressForKey
@Deprecated default boolean isStateTransferInProgressForKey(Object key)
Deprecated.since 10.0; to be removed in next major versionChecks if an inbound state transfer is in progress for a given key.
-
waitForInitialStateTransferToComplete
void waitForInitialStateTransferToComplete()
Wait for the local cache to receive initial state from the other members.Does nothing if
StateTransferConfiguration.awaitInitialTransfer()is disabled.
-
stop
void stop()
-
forwardCommandIfNeeded
Map<Address,Response> forwardCommandIfNeeded(TopologyAffectedCommand command, Set<Object> affectedKeys, Address origin)
If there is an state transfer happening at the moment, this method forwards the supplied command to the nodes that are new owners of the data, in order to assure consistency.
-
getStateConsumer
StateConsumer getStateConsumer()
-
getStateProvider
StateProvider getStateProvider()
-
-