public class GridCachePartitionExchangeManager<K,V> extends GridCacheSharedManagerAdapter<K,V>
cctx, diagnosticLog, log| Constructor and Description |
|---|
GridCachePartitionExchangeManager() |
context, isStopping, kernalStartInfo, kernalStopInfo, log, onDisconnected, onKernalStop, printMemoryStats, start, startInfo, stop, stopInfo, toStringprotected void start0()
throws IgniteCheckedException
start0 in class GridCacheSharedManagerAdapter<K,V>IgniteCheckedException - If failed.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 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()
public GridDhtPartitionTopology clientTopology(int grpId, GridDhtPartitionsExchangeFuture exchFut)
grpId - Cache group ID.exchFut - Exchange future.public Collection<GridClientPartitionTopology> clientTopologies()
public GridClientPartitionTopology clearClientTopology(int grpId)
grpId - Cache group ID.public AffinityTopologyVersion topologyVersion()
public AffinityTopologyVersion readyAffinityVersion()
public GridDhtTopologyFuture 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 is empty.public void forceDummyExchange(boolean reassign,
GridDhtPartitionsExchangeFuture exchFut)
exchFut - Exchange future.reassign - Dummy reassign flag.public IgniteInternalFuture<Boolean> forceRebalance(GridDhtPartitionsExchangeFuture exchFut)
exchFut - Exchange future.public void scheduleResendPartitions()
public GridDhtPartitionsFullMessage createPartitionsFullMessage(boolean compress, @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).exchId - Non-null exchange ID if message is created for exchange.lastVer - Last version.public GridDhtPartitionsSingleMessage createPartitionsSingleMessage(ClusterNode targetNode, @Nullable GridDhtPartitionExchangeId exchangeId, boolean clientOnlyExchange, boolean sndCounters)
targetNode - Target node.exchangeId - ID.clientOnlyExchange - Client exchange flag.sndCounters - True if need send partition update counters.public void onExchangeDone(GridDhtPartitionsExchangeFuture exchFut, @Nullable Throwable err)
exchFut - Exchange.err - Error.public void dumpDebugInfo(@Nullable
GridDhtPartitionsExchangeFuture exchFut)
throws Exception
exchFut - Optional current exchange future.Exception - If failed.public void dumpLongRunningOperations(long timeout)
timeout - Operation timeout.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.2.0 Release Date : September 15 2017