public class CacheAffinitySharedManager<K,V> extends GridCacheSharedManagerAdapter<K,V>
cctx, diagnosticLog, log| Constructor and Description |
|---|
CacheAffinitySharedManager() |
context, isStopping, kernalStartInfo, kernalStopInfo, log, onDisconnected, onKernalStop, onKernalStop0, onReconnected, printMemoryStats, start, startInfo, stop, stop0, stopInfo, toStringprotected void start0()
throws IgniteCheckedException
start0 in class GridCacheSharedManagerAdapter<K,V>IgniteCheckedException - If failed.public void initCachesOnLocalJoin(Map<Integer,CacheGroupDescriptor> cacheGroupDescriptors, Map<String,DynamicCacheDescriptor> cacheDescriptors)
public void onCustomMessageNoAffinityChange(GridDhtPartitionsExchangeFuture fut, boolean crd, @Nullable ExchangeActions exchActions)
fut - Exchange future.crd - Coordinator flag.exchActions - Exchange actions.public void stopCacheOnReconnect(GridCacheContext cctx)
cctx - Stopped cache context.public void stopCacheGroupOnReconnect(CacheGroupContext grpCtx)
grpCtx - Stopped cache group context.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 GridAffinityAssignmentCache affinity(Integer grpId)
grpId - Cache group ID.public void applyAffinityFromFullMessage(GridDhtPartitionsExchangeFuture fut, GridDhtPartitionsFullMessage msg)
fut - Current exchange future.msg - Finish exchange message.public void onLocalJoin(GridDhtPartitionsExchangeFuture fut, GridDhtPartitionsFullMessage msg, AffinityTopologyVersion resTopVer)
fut - Current exchange future.msg - Message finish message.resTopVer - Result topology version.public void onServerJoinWithExchangeMergeProtocol(GridDhtPartitionsExchangeFuture fut, boolean crd) throws IgniteCheckedException
fut - Current exchange future.crd - Coordinator flag.IgniteCheckedException - If failed.public Map<Integer,CacheGroupAffinityMessage> onServerLeftWithExchangeMergeProtocol(GridDhtPartitionsExchangeFuture fut) throws IgniteCheckedException
fut - Current exchange future.IgniteCheckedException - If failed.public Map<Integer,CacheGroupAffinityMessage> onCustomEventWithEnforcedAffinityReassignment(GridDhtPartitionsExchangeFuture fut) throws IgniteCheckedException
fut - Current exchange future.IgniteCheckedException - If failed.public void onServerJoin(GridDhtPartitionsExchangeFuture fut, boolean crd) throws IgniteCheckedException
fut - Exchange future.crd - Coordinator flag.IgniteCheckedException - If failed.public void onBaselineTopologyChanged(GridDhtPartitionsExchangeFuture fut, boolean crd) throws IgniteCheckedException
fut - Exchange futurecrd - Coordinator flag.IgniteCheckedException - If failed.public boolean onCentralizedAffinityChange(GridDhtPartitionsExchangeFuture fut, boolean crd) throws IgniteCheckedException
fut - Exchange future.crd - Coordinator flag.True if affinity should be assigned by coordinator.IgniteCheckedException - If failed.public IgniteInternalFuture<?> initCoordinatorCaches(GridDhtPartitionsExchangeFuture fut, boolean newAff) throws IgniteCheckedException
fut - Exchange future.newAff - True if there are no older nodes with affinity info available.IgniteCheckedException - If failed.public IgniteInternalFuture<Map<Integer,Map<Integer,List<UUID>>>> initAffinityOnNodeLeft(GridDhtPartitionsExchangeFuture fut) throws IgniteCheckedException
fut - Exchange future.IgniteCheckedException - If failed.public Map<Integer,CacheGroupDescriptor> cacheGroups()
public Map<Integer,DynamicCacheDescriptor> caches()
@Nullable public GridAffinityAssignmentCache groupAffinity(int grpId)
grpId - Cache group IDpublic void dumpDebugInfo()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018