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,
PersistenceManager persistenceManager,
DataContainer dataContainer,
TransactionTable transactionTable,
StateTransferLock stateTransferLock,
StateConsumer stateConsumer,
InternalEntryFactory entryFactory) |
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, PersistenceManager persistenceManager, DataContainer dataContainer, TransactionTable transactionTable, StateTransferLock stateTransferLock, StateConsumer stateConsumer, InternalEntryFactory entryFactory)
public boolean isStateTransferInProgress()
isStateTransferInProgress
in interface StateProvider
public void onTopologyChange(TopologyChangedEvent<?,?> tce)
public void onTopologyUpdate(CacheTopology cacheTopology, boolean isRebalance)
StateProvider
onTopologyUpdate
in interface StateProvider
public void start()
start
in interface StateProvider
public void stop()
StateProvider
stop
in interface StateProvider
public List<TransactionInfo> getTransactionsForSegments(Address destination, int requestTopologyId, Set<Integer> segments) throws InterruptedException
StateProvider
getTransactionsForSegments
in interface StateProvider
destination
- the address of the requesterInterruptedException
public void startOutboundTransfer(Address destination, int requestTopologyId, Set<Integer> segments) throws InterruptedException
StateProvider
startOutboundTransfer
in interface StateProvider
destination
- the address of the requesterInterruptedException
public void cancelOutboundTransfer(Address destination, int topologyId, Set<Integer> segments)
StateProvider
cancelOutboundTransfer
in interface StateProvider
destination
- the address of the requestersegments
- the segments that we have to cancel transfer forCopyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.