public abstract class GridDistributedTxRemoteAdapter extends IgniteTxAdapter implements IgniteTxRemoteEx
GridMetadataAwareAdapter.EntryKeyIgniteInternalTx.FinalizationStatus| Modifier and Type | Field and Description |
|---|---|
protected IgniteTxRemoteState |
txState |
cctx, concurrency, consistentIdMapper, endVer, implicit, internal, invalidate, isDone, isolation, loc, log, needRetVal, nodeId, onePhaseCommit, startTime, startVer, storeEnabled, subjId, taskName, taskNameHash, threadId, timeout, topVer, txNodes, txSize, writeVer, xidVer| Constructor and Description |
|---|
GridDistributedTxRemoteAdapter()
Empty constructor required for
Externalizable. |
GridDistributedTxRemoteAdapter(GridCacheSharedContext<?,?> ctx,
UUID nodeId,
GridCacheVersion xidVer,
GridCacheVersion commitVer,
boolean sys,
byte plc,
TransactionConcurrency concurrency,
TransactionIsolation isolation,
boolean invalidate,
long timeout,
int txSize,
UUID subjId,
int taskNameHash) |
addInvalidPartition, applyTransformClosures, batchStoreCommit, checkInternal, colocated, commitVersion, commitVersion, completedVersions, concurrency, conflictResolve, context, currentPrepareFuture, dht, done, endVersion, equals, errorWhenCommitting, evictNearEntry, finalizationStatus, finishFuture, hashCode, implicit, implicitSingle, internal, invalidPartitions, ioPolicy, isInvalidate, isNearLocallyMapped, isolation, isRollbackOnly, isSystemInvalidate, isWriteToStoreFromDhtValid, local, localResult, log, markFinalizing, near, nearXidVersion, needReturnValue, needReturnValue, needsCompletedVersions, nodeId, onePhaseCommit, onePhaseCommit, optimistic, optimisticLockEntries, otherNodeId, ownedVersion, ownsLock, ownsLockUnsafe, pessimistic, readCommitted, readExternal, readResolve, remainingTime, remote, repeatableRead, resolveTaskName, rollbackException, serializable, sessionEnd, setRollbackOnly, size, startTime, state, state, state, storeEnabled, storeEnabled, storeWriteThrough, subjectId, system, systemInvalidate, taskNameHash, threadId, timedOut, timeout, timeout, timeoutException, topologyVersion, topologyVersion, topologyVersionSnapshot, transactionNodes, transactionNodes, uncommit, updateNearCache, user, writeExternal, writeVersion, writeVersion, xid, xidVersionaddMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, clone, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, readExternalMeta, removeAllMeta, removeMeta, removeMeta, replaceMeta, writeExternalMetafinalize, getClass, notify, notifyAll, wait, wait, waitaddInvalidPartition, addMeta, colocated, commitVersion, commitVersion, completedVersions, concurrency, currentPrepareFuture, dht, done, endVersion, errorWhenCommitting, finishFuture, implicit, implicitSingle, internal, invalidPartitions, ioPolicy, isInvalidate, isolation, isRollbackOnly, isSystemInvalidate, local, localResult, markFinalizing, masterNodeIds, meta, near, nearXidVersion, needsCompletedVersions, nodeId, onePhaseCommit, optimistic, optimisticLockEntries, otherNodeId, ownedVersion, ownsLock, ownsLockUnsafe, pessimistic, readCommitted, remainingTime, removeMeta, repeatableRead, serializable, setRollbackOnly, size, startTime, state, state, storeEnabled, storeWriteThrough, subjectId, system, systemInvalidate, taskNameHash, threadId, timedOut, timeout, timeout, topologyVersion, topologyVersion, topologyVersionSnapshot, transactionNodes, user, writeVersion, writeVersion, xid, xidVersion@GridToStringInclude protected IgniteTxRemoteState txState
public GridDistributedTxRemoteAdapter()
Externalizable.public GridDistributedTxRemoteAdapter(GridCacheSharedContext<?,?> ctx, UUID nodeId, GridCacheVersion xidVer, GridCacheVersion commitVer, boolean sys, byte plc, TransactionConcurrency concurrency, TransactionIsolation isolation, boolean invalidate, long timeout, int txSize, @Nullable UUID subjId, int taskNameHash)
ctx - Cache registry.nodeId - Node ID.xidVer - XID version.commitVer - Commit version.sys - System flag.plc - IO policy.concurrency - Concurrency level (should be pessimistic).isolation - Transaction isolation.invalidate - Invalidate flag.timeout - Timeout.txSize - Expected transaction size.subjId - Subject ID.taskNameHash - Task name hash code.public IgniteTxState txState()
txState in interface IgniteInternalTxpublic UUID eventNodeId()
eventNodeId in interface IgniteInternalTxpublic UUID originatingNodeId()
originatingNodeId in interface IgniteInternalTxpublic boolean activeCachesDeploymentEnabled()
activeCachesDeploymentEnabled in interface IgniteInternalTxtrue or false if the deployment is enabled or disabled for all active caches involved
in this transaction.public boolean empty()
empty in interface IgniteInternalTxpublic void invalidate(boolean invalidate)
invalidate in interface IgniteInternalTxinvalidate in class IgniteTxAdapterinvalidate - Invalidate flag.public Map<IgniteTxKey,IgniteTxEntry> writeMap()
writeMap in interface IgniteInternalTxpublic Map<IgniteTxKey,IgniteTxEntry> readMap()
readMap in interface IgniteInternalTxpublic void seal()
seal in interface IgniteInternalTxpublic GridTuple<CacheObject> peek(GridCacheContext cacheCtx, boolean failFast, KeyCacheObject key) throws GridCacheFilterFailedException
peek in interface IgniteInternalTxcacheCtx - Cache context.failFast - Fail-fast flag.key - Key to look up.GridCacheFilterFailedException - If filter failed and failFast is true.public IgniteTxEntry entry(IgniteTxKey key)
entry in interface IgniteInternalTxkey - Key for the entry.public void clearEntry(IgniteTxKey key)
key - key to be removed.public void doneRemote(GridCacheVersion baseVer, Collection<GridCacheVersion> committedVers, Collection<GridCacheVersion> rolledbackVers, Collection<GridCacheVersion> pendingVers)
doneRemote in interface IgniteTxRemoteExbaseVer - Base version.committedVers - Committed versions.rolledbackVers - Rolled back versions.pendingVers - Pending versions.public void setPartitionUpdateCounters(long[] cntrs)
setPartitionUpdateCounters in interface IgniteTxRemoteExcntrs - Partition update indexes.public boolean onOwnerChanged(GridCacheEntryEx entry, GridCacheMvccCandidate owner)
onOwnerChanged in interface IgniteInternalTxentry - Cache entry.owner - Lock candidate that won ownership of the lock.True if transaction cared about notification.public boolean isStarted()
isStarted in class IgniteTxAdapterTrue if transaction has at least one key enlisted.public boolean hasWriteKey(IgniteTxKey key)
hasWriteKey in interface IgniteInternalTxkey - Key to check.True if key is present.public Set<IgniteTxKey> readSet()
readSet in interface IgniteInternalTxpublic Set<IgniteTxKey> writeSet()
writeSet in interface IgniteInternalTxpublic Collection<IgniteTxEntry> allEntries()
allEntries in interface IgniteInternalTxpublic Collection<IgniteTxEntry> writeEntries()
writeEntries in interface IgniteInternalTxpublic Collection<IgniteTxEntry> readEntries()
readEntries in interface IgniteInternalTxpublic final void prepareRemoteTx()
throws IgniteCheckedException
IgniteCheckedException - If failed.public final void commitRemoteTx()
throws IgniteCheckedException
commitRemoteTx in interface IgniteTxRemoteExIgniteCheckedException - If failed.public void forceCommit()
throws IgniteCheckedException
IgniteCheckedException - If commit failed.public IgniteInternalFuture<IgniteInternalTx> commitAsync()
two-phase-commit process.commitAsync in interface IgniteInternalTxpublic final IgniteInternalFuture<?> salvageTx()
salvageTx in interface IgniteInternalTxpublic final void rollbackRemoteTx()
rollbackRemoteTx in interface IgniteTxRemoteExpublic IgniteInternalFuture<IgniteInternalTx> rollbackAsync()
rollbackAsync in interface IgniteInternalTxpublic Collection<GridCacheVersion> alternateVersions()
alternateVersions in interface IgniteInternalTxpublic void commitError(Throwable e)
commitError in interface IgniteInternalTxe - Commit error.public boolean skipCompletedVersions()
True if tx should skip adding itself to completed version map on finish.public void skipCompletedVersions(boolean skipCompletedVers)
skipCompletedVers - True if tx should skip adding itself to completed version map on finish.protected void addExplicit(IgniteTxEntry e)
e - Transaction entry.public String toString()
toString in class IgniteTxAdapter
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018