Package org.infinispan.statetransfer
Interface StateTransferManager
- All Known Implementing Classes:
StateTransferManagerImpl
public interface StateTransferManager
A 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
Modifier and TypeMethodDescriptionforwardCommandIfNeeded(TopologyAffectedCommand command, Set<Object> affectedKeys, Address origin) Deprecated.Since 14.0.longReturns the number of requested segments to be transferred.longReturns the number of transactional segments requested which are still in-flight.booleanbooleanChecks if an inbound state transfer is in progress.default booleanDeprecated.since 10.0; to be removed in next major versionvoidstart()voidstop()voidWait for the local cache to receive initial state from the other members.
-
Method Details
-
isJoinComplete
boolean isJoinComplete() -
isStateTransferInProgress
boolean isStateTransferInProgress()Checks if an inbound state transfer is in progress. -
getInflightSegmentTransferCount
long getInflightSegmentTransferCount()Returns the number of requested segments to be transferred. -
getInflightTransactionalSegmentCount
long getInflightTransactionalSegmentCount()Returns the number of transactional segments requested which are still in-flight. -
isStateTransferInProgressForKey
Deprecated.since 10.0; to be removed in next major versionChecks if an inbound state transfer is in progress for a given key. -
start
- Throws:
Exception
-
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
@Deprecated default Map<Address,Response> forwardCommandIfNeeded(TopologyAffectedCommand command, Set<Object> affectedKeys, Address origin) Deprecated.Since 14.0. To be removed without replacement.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. -
getRebalancingStatus
- Throws:
Exception
-
getStateConsumer
StateConsumer getStateConsumer() -
getStateProvider
StateProvider getStateProvider()
-