Package org.infinispan.statetransfer
Class StateTransferManagerImpl
java.lang.Object
org.infinispan.statetransfer.StateTransferManagerImpl
- All Implemented Interfaces:
StateTransferManager
@MBean(objectName="StateTransferManager",
description="Component that handles state transfer")
public class StateTransferManagerImpl
extends Object
implements StateTransferManager
StateTransferManager implementation.- Since:
- 5.2
- Author:
- anistor@redhat.com
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns 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.static ConsistentHashFactorypickConsistentHashFactory(GlobalConfiguration globalConfiguration, Configuration configuration) If no ConsistentHashFactory was explicitly configured we choose a suitable one based on cache mode.voidstart()voidstop()toString()voidWait for the local cache to receive initial state from the other members.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.statetransfer.StateTransferManager
forwardCommandIfNeeded
-
Field Details
-
cacheName
-
-
Constructor Details
-
StateTransferManagerImpl
public StateTransferManagerImpl()
-
-
Method Details
-
start
- Specified by:
startin interfaceStateTransferManager- Throws:
Exception
-
pickConsistentHashFactory
public static ConsistentHashFactory pickConsistentHashFactory(GlobalConfiguration globalConfiguration, Configuration configuration) If no ConsistentHashFactory was explicitly configured we choose a suitable one based on cache mode. -
waitForInitialStateTransferToComplete
public void waitForInitialStateTransferToComplete()Description copied from interface:StateTransferManagerWait for the local cache to receive initial state from the other members.Does nothing if
StateTransferConfiguration.awaitInitialTransfer()is disabled.- Specified by:
waitForInitialStateTransferToCompletein interfaceStateTransferManager
-
stop
public void stop()- Specified by:
stopin interfaceStateTransferManager
-
isJoinComplete
@ManagedAttribute(description="If true, the node has successfully joined the grid and is considered to hold state. If false, the join process is still in progress.", displayName="Is join completed?", dataType=TRAIT) public boolean isJoinComplete()- Specified by:
isJoinCompletein interfaceStateTransferManager
-
getRebalancingStatus
@ManagedAttribute(description="Retrieves the rebalancing status for this cache. Possible values are PENDING, SUSPENDED, IN_PROGRESS, COMPLETE", displayName="Rebalancing progress", dataType=TRAIT) public String getRebalancingStatus() throws Exception- Specified by:
getRebalancingStatusin interfaceStateTransferManager- Throws:
Exception
-
isStateTransferInProgress
@ManagedAttribute(description="Checks whether the local node is receiving state from other nodes", displayName="Is state transfer in progress?", dataType=TRAIT) public boolean isStateTransferInProgress()Description copied from interface:StateTransferManagerChecks if an inbound state transfer is in progress.- Specified by:
isStateTransferInProgressin interfaceStateTransferManager
-
getInflightSegmentTransferCount
@ManagedAttribute(description="The number of in-flight segments the local node requested from other nodes", displayName="In-flight requested segments", dataType=MEASUREMENT) public long getInflightSegmentTransferCount()Description copied from interface:StateTransferManagerReturns the number of requested segments to be transferred.- Specified by:
getInflightSegmentTransferCountin interfaceStateTransferManager
-
getInflightTransactionalSegmentCount
@ManagedAttribute(description="The number of in-flight transactional segments the local node requested from other nodes", displayName="In-flight requested transactional segments", dataType=MEASUREMENT) public long getInflightTransactionalSegmentCount()Description copied from interface:StateTransferManagerReturns the number of transactional segments requested which are still in-flight.- Specified by:
getInflightTransactionalSegmentCountin interfaceStateTransferManager
-
getStateConsumer
- Specified by:
getStateConsumerin interfaceStateTransferManager
-
getStateProvider
- Specified by:
getStateProviderin interfaceStateTransferManager
-
toString
-