public class CacheAffinitySharedManager<K,V> extends GridCacheSharedManagerAdapter<K,V>
| Modifier and Type | Field and Description |
|---|---|
static IgniteProductVersion |
LATE_AFF_ASSIGN_SINCE |
cctx, log| Constructor and Description |
|---|
CacheAffinitySharedManager() |
context, kernalStartInfo, kernalStopInfo, log, onDisconnected, onKernalStart, onKernalStart0, onKernalStop, onKernalStop0, printMemoryStats, start, startInfo, stop, stop0, stopInfo, toStringpublic static final IgniteProductVersion LATE_AFF_ASSIGN_SINCE
protected void start0()
throws IgniteCheckedException
start0 in class GridCacheSharedManagerAdapter<K,V>IgniteCheckedException - If failed.public void onDiscoveryEvent(int type,
ClusterNode node,
AffinityTopologyVersion topVer)
type - Event type.node - Event node.topVer - Topology version.public boolean onCustomEvent(CacheAffinityChangeMessage msg)
msg - Customer message.True if minor topology version should be increased.public void checkRebalanceState(GridDhtPartitionTopology top, Integer checkCacheId)
top - Topology.checkCacheId - Cache ID.public void onCacheCreated(GridCacheContext cctx)
cctx - Cache context.public boolean onCacheChangeRequest(GridDhtPartitionsExchangeFuture fut, boolean crd, Collection<DynamicCacheChangeRequest> reqs) throws IgniteCheckedException
fut - Exchange future.crd - Coordinator flag.reqs - Cache change requests.True if client-only exchange is needed.IgniteCheckedException - If failed.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,
@Nullable
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 Map<Integer,Map<Integer,List<UUID>>> initAffinityOnNodeLeft0(GridDhtPartitionsExchangeFuture fut) throws IgniteCheckedException
fut - Exchange future.IgniteCheckedException - If failed.public void dumpDebugInfo()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.7.0 Release Date : August 1 2016