public class StateTransferManagerImpl extends Object implements StateTransferManager
StateTransferManager implementation.| Constructor and Description |
|---|
StateTransferManagerImpl() |
| Modifier and Type | Method and 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.
|
CacheTopology |
getCacheTopology() |
int |
getFirstTopologyAsMember() |
String |
getRebalancingStatus() |
void |
init(StateConsumer stateConsumer,
StateProvider stateProvider,
Cache cache,
CacheNotifier cacheNotifier,
Configuration configuration,
GlobalConfiguration globalConfiguration,
RpcManager rpcManager,
KeyPartitioner keyPartitioner,
LocalTopologyManager localTopologyManager,
PartitionHandlingManager partitionHandlingManager) |
boolean |
isJoinComplete() |
boolean |
isStateTransferInProgress()
Checks if an inbound state transfer is in progress.
|
boolean |
isStateTransferInProgressForKey(Object key)
Checks if an inbound state transfer is in progress for a given key.
|
void |
notifyEndOfRebalance(int topologyId,
int rebalanceId) |
boolean |
ownsData() |
void |
start() |
void |
stop() |
String |
toString() |
void |
waitForInitialStateTransferToComplete() |
public void init(StateConsumer stateConsumer, StateProvider stateProvider, Cache cache, CacheNotifier cacheNotifier, Configuration configuration, GlobalConfiguration globalConfiguration, RpcManager rpcManager, KeyPartitioner keyPartitioner, LocalTopologyManager localTopologyManager, PartitionHandlingManager partitionHandlingManager)
public void start()
throws Exception
start in interface StateTransferManagerExceptionpublic void waitForInitialStateTransferToComplete()
throws Exception
Exceptionpublic void stop()
stop in interface StateTransferManagerpublic boolean isJoinComplete()
isJoinComplete in interface StateTransferManagerpublic String getRebalancingStatus() throws Exception
getRebalancingStatus in interface StateTransferManagerExceptionpublic boolean isStateTransferInProgress()
StateTransferManagerisStateTransferInProgress in interface StateTransferManagerpublic boolean isStateTransferInProgressForKey(Object key)
StateTransferManagerisStateTransferInProgressForKey in interface StateTransferManagerpublic CacheTopology getCacheTopology()
getCacheTopology in interface StateTransferManagerpublic Map<Address,Response> forwardCommandIfNeeded(TopologyAffectedCommand command, Set<Object> affectedKeys, Address origin)
StateTransferManagerforwardCommandIfNeeded in interface StateTransferManagerpublic void notifyEndOfRebalance(int topologyId,
int rebalanceId)
notifyEndOfRebalance in interface StateTransferManagerpublic boolean ownsData()
ownsData in interface StateTransferManagerpublic int getFirstTopologyAsMember()
getFirstTopologyAsMember in interface StateTransferManagerCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.