public class GridDhtPartitionsExchangeFuture extends GridDhtTopologyFutureAdapter implements Comparable<GridDhtPartitionsExchangeFuture>, CachePartitionExchangeWorkerTask, IgniteDiagnosticAware
GridDhtTopologyFutureAdapter.CacheValidation| Modifier and Type | Field and Description |
|---|---|
static String |
EXCHANGE_LOG |
grpValidRes| Constructor and Description |
|---|
GridDhtPartitionsExchangeFuture(GridCacheSharedContext cctx,
boolean reassign,
DiscoveryEvent discoEvt,
GridDhtPartitionExchangeId exchId)
Dummy future created to trigger reassignments if partition
topology changed while preloading.
|
GridDhtPartitionsExchangeFuture(GridCacheSharedContext cctx,
DiscoveryEvent discoEvt,
GridDhtPartitionExchangeId exchId,
GridCompoundFuture<Boolean,Boolean> forcedRebFut)
Force preload future created to trigger reassignments if partition
topology changed while preloading.
|
GridDhtPartitionsExchangeFuture(GridCacheSharedContext cctx,
ReadWriteLock busyLock,
GridDhtPartitionExchangeId exchId,
ExchangeActions exchActions,
CacheAffinityChangeMessage affChangeMsg) |
validateCache, validateCacheGroupcancel, chain, chain, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, onDone, resultclone, finalize, getClass, notify, notifyAll, wait, wait, waitcancel, chain, chain, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, resultpublic static final String EXCHANGE_LOG
public GridDhtPartitionsExchangeFuture(GridCacheSharedContext cctx, boolean reassign, DiscoveryEvent discoEvt, GridDhtPartitionExchangeId exchId)
cctx - Cache context.reassign - Dummy reassign flag.discoEvt - Discovery event.exchId - Exchange id.public GridDhtPartitionsExchangeFuture(GridCacheSharedContext cctx, DiscoveryEvent discoEvt, GridDhtPartitionExchangeId exchId, GridCompoundFuture<Boolean,Boolean> forcedRebFut)
cctx - Cache context.discoEvt - Discovery event.exchId - Exchange id.forcedRebFut - Forced Rebalance future.public GridDhtPartitionsExchangeFuture(GridCacheSharedContext cctx, ReadWriteLock busyLock, GridDhtPartitionExchangeId exchId, ExchangeActions exchActions, CacheAffinityChangeMessage affChangeMsg)
cctx - Cache context.busyLock - Busy lock.exchId - Exchange ID.exchActions - Cache change requests.affChangeMsg - Affinity change message.public void exchangeActions(ExchangeActions exchActions)
exchActions - Exchange actions.public void affinityChangeMessage(CacheAffinityChangeMessage affChangeMsg)
affChangeMsg - Affinity change message.public AffinityTopologyVersion topologyVersion()
topologyVersion in interface GridDhtTopologyFuturepublic boolean skipPreload()
public boolean dummy()
public boolean forcePreload()
public boolean reassign()
public boolean dummyReassign()
True if dummy reassign.@Nullable public UUID partitionHistorySupplier(int grpId, int partId)
grpId - Cache group ID.partId - Partition ID.public DiscoCache discoCache()
public boolean cacheAddedOnExchange(int cacheId,
UUID rcvdFrom)
cacheId - Cache ID.rcvdFrom - Node ID cache was received from.True if cache was added during this exchange.public boolean cacheGroupAddedOnExchange(int grpId,
UUID rcvdFrom)
grpId - Cache group ID.rcvdFrom - Node ID cache group was received from.True if cache group was added during this exchange.public boolean dynamicCacheGroupStarted(int grpId)
grpId - Cache group ID.True if non-client cache group was added during this exchange.public boolean onAdded()
Truepublic void onEvent(GridDhtPartitionExchangeId exchId, DiscoveryEvent discoEvt, DiscoCache discoCache)
exchId - Exchange ID.discoEvt - Discovery event.discoCache - Discovery data cache.public boolean activateCluster()
True if activate cluster exchange.public DiscoveryEvent discoveryEvent()
public GridDhtPartitionExchangeId exchangeId()
@Nullable public GridCompoundFuture<Boolean,Boolean> forcedRebalanceFuture()
public void init()
throws IgniteInterruptedCheckedException
IgniteInterruptedCheckedException - If interrupted.public boolean serverNodeDiscoveryEvent()
True if exchange triggered by server node join or fail.public boolean onDone(@Nullable
AffinityTopologyVersion res,
@Nullable
Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridFutureAdapter<AffinityTopologyVersion>res - Optional result.err - Optional error.True if result was set by this call.public void cleanUp()
public void onReceive(ClusterNode node, GridDhtPartitionsSingleMessage msg)
node - Sender node.msg - Single partition info.public void onReceive(ClusterNode node, GridDhtPartitionsFullMessage msg)
node - Sender node.msg - Full partition info.public void onAffinityChangeMessage(ClusterNode node, CacheAffinityChangeMessage msg)
onNodeLeft(org.apache.ignite.cluster.ClusterNode).node - Message sender node.msg - Message.public void onNodeLeft(ClusterNode node)
onAffinityChangeMessage(org.apache.ignite.cluster.ClusterNode, org.apache.ignite.internal.processors.cache.CacheAffinityChangeMessage).node - Left node.public boolean reconnectOnError(Throwable e)
e - Exception.True if local node should try reconnect in case of error.public int compareTo(GridDhtPartitionsExchangeFuture fut)
compareTo in interface Comparable<GridDhtPartitionsExchangeFuture>public void addDiagnosticRequest(IgniteDiagnosticPrepareContext diagCtx)
addDiagnosticRequest in interface IgniteDiagnosticAwarediagCtx - Context.public String shortInfo()
public String toString()
toString in class GridFutureAdapter<AffinityTopologyVersion>public static long nextDumpTimeout(int step,
long timeout)
step - Exponent coefficient.timeout - Base timeout.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.1.0 Release Date : July 20 2017