Package org.infinispan.statetransfer
Class StateTransferManagerImpl
- java.lang.Object
-
- org.infinispan.statetransfer.StateTransferManagerImpl
-
- All Implemented Interfaces:
StateTransferManager
public class StateTransferManagerImpl extends java.lang.Object implements StateTransferManager
StateTransferManagerimplementation.- Since:
- 5.2
- Author:
- anistor@redhat.com
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringcacheName
-
Constructor Summary
Constructors Constructor Description StateTransferManagerImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<Address,Response>forwardCommandIfNeeded(org.infinispan.commands.TopologyAffectedCommand command, java.util.Set<java.lang.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.java.lang.StringgetRebalancingStatus()StateConsumergetStateConsumer()StateProvidergetStateProvider()booleanisJoinComplete()booleanisStateTransferInProgress()Checks 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()java.lang.StringtoString()voidwaitForInitialStateTransferToComplete()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.infinispan.statetransfer.StateTransferManager
isStateTransferInProgressForKey
-
-
-
-
Method Detail
-
start
public void start() throws java.lang.Exception- Specified by:
startin interfaceStateTransferManager- Throws:
java.lang.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()
- Specified by:
waitForInitialStateTransferToCompletein interfaceStateTransferManager
-
stop
public void stop()
- Specified by:
stopin interfaceStateTransferManager
-
isJoinComplete
public boolean isJoinComplete()
- Specified by:
isJoinCompletein interfaceStateTransferManager
-
getRebalancingStatus
public java.lang.String getRebalancingStatus() throws java.lang.Exception- Specified by:
getRebalancingStatusin interfaceStateTransferManager- Throws:
java.lang.Exception
-
isStateTransferInProgress
public boolean isStateTransferInProgress()
Description copied from interface:StateTransferManagerChecks if an inbound state transfer is in progress.- Specified by:
isStateTransferInProgressin interfaceStateTransferManager
-
forwardCommandIfNeeded
public java.util.Map<Address,Response> forwardCommandIfNeeded(org.infinispan.commands.TopologyAffectedCommand command, java.util.Set<java.lang.Object> affectedKeys, Address origin)
Description copied from interface:StateTransferManagerIf 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.- Specified by:
forwardCommandIfNeededin interfaceStateTransferManager
-
getStateConsumer
public StateConsumer getStateConsumer()
- Specified by:
getStateConsumerin interfaceStateTransferManager
-
getStateProvider
public StateProvider getStateProvider()
- Specified by:
getStateProviderin interfaceStateTransferManager
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-