public class GridNearTxRemote extends GridDistributedTxRemoteAdapter
GridMetadataAwareAdapter.EntryKeyIgniteInternalTx.FinalizationStatustxStatecctx, concurrency, consistentIdMapper, endVer, implicit, internal, invalidate, isDone, isolation, loc, log, mvccSnapshot, needRetVal, nodeId, onePhaseCommit, startTime, startVer, storeEnabled, subjId, taskName, taskNameHash, threadId, timeout, topVer, txNodes, txSize, writeVer, xidVer| Constructor and Description |
|---|
GridNearTxRemote()
Empty constructor required for
Externalizable. |
GridNearTxRemote(GridCacheSharedContext ctx,
AffinityTopologyVersion topVer,
ClassLoader ldr,
UUID nodeId,
UUID nearNodeId,
GridCacheVersion xidVer,
GridCacheVersion commitVer,
boolean sys,
byte plc,
TransactionConcurrency concurrency,
TransactionIsolation isolation,
boolean invalidate,
long timeout,
Collection<IgniteTxEntry> writeEntries,
int txSize,
@Nullable UUID subjId,
int taskNameHash,
@Nullable String txLbl)
This constructor is meant for optimistic transactions.
|
GridNearTxRemote(GridCacheSharedContext ctx,
AffinityTopologyVersion topVer,
UUID nodeId,
UUID nearNodeId,
GridCacheVersion nearXidVer,
GridCacheVersion xidVer,
GridCacheVersion commitVer,
boolean sys,
byte plc,
TransactionConcurrency concurrency,
TransactionIsolation isolation,
boolean invalidate,
long timeout,
int txSize,
@Nullable UUID subjId,
int taskNameHash,
@Nullable String txLbl)
This constructor is meant for pessimistic transactions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addActiveCache(GridCacheContext cacheCtx,
boolean recovery)
Adds cache to the list of active caches in transaction.
|
void |
addEntries(ClassLoader ldr,
Iterable<IgniteTxEntry> entries)
Adds entries to started near remote tx.
|
boolean |
addEntry(GridCacheContext cacheCtx,
IgniteTxKey key,
GridCacheOperation op,
CacheObject val,
@Nullable GridCacheVersion drVer,
boolean skipStore,
boolean keepBinary) |
UUID |
eventNodeId() |
Collection<IgniteTxKey> |
evicted() |
Collection<UUID> |
masterNodeIds() |
boolean |
near() |
UUID |
nearNodeId() |
GridCacheVersion |
nearXidVersion() |
GridCacheVersion |
ownedVersion(IgniteTxKey key)
Gets owned version for near remote transaction.
|
void |
ownedVersions(Map<IgniteTxKey,GridCacheVersion> vers)
Adds owned versions to map.
|
boolean |
remote() |
void |
setPartitionUpdateCounters(long[] cntrs) |
String |
toString() |
activeCachesDeploymentEnabled, activeCachesDeploymentEnabled, addExplicit, allEntries, alternateVersions, clearEntry, commitAsync, commitError, commitRemoteTx, doneRemote, empty, entry, forceCommit, hasWriteKey, invalidate, isStarted, label, onOwnerChanged, originatingNodeId, peek, prepareRemoteTx, readEntries, readMap, readSet, rollbackAsync, rollbackRemoteTx, salvageTx, seal, txState, writeEntries, writeMap, writeSetaddInvalidPartition, applyTransformClosures, applyTxSizes, batchStoreCommit, chainState, checkInternal, colocated, commitVersion, commitVersion, completedVersions, concurrency, conflictResolve, context, currentPrepareFuture, dht, done, endVersion, equals, errorWhenCommitting, evictNearEntry, finalizationStatus, finishFuture, hashCode, heuristicException, implicit, implicitSingle, internal, invalidPartitions, ioPolicy, isInvalidate, isNearLocallyMapped, isolation, isRollbackOnly, isSystemInvalidate, isWriteToStoreFromDhtValid, local, localResult, log, logTxFinishErrorSafe, markFinalizing, mvccSnapshot, mvccSnapshot, needReturnValue, needReturnValue, needsCompletedVersions, nodeId, onePhaseCommit, onePhaseCommit, optimistic, optimisticLockEntries, otherNodeId, ownsLock, ownsLockUnsafe, pessimistic, readCommitted, readExternal, readResolve, recordStateChangedEvent, remainingTime, repeatableRead, resolveTaskName, rollbackException, rollbackFuture, rollbackFuture, serializable, sessionEnd, setParentTx, setRollbackOnly, size, skipCompletedVersions, skipCompletedVersions, startTime, state, state, state, storeEnabled, storeEnabled, storeWriteThrough, subjectId, system, systemInvalidate, taskNameHash, threadId, timedOut, timeout, timeout, timeoutException, topologyVersion, topologyVersion, topologyVersionSnapshot, transactionNodes, transactionNodes, txCounters, 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, finalizationStatus, finishFuture, implicit, implicitSingle, internal, invalidPartitions, ioPolicy, isInvalidate, isolation, isRollbackOnly, isSystemInvalidate, local, localResult, markFinalizing, meta, mvccSnapshot, mvccSnapshot, needsCompletedVersions, nodeId, onePhaseCommit, optimistic, optimisticLockEntries, otherNodeId, 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, txCounters, user, writeVersion, writeVersion, xid, xidVersionpublic GridNearTxRemote()
Externalizable.public GridNearTxRemote(GridCacheSharedContext ctx, AffinityTopologyVersion topVer, ClassLoader ldr, UUID nodeId, UUID nearNodeId, GridCacheVersion xidVer, GridCacheVersion commitVer, boolean sys, byte plc, TransactionConcurrency concurrency, TransactionIsolation isolation, boolean invalidate, long timeout, Collection<IgniteTxEntry> writeEntries, int txSize, @Nullable @Nullable UUID subjId, int taskNameHash, @Nullable @Nullable String txLbl) throws IgniteCheckedException
topVer - Transaction topology version.ldr - Class loader.nodeId - Node ID.nearNodeId - Near 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.writeEntries - Write entries.ctx - Cache registry.txSize - Expected transaction size.subjId - Subject ID.taskNameHash - Task name hash code.txLbl - Transaction label.IgniteCheckedException - If unmarshalling failed.public GridNearTxRemote(GridCacheSharedContext ctx, AffinityTopologyVersion topVer, UUID nodeId, UUID nearNodeId, GridCacheVersion nearXidVer, GridCacheVersion xidVer, GridCacheVersion commitVer, boolean sys, byte plc, TransactionConcurrency concurrency, TransactionIsolation isolation, boolean invalidate, long timeout, int txSize, @Nullable @Nullable UUID subjId, int taskNameHash, @Nullable @Nullable String txLbl)
topVer - Transaction topology version.nodeId - Node ID.nearNodeId - Near node ID.nearXidVer - Near transaction 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.ctx - Cache registry.txSize - Expected transaction size.subjId - Subject ID.taskNameHash - Task name hash code.txLbl - Transaction label.public boolean remote()
remote in class IgniteTxAdapterpublic boolean near()
near in interface IgniteInternalTxnear in class IgniteTxAdapterTrue if near transaction.public UUID eventNodeId()
eventNodeId in interface IgniteInternalTxeventNodeId in class GridDistributedTxRemoteAdapterpublic GridCacheVersion ownedVersion(IgniteTxKey key)
ownedVersion in interface IgniteInternalTxownedVersion in class IgniteTxAdapterkey - Key to get version for.public GridCacheVersion nearXidVersion()
IgniteTxAdapternearXidVersion in interface IgniteInternalTxnearXidVersion in class IgniteTxAdapterpublic void setPartitionUpdateCounters(long[] cntrs)
setPartitionUpdateCounters in interface IgniteTxRemoteExsetPartitionUpdateCounters in class GridDistributedTxRemoteAdaptercntrs - Partition update indexes.public void addActiveCache(GridCacheContext cacheCtx, boolean recovery) throws IgniteCheckedException
addActiveCache in class GridDistributedTxRemoteAdaptercacheCtx - Cache context to add.recovery - Recovery flag. See CacheOperationContext.setRecovery(boolean).IgniteCheckedException - If caches already enlisted in this transaction are not compatible with given
cache (e.g. they have different stores).public void ownedVersions(Map<IgniteTxKey,GridCacheVersion> vers)
vers - Map of owned versions.public UUID nearNodeId()
public Collection<UUID> masterNodeIds()
public Collection<IgniteTxKey> evicted()
public void addEntries(ClassLoader ldr, Iterable<IgniteTxEntry> entries) throws IgniteCheckedException
ldr - Class loader.entries - Entries to add.IgniteCheckedException - If failed.public boolean addEntry(GridCacheContext cacheCtx, IgniteTxKey key, GridCacheOperation op, CacheObject val, @Nullable @Nullable GridCacheVersion drVer, boolean skipStore, boolean keepBinary) throws IgniteCheckedException
cacheCtx - Cache context.key - Key to add to read set.op - Operation.val - Value.drVer - Data center replication version.skipStore - Skip store flag.True if entry has been enlisted.IgniteCheckedException - If failed.public String toString()
toString in class GridDistributedTxRemoteAdapter
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.1 Release Date : December 9 2020