public class GridDhtTxRemote extends GridDistributedTxRemoteAdapter
GridMetadataAwareAdapter.EntryKeyIgniteInternalTx.FinalizationStatusreadMap, writeMapcctx, concurrency, endVer, implicit, implicitSingle, internal, invalidate, isDone, isolation, loc, log, nodeId, onePhaseCommit, startTime, startVer, storeEnabled, subjId, syncCommit, syncRollback, taskName, taskNameHash, threadId, timeout, topVer, transform, txNodes, txSize, writeVer, xidVer| Constructor and Description |
|---|
GridDhtTxRemote()
Empty constructor required for
Externalizable. |
GridDhtTxRemote(GridCacheSharedContext ctx,
UUID nearNodeId,
IgniteUuid rmtFutId,
UUID nodeId,
GridCacheVersion nearXidVer,
long rmtThreadId,
AffinityTopologyVersion topVer,
GridCacheVersion xidVer,
GridCacheVersion commitVer,
boolean sys,
byte plc,
TransactionConcurrency concurrency,
TransactionIsolation isolation,
boolean invalidate,
long timeout,
int txSize,
UUID subjId,
int taskNameHash)
This constructor is meant for pessimistic transactions.
|
GridDhtTxRemote(GridCacheSharedContext ctx,
UUID nearNodeId,
IgniteUuid rmtFutId,
UUID nodeId,
long rmtThreadId,
AffinityTopologyVersion topVer,
GridCacheVersion xidVer,
GridCacheVersion commitVer,
boolean sys,
byte plc,
TransactionConcurrency concurrency,
TransactionIsolation isolation,
boolean invalidate,
long timeout,
int txSize,
GridCacheVersion nearXidVer,
Map<UUID,Collection<UUID>> txNodes,
UUID subjId,
int taskNameHash)
This constructor is meant for optimistic transactions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInvalidPartition(GridCacheContext cacheCtx,
int part) |
void |
addWrite(GridCacheContext cacheCtx,
GridCacheOperation op,
IgniteTxKey key,
CacheObject val,
Collection<T2<javax.cache.processor.EntryProcessor<Object,Object,Object>,Object[]>> entryProcessors,
long ttl,
boolean skipStore) |
void |
addWrite(IgniteTxEntry entry,
ClassLoader ldr) |
boolean |
dht() |
boolean |
enforceSerializable()
For Partitioned caches, this flag is
false for remote DHT and remote NEAR
transactions because serializability of transaction is enforced on primary node. |
UUID |
eventNodeId() |
Collection<UUID> |
masterNodeIds() |
UUID |
nearNodeId() |
GridCacheVersion |
nearXidVersion() |
UUID |
otherNodeId()
Gets ID of additional node involved.
|
String |
toString() |
void |
transactionNodes(Map<UUID,Collection<UUID>> txNodes) |
protected boolean |
updateNearCache(GridCacheContext cacheCtx,
KeyCacheObject key,
AffinityTopologyVersion topVer)
Checks whether near cache should be updated.
|
activeCacheIds, addExplicit, allEntries, alternateVersions, clearEntry, commit, commitAsync, doneRemote, empty, entry, forceCommit, hasWriteKey, invalidate, isStarted, onOwnerChanged, originatingNodeId, peek, prepare, prepareAsync, readEntries, readMap, readSet, remoteThreadId, removed, rollback, rollbackAsync, seal, setWriteValue, writeEntries, writeMap, writeSetapplyTransformClosures, awaitCompletion, awaitSignal, checkInternal, close, colocated, commitVersion, commitVersion, completedVersions, concurrency, conflictResolve, currentPrepareFuture, done, endTime, endVersion, endVersion, equals, evictNearEntry, finalizationStatus, finishFuture, hashCode, hasTransforms, implicit, implicitSingle, initCommitVersion, internal, invalidPartitions, ioPolicy, isInvalidate, isNearLocallyMapped, isolation, isRollbackOnly, isSystemInvalidate, local, localResult, lock, lockTimeout, log, markFinalizing, markPreparing, near, needsCompletedVersions, nodeId, onePhaseCommit, onePhaseCommit, onRemap, onTimeout, optimistic, optimisticLockEntries, ownedVersion, ownsLock, ownsLockUnsafe, pessimistic, proxy, readCommitted, readExternal, readResolve, remainingTime, repeatableRead, replicated, resolveTaskName, serializable, setRollbackOnly, signalAll, size, startTime, startVersion, state, state, storeEnabled, storeEnabled, stores, storeUsed, subjectId, syncCommit, syncCommit, syncRollback, syncRollback, system, systemInvalidate, taskNameHash, threadId, timedOut, timeout, timeout, timeoutId, topologyVersion, topologyVersion, topologyVersionSnapshot, transactionNodes, uncommit, unlock, 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, waitaddMeta, close, colocated, commitVersion, commitVersion, completedVersions, concurrency, currentPrepareFuture, done, endVersion, endVersion, finishFuture, hasTransforms, implicit, implicitSingle, internal, invalidPartitions, ioPolicy, isInvalidate, isolation, isRollbackOnly, isSystemInvalidate, local, localResult, markFinalizing, markPreparing, meta, near, needsCompletedVersions, nodeId, onePhaseCommit, onRemap, optimistic, optimisticLockEntries, ownedVersion, ownsLock, ownsLockUnsafe, pessimistic, proxy, readCommitted, remainingTime, removeMeta, repeatableRead, replicated, serializable, setRollbackOnly, size, startTime, startVersion, state, state, storeEnabled, storeUsed, subjectId, syncCommit, syncRollback, system, systemInvalidate, taskNameHash, threadId, timedOut, timeout, timeout, topologyVersion, topologyVersion, topologyVersionSnapshot, transactionNodes, user, writeVersion, writeVersion, xid, xidVersionendTime, onTimeout, timeoutIdpublic GridDhtTxRemote()
Externalizable.public GridDhtTxRemote(GridCacheSharedContext ctx, UUID nearNodeId, IgniteUuid rmtFutId, UUID nodeId, long rmtThreadId, AffinityTopologyVersion topVer, GridCacheVersion xidVer, GridCacheVersion commitVer, boolean sys, byte plc, TransactionConcurrency concurrency, TransactionIsolation isolation, boolean invalidate, long timeout, int txSize, GridCacheVersion nearXidVer, Map<UUID,Collection<UUID>> txNodes, @Nullable UUID subjId, int taskNameHash)
nearNodeId - Near node ID.rmtFutId - Remote future ID.nodeId - Node ID.rmtThreadId - Remote thread ID.topVer - Topology version.xidVer - XID version.commitVer - Commit version.sys - System flag.concurrency - Concurrency level (should be pessimistic).isolation - Transaction isolation.invalidate - Invalidate flag.timeout - Timeout.ctx - Cache context.txSize - Expected transaction size.nearXidVer - Near transaction ID.txNodes - Transaction nodes mapping.public GridDhtTxRemote(GridCacheSharedContext ctx, UUID nearNodeId, IgniteUuid rmtFutId, UUID nodeId, GridCacheVersion nearXidVer, long rmtThreadId, AffinityTopologyVersion topVer, GridCacheVersion xidVer, GridCacheVersion commitVer, boolean sys, byte plc, TransactionConcurrency concurrency, TransactionIsolation isolation, boolean invalidate, long timeout, int txSize, @Nullable UUID subjId, int taskNameHash)
nearNodeId - Near node ID.rmtFutId - Remote future ID.nodeId - Node ID.nearXidVer - Near transaction ID.rmtThreadId - Remote thread ID.topVer - Topology version.xidVer - XID version.commitVer - Commit version.sys - System flag.concurrency - Concurrency level (should be pessimistic).isolation - Transaction isolation.invalidate - Invalidate flag.timeout - Timeout.ctx - Cache context.txSize - Expected transaction size.public void transactionNodes(Map<UUID,Collection<UUID>> txNodes)
transactionNodes in class IgniteTxAdaptertxNodes - Transaction nodes.public boolean dht()
dht in interface IgniteInternalTxdht in class IgniteTxAdapterTrue if DHT transaction.public UUID eventNodeId()
eventNodeId in interface IgniteInternalTxeventNodeId in class GridDistributedTxRemoteAdapterpublic Collection<UUID> masterNodeIds()
masterNodeIds in interface IgniteInternalTxmasterNodeIds in class GridDistributedTxRemoteAdapterpublic UUID otherNodeId()
otherNodeId in interface IgniteInternalTxotherNodeId in class IgniteTxAdapterpublic boolean enforceSerializable()
false for remote DHT and remote NEAR
transactions because serializability of transaction is enforced on primary node. All
other transaction types must enforce it.enforceSerializable in interface IgniteInternalTxenforceSerializable in class IgniteTxAdapterpublic GridCacheVersion nearXidVersion()
nearXidVersion in interface IgniteInternalTxnearXidVersion in class IgniteTxAdapterpublic UUID nearNodeId()
protected boolean updateNearCache(GridCacheContext cacheCtx, KeyCacheObject key, AffinityTopologyVersion topVer)
updateNearCache in class IgniteTxAdapterpublic void addInvalidPartition(GridCacheContext cacheCtx, int part)
addInvalidPartition in interface IgniteInternalTxaddInvalidPartition in class IgniteTxAdaptercacheCtx - Cache context.part - Invalid partition.public void addWrite(IgniteTxEntry entry, ClassLoader ldr) throws IgniteCheckedException
entry - Write entry.ldr - Class loader.IgniteCheckedException - If failed.public void addWrite(GridCacheContext cacheCtx, GridCacheOperation op, IgniteTxKey key, @Nullable CacheObject val, @Nullable Collection<T2<javax.cache.processor.EntryProcessor<Object,Object,Object>,Object[]>> entryProcessors, long ttl, boolean skipStore)
cacheCtx - Cache context.op - Write operation.key - Key to add to write set.val - Value.entryProcessors - Entry processors.ttl - TTL.skipStore - Skip store flag.public String toString()
toString in class GridDistributedTxRemoteAdapter
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015