public class CacheAffinitySharedManager<K,V> extends GridCacheSharedManagerAdapter<K,V>
cctx, diagnosticLog, log| Constructor and Description |
|---|
CacheAffinitySharedManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDhtAssignmentFetchFuture(GridDhtAssignmentFetchFuture fut) |
void |
dumpDebugInfo() |
IgniteInternalFuture<Map<Integer,Map<Integer,List<UUID>>>> |
initAffinityOnNodeLeft(GridDhtPartitionsExchangeFuture fut) |
void |
initStartedCaches(boolean crd,
GridDhtPartitionsExchangeFuture fut,
Collection<DynamicCacheDescriptor> descs)
Initialized affinity for cache received from node joining on this exchange.
|
void |
onCacheChangeRequest(GridDhtPartitionsExchangeFuture fut,
boolean crd,
ExchangeActions exchActions)
Called on exchange initiated for cache start/stop request.
|
void |
onChangeAffinityMessage(GridDhtPartitionsExchangeFuture exchFut,
boolean crd,
CacheAffinityChangeMessage msg)
Called on exchange initiated by
CacheAffinityChangeMessage which sent after rebalance finished. |
void |
onClientEvent(GridDhtPartitionsExchangeFuture fut,
boolean crd)
Called on exchange initiated by client node join/fail.
|
void |
onExchangeChangeAffinityMessage(GridDhtPartitionsExchangeFuture exchFut,
boolean crd,
CacheAffinityChangeMessage msg)
Called when received
CacheAffinityChangeMessage which should complete exchange. |
void |
onServerJoin(GridDhtPartitionsExchangeFuture fut,
boolean crd)
Called on exchange initiated by server node join.
|
boolean |
onServerLeft(GridDhtPartitionsExchangeFuture fut)
Called on exchange initiated by server node leave.
|
void |
removeAllCacheInfo() |
void |
removeDhtAssignmentFetchFuture(GridDhtAssignmentFetchFuture fut) |
protected void |
start0() |
context, isStopping, kernalStartInfo, kernalStopInfo, log, onDisconnected, onKernalStop, onKernalStop0, printMemoryStats, start, startInfo, stop, stop0, stopInfo, toStringprotected void start0()
throws IgniteCheckedException
start0 in class GridCacheSharedManagerAdapter<K,V>IgniteCheckedException - If failed.public void onCacheChangeRequest(GridDhtPartitionsExchangeFuture fut, boolean crd, ExchangeActions exchActions) throws IgniteCheckedException
fut - Exchange future.crd - Coordinator flag.exchActions - Cache change requests.IgniteCheckedException - If failed.public void removeAllCacheInfo()
public void onExchangeChangeAffinityMessage(GridDhtPartitionsExchangeFuture exchFut, boolean crd, CacheAffinityChangeMessage msg)
CacheAffinityChangeMessage which should complete exchange.exchFut - Exchange future.crd - Coordinator flag.msg - Affinity change message.public void onChangeAffinityMessage(GridDhtPartitionsExchangeFuture exchFut, boolean crd, CacheAffinityChangeMessage msg) throws IgniteCheckedException
CacheAffinityChangeMessage which sent after rebalance finished.exchFut - Exchange future.crd - Coordinator flag.msg - Message.IgniteCheckedException - If failed.public void onClientEvent(GridDhtPartitionsExchangeFuture fut, boolean crd) throws IgniteCheckedException
fut - Exchange future.crd - Coordinator flag.IgniteCheckedException - If failed.public void addDhtAssignmentFetchFuture(GridDhtAssignmentFetchFuture fut)
fut - Future to add.public void removeDhtAssignmentFetchFuture(GridDhtAssignmentFetchFuture fut)
fut - Future to remove.public void initStartedCaches(boolean crd,
GridDhtPartitionsExchangeFuture fut,
Collection<DynamicCacheDescriptor> descs)
throws IgniteCheckedException
crd - Coordinator flag.fut - Exchange future.descs - Cache descriptors.IgniteCheckedException - If failed.public void onServerJoin(GridDhtPartitionsExchangeFuture fut, boolean crd) throws IgniteCheckedException
fut - Exchange future.crd - Coordinator flag.IgniteCheckedException - If failed.public boolean onServerLeft(GridDhtPartitionsExchangeFuture fut) throws IgniteCheckedException
fut - Exchange future.True if affinity should be assigned by coordinator.IgniteCheckedException - If failed.public IgniteInternalFuture<Map<Integer,Map<Integer,List<UUID>>>> initAffinityOnNodeLeft(GridDhtPartitionsExchangeFuture fut) throws IgniteCheckedException
fut - Exchange future.IgniteCheckedException - If failed.public void dumpDebugInfo()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.2.0 Release Date : September 15 2017