public class GridCachePartitionExchangeManager<K,V> extends GridCacheSharedManagerAdapter<K,V>
cctx, diagnosticLog, log| Constructor and Description |
|---|
GridCachePartitionExchangeManager() |
context, isStopping, kernalStartInfo, kernalStopInfo, log, onDisconnected, onKernalStop, onReconnected, printMemoryStats, start, startInfo, stop, stopInfo, toStringprotected void start0()
throws IgniteCheckedException
start0 in class GridCacheSharedManagerAdapter<K,V>IgniteCheckedException - If failed.public void onCoordinatorInitialized()
public void onLocalJoin(DiscoveryEvent evt, DiscoCache cache)
evt - Event.cache - Cache.public IgniteInternalFuture<?> reconnectExchangeFuture()
public void onKernalStart(boolean active,
boolean reconnect)
throws IgniteCheckedException
active - Cluster state.reconnect - Reconnect flag.IgniteCheckedException - If failed.public static int exchangeProtocolVersion(IgniteProductVersion ver)
ver - Node version.public static Object rebalanceTopic(int idx)
idx - Index.protected void onKernalStop0(boolean cancel)
onKernalStop0 in class GridCacheSharedManagerAdapter<K,V>cancel - Cancel flag.protected void stop0(boolean cancel)
stop0 in class GridCacheSharedManagerAdapter<K,V>cancel - Cancel flag.public Object interruptLock()
@Nullable public GridDhtPartitionTopology clientTopologyIfExists(int grpId)
grpId - Cache group ID.public GridDhtPartitionTopology clientTopology(int grpId, DiscoCache discoCache)
grpId - Cache group ID.discoCache - Discovery data cache.public Collection<GridClientPartitionTopology> clientTopologies()
public GridClientPartitionTopology clearClientTopology(int grpId)
grpId - Cache group ID.public AffinityTopologyVersion readyAffinityVersion()
public GridDhtPartitionsExchangeFuture lastTopologyFuture()
@Nullable public GridDhtTopologyFuture lastFinishedFuture()
public void lastFinishedFuture(GridDhtTopologyFuture fut)
fut - Finished future.@Nullable public IgniteInternalFuture<?> affinityReadyFuture(AffinityTopologyVersion ver)
ver - Topology version.null is future is already completed.public List<GridDhtPartitionsExchangeFuture> exchangeFutures()
public boolean hasPendingExchange()
True if pending future queue contains exchange task.public void forceReassign(GridDhtPartitionExchangeId exchId)
exchId - Exchange ID.public IgniteInternalFuture<Boolean> forceRebalance(GridDhtPartitionExchangeId exchId)
exchId - Exchange ID.public IgniteInternalFuture<Void> deferStopCachesOnClientReconnect(Collection<GridCacheAdapter> caches)
caches - Caches to stop.public void scheduleResendPartitions()
public void refreshPartitions()
FullMessages send,
for non coordinator - SingleMessages sendpublic GridDhtPartitionsFullMessage createPartitionsFullMessage(boolean compress, boolean newCntrMap, @Nullable GridDhtPartitionExchangeId exchId, @Nullable GridCacheVersion lastVer, @Nullable IgniteDhtPartitionHistorySuppliersMap partHistSuppliers, @Nullable IgniteDhtPartitionsToReloadMap partsToReload)
compress - True if possible to compress message (properly work only if prepareMarshall/
finishUnmarshall methods are called).newCntrMap - True if possible to use CachePartitionFullCountersMap.exchId - Non-null exchange ID if message is created for exchange.lastVer - Last version.partHistSuppliers - Partition history suppliers map.partsToReload - Partitions to reload map.public GridDhtPartitionsSingleMessage createPartitionsSingleMessage(@Nullable GridDhtPartitionExchangeId exchangeId, boolean clientOnlyExchange, boolean sndCounters, boolean newCntrMap, ExchangeActions exchActions)
exchangeId - Exchange ID.clientOnlyExchange - Client exchange flag.sndCounters - True if need send partition update counters.newCntrMap - True if possible to use CachePartitionPartialCountersMap.public void onExchangeDone(AffinityTopologyVersion topVer, AffinityTopologyVersion initTopVer, @Nullable Throwable err)
topVer - Exchange result topology version.initTopVer - Exchange initial version.err - Error.public ExchangeLatchManager latch()
public void dumpDebugInfo(@Nullable
GridDhtPartitionsExchangeFuture exchFut)
throws Exception
exchFut - Optional current exchange future.Exception - If failed.public void dumpLongRunningOperations(long timeout)
timeout - Operation timeout.public void mergeExchangesTestWaitVersion(AffinityTopologyVersion exchMergeTestWaitVer)
exchMergeTestWaitVer - Version to wait for.public boolean mergeExchanges(GridDhtPartitionsExchangeFuture curFut, GridDhtPartitionsFullMessage msg) throws IgniteInterruptedCheckedException
curFut - Current exchange future.msg - Message.True if node is stopping.IgniteInterruptedCheckedException - If interrupted.public boolean mergeExchangesOnCoordinator(GridDhtPartitionsExchangeFuture curFut)
curFut - Current active exchange future.False if need wait messages for merged exchanges.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018