public abstract class GridDhtTopologyFutureAdapter extends GridFutureAdapter<AffinityTopologyVersion> implements GridDhtTopologyFuture
| Modifier and Type | Class and Description |
|---|---|
protected static class |
GridDhtTopologyFutureAdapter.CacheGroupValidation
Cache group validation result.
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
clusterIsActive
Whether or not cluster is active.
|
protected Map<Integer,GridDhtTopologyFutureAdapter.CacheGroupValidation> |
grpValidRes
Cache groups validation results.
|
| Constructor and Description |
|---|
GridDhtTopologyFutureAdapter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasLostPartitions() |
@Nullable CacheInvalidStateException |
validateCache(GridCacheContext cctx,
boolean recovery,
boolean read,
@Nullable Object key,
@Nullable Collection<?> keys)
Returns error is cache topology is not valid.
|
protected GridDhtTopologyFutureAdapter.CacheGroupValidation |
validateCacheGroup(CacheGroupContext grp,
Collection<ClusterNode> topNodes) |
cancel, chain, chain, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, onDone, onDone, reset, result, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitchangedAffinity, exchangeDone, initialVersion, topologyVersioncancel, chain, chain, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, resultprotected volatile Map<Integer,GridDhtTopologyFutureAdapter.CacheGroupValidation> grpValidRes
protected volatile boolean clusterIsActive
protected final GridDhtTopologyFutureAdapter.CacheGroupValidation validateCacheGroup(CacheGroupContext grp, Collection<ClusterNode> topNodes)
grp - Cache group.topNodes - Topology nodes.@Nullable public final @Nullable CacheInvalidStateException validateCache(GridCacheContext cctx, boolean recovery, boolean read, @Nullable @Nullable Object key, @Nullable @Nullable Collection<?> keys)
validateCache in interface GridDhtTopologyFuturecctx - Cache context.recovery - True if cache operation is done in recovery mode. Then it will only check
for cache active state and topology validator result.read - True if validating read operation, false if validating write.key - Key (optimization to avoid collection creation).keys - Keys involved in a cache operation.public boolean hasLostPartitions()
true If any lost partitions was detected.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021