public class ClientCacheDhtTopologyFuture extends GridDhtTopologyFutureAdapter
GridDhtTopologyFutureAdapter.CacheGroupValidationclusterIsActive, grpValidRes| Constructor and Description |
|---|
ClientCacheDhtTopologyFuture(AffinityTopologyVersion topVer) |
ClientCacheDhtTopologyFuture(AffinityTopologyVersion topVer,
IgniteCheckedException e) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
changedAffinity() |
boolean |
exchangeDone()
Ready affinity future (
GridCachePartitionExchangeManager.affinityReadyFuture(AffinityTopologyVersion)
is completed before GridFutureAdapter.onDone(Object, Throwable) is called on
GridDhtPartitionsExchangeFuture, it is guaranteed that this method will return true
if affinity ready future is finished. |
AffinityTopologyVersion |
initialVersion()
Returns topology version when exchange started.
|
AffinityTopologyVersion |
topologyVersion()
Gets result topology version of this future.
|
String |
toString() |
void |
validate(CacheGroupContext grp,
Collection<ClusterNode> topNodes) |
hasLostPartitions, validateCache, validateCacheGroupcancel, chain, chain, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, onDone, onDone, reset, resultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcancel, chain, chain, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, resultpublic ClientCacheDhtTopologyFuture(AffinityTopologyVersion topVer)
topVer - Topology version.public ClientCacheDhtTopologyFuture(AffinityTopologyVersion topVer, IgniteCheckedException e)
topVer - Topology version.e - Error.public void validate(CacheGroupContext grp, Collection<ClusterNode> topNodes)
grp - Cache group.topNodes - Topology nodes.public AffinityTopologyVersion initialVersion()
public boolean exchangeDone()
GridCachePartitionExchangeManager.affinityReadyFuture(AffinityTopologyVersion)
is completed before GridFutureAdapter.onDone(Object, Throwable) is called on
GridDhtPartitionsExchangeFuture, it is guaranteed that this method will return true
if affinity ready future is finished.
Also this method returns false for merged exchange futures.
True if exchange is finished and result topology version can be used.public AffinityTopologyVersion topologyVersion()
This method should be called only for finished topology future since result version is not known before exchange finished.
public boolean changedAffinity()
True if this exchange changed affinity.public String toString()
toString in class GridFutureAdapter<AffinityTopologyVersion>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.1 Release Date : December 9 2020