public class GridCachePartitionExchangeManager<K,V> extends GridCacheSharedManagerAdapter<K,V>
cctx, log| Constructor and Description |
|---|
GridCachePartitionExchangeManager() |
context, isStopping, kernalStartInfo, kernalStopInfo, log, onDisconnected, onKernalStart, onKernalStop, printMemoryStats, start, startInfo, stop, stopInfo, toStringprotected void start0()
throws IgniteCheckedException
start0 in class GridCacheSharedManagerAdapter<K,V>IgniteCheckedException - If failed.public IgniteInternalFuture<?> reconnectExchangeFuture()
protected void onKernalStart0(boolean reconnect)
throws IgniteCheckedException
onKernalStart0 in class GridCacheSharedManagerAdapter<K,V>reconnect - True if manager restarted after client reconnect.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 cacheId, GridDhtPartitionsExchangeFuture exchFut)
cacheId - Cache ID.exchFut - Exchange future.public Collection<GridClientPartitionTopology> clientTopologies()
public GridClientPartitionTopology clearClientTopology(int cacheId)
cacheId - Cache 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 IgniteProductVersion minimumNodeVersion(AffinityTopologyVersion topVer)
topVer - Topology version to get minimum node version for.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(Collection<ClusterNode> nodes, @Nullable GridDhtPartitionExchangeId exchId, @Nullable GridCacheVersion lastVer, boolean compress)
nodes - Target nodes.exchId - Non-null exchange ID if message is created for exchange.lastVer - Last version.compress - True if it is possible to use compression for message.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
AffinityTopologyVersion exchTopVer)
throws Exception
exchTopVer - Optional current exchange topology version.Exception - If failed.public void dumpLongRunningOperations(long timeout)
timeout - Operation timeout.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017