public class CacheAffinitySharedManager<K,V> extends GridCacheSharedManagerAdapter<K,V>
cctx, log
Constructor and Description |
---|
CacheAffinitySharedManager() |
context, isStopping, kernalStartInfo, kernalStopInfo, log, onDisconnected, onKernalStart, onKernalStart0, onKernalStop, onKernalStop0, printMemoryStats, start, startInfo, stop, stop0, stopInfo, toString
protected void start0() throws IgniteCheckedException
start0
in class GridCacheSharedManagerAdapter<K,V>
IgniteCheckedException
- If failed.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 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, @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 void dumpDebugInfo()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017