public abstract class GridNearReadRepairAbstractFuture extends GridFutureAdapter<Map<KeyCacheObject,EntryGetResult>>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
GridNearReadRepairAbstractFuture.ByteArrayWrapper |
protected static class |
GridNearReadRepairAbstractFuture.IgniteConsistencyCheckFailedException |
protected static class |
GridNearReadRepairAbstractFuture.IgniteConsistencyRepairFailedException |
| Modifier and Type | Field and Description |
|---|---|
protected GridCacheContext<?,?> |
ctx
Context.
|
protected boolean |
deserializeBinary
Deserialize binary flag.
|
protected IgniteCacheExpiryPolicy |
expiryPlc
Expiry policy flag.
|
protected Map<ClusterNode,GridPartitionedGetFuture<KeyCacheObject,EntryGetResult>> |
futs
Affinity node's get futures.
|
protected Collection<KeyCacheObject> |
keys
Context.
|
protected static int |
MAX_REMAP_CNT
Maximum number of attempts to remap key to the same primary node.
|
protected Map<KeyCacheObject,ClusterNode> |
primaries
Primaries per key.
|
protected boolean |
readThrough
Read through flag.
|
protected boolean |
recovery
Recovery flag.
|
protected int |
remapCnt
Remap count.
|
protected ReadRepairStrategy |
strategy
Strategy.
|
protected String |
taskName
Task name.
|
protected IgniteInternalTx |
tx
Tx.
|
| Modifier | Constructor and Description |
|---|---|
protected |
GridNearReadRepairAbstractFuture(AffinityTopologyVersion topVer,
GridCacheContext<?,?> ctx,
Collection<KeyCacheObject> keys,
ReadRepairStrategy strategy,
boolean readThrough,
String taskName,
boolean deserializeBinary,
boolean recovery,
IgniteCacheExpiryPolicy expiryPlc,
IgniteInternalTx tx,
GridNearReadRepairAbstractFuture remappedFut)
Creates a new instance of GridNearReadRepairAbstractFuture.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<KeyCacheObject,EntryGetResult> |
check()
Checks consistency.
|
protected Map<KeyCacheObject,EntryGetResult> |
correct(Set<KeyCacheObject> keys)
Calculates correct values.
|
protected Map<KeyCacheObject,EntryGetResult> |
correctWithPrimary(Collection<KeyCacheObject> inconsistentKeys) |
GridNearReadRepairAbstractFuture |
init() |
protected void |
onResult(IgniteInternalFuture<Map<KeyCacheObject,EntryGetResult>> finished)
Collects results of each 'get' future and prepares an overall result of the operation.
|
protected void |
recordConsistencyViolation(Collection<KeyCacheObject> inconsistentKeys,
Map<KeyCacheObject,EntryGetResult> repairedEntries) |
protected abstract void |
reduce()
Reduces fut's results.
|
protected void |
remap(AffinityTopologyVersion topVer) |
protected abstract GridNearReadRepairAbstractFuture |
remapFuture(AffinityTopologyVersion topVer) |
cancel, chain, chain, chainCompose, chainCompose, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, onDone, onDone, reset, result, toStringprotected static final int MAX_REMAP_CNT
protected final Map<ClusterNode,GridPartitionedGetFuture<KeyCacheObject,EntryGetResult>> futs
protected final GridCacheContext<?,?> ctx
protected final Collection<KeyCacheObject> keys
protected final boolean readThrough
protected final String taskName
protected final boolean deserializeBinary
protected final boolean recovery
protected final IgniteCacheExpiryPolicy expiryPlc
protected final IgniteInternalTx tx
protected final Map<KeyCacheObject,ClusterNode> primaries
protected final ReadRepairStrategy strategy
protected final int remapCnt
protected GridNearReadRepairAbstractFuture(AffinityTopologyVersion topVer, GridCacheContext<?,?> ctx, Collection<KeyCacheObject> keys, ReadRepairStrategy strategy, boolean readThrough, String taskName, boolean deserializeBinary, boolean recovery, IgniteCacheExpiryPolicy expiryPlc, IgniteInternalTx tx, GridNearReadRepairAbstractFuture remappedFut)
topVer - Topology version.ctx - Cache context.keys - Keys.strategy - Read repair strategy.readThrough - Read-through flag.taskName - Task name.deserializeBinary - Deserialize binary flag.recovery - Partition recovery flag.expiryPlc - Expiry policy.tx - Transaction. Can be null in case of atomic cache.remappedFut - Remapped future.public GridNearReadRepairAbstractFuture init()
protected void remap(AffinityTopologyVersion topVer)
topVer - Topology version.protected abstract GridNearReadRepairAbstractFuture remapFuture(AffinityTopologyVersion topVer)
topVer - Topology version.protected final void onResult(IgniteInternalFuture<Map<KeyCacheObject,EntryGetResult>> finished)
finished - Future represents a result of GET operation.protected abstract void reduce()
protected final Map<KeyCacheObject,EntryGetResult> check() throws IgniteCheckedException
IgniteCheckedExceptionprotected Map<KeyCacheObject,EntryGetResult> correct(Set<KeyCacheObject> keys) throws IgniteCheckedException
keys - Keys.IgniteCheckedExceptionprotected Map<KeyCacheObject,EntryGetResult> correctWithPrimary(Collection<KeyCacheObject> inconsistentKeys)
protected final void recordConsistencyViolation(Collection<KeyCacheObject> inconsistentKeys, Map<KeyCacheObject,EntryGetResult> repairedEntries)
repairedEntries - Repaired map.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023