public class StateProviderImpl extends Object implements StateProvider
StateProvider implementation.| Constructor and Description |
|---|
StateProviderImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelOutboundTransfer(Address destination,
int topologyId,
Set<Integer> segments)
Cancel sending of cache entries that belong to the given set of segments.
|
List<TransactionInfo> |
getTransactionsForSegments(Address destination,
int requestTopologyId,
Set<Integer> segments)
Gets the list of transactions that affect keys from the given segments.
|
void |
init(Cache cache,
ExecutorService executorService,
Configuration configuration,
RpcManager rpcManager,
CommandsFactory commandsFactory,
CacheNotifier cacheNotifier,
CacheLoaderManager cacheLoaderManager,
DataContainer dataContainer,
TransactionTable transactionTable,
StateTransferLock stateTransferLock,
StateConsumer stateConsumer) |
boolean |
isStateTransferInProgress() |
void |
onTopologyChange(TopologyChangedEvent<?,?> tce) |
void |
onTopologyUpdate(CacheTopology cacheTopology,
boolean isRebalance)
Receive notification of topology changes.
|
void |
start() |
void |
startOutboundTransfer(Address destination,
int requestTopologyId,
Set<Integer> segments)
Start to send cache entries that belong to the given set of segments.
|
void |
stop()
Cancels all outbound state transfers.
|
public void init(Cache cache, ExecutorService executorService, Configuration configuration, RpcManager rpcManager, CommandsFactory commandsFactory, CacheNotifier cacheNotifier, CacheLoaderManager cacheLoaderManager, DataContainer dataContainer, TransactionTable transactionTable, StateTransferLock stateTransferLock, StateConsumer stateConsumer)
public boolean isStateTransferInProgress()
isStateTransferInProgress in interface StateProviderpublic void onTopologyChange(TopologyChangedEvent<?,?> tce)
public void onTopologyUpdate(CacheTopology cacheTopology, boolean isRebalance)
StateProvideronTopologyUpdate in interface StateProviderpublic void start()
start in interface StateProviderpublic void stop()
StateProviderstop in interface StateProviderpublic List<TransactionInfo> getTransactionsForSegments(Address destination, int requestTopologyId, Set<Integer> segments) throws InterruptedException
StateProvidergetTransactionsForSegments in interface StateProviderdestination - the address of the requesterInterruptedExceptionpublic void startOutboundTransfer(Address destination, int requestTopologyId, Set<Integer> segments) throws InterruptedException
StateProviderstartOutboundTransfer in interface StateProviderdestination - the address of the requesterInterruptedExceptionpublic void cancelOutboundTransfer(Address destination, int topologyId, Set<Integer> segments)
StateProvidercancelOutboundTransfer in interface StateProviderdestination - the address of the requestersegments - the segments that we have to cancel transfer forCopyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.