public class GridDhtTxRemote<K,V> extends GridDistributedTxRemoteAdapter<K,V>
IgniteInternalTx.FinalizationStatusreadMap, writeMapcctx, concurrency, endVer, grpLockKey, implicit, implicitSingle, internal, invalidate, isDone, isolation, loc, log, nodeId, onePhaseCommit, startTime, startVer, storeEnabled, subjId, syncCommit, syncRollback, taskName, taskNameHash, threadId, timeout, transform, txNodes, txSize, writeVer, xidVer| Constructor and Description |
|---|
GridDhtTxRemote()
Empty constructor required for
Externalizable. |
GridDhtTxRemote(GridCacheSharedContext<K,V> ctx,
UUID nearNodeId,
IgniteUuid rmtFutId,
UUID nodeId,
GridCacheVersion nearXidVer,
long rmtThreadId,
long topVer,
GridCacheVersion xidVer,
GridCacheVersion commitVer,
boolean sys,
TransactionConcurrency concurrency,
TransactionIsolation isolation,
boolean invalidate,
long timeout,
int txSize,
IgniteTxKey grpLockKey,
UUID subjId,
int taskNameHash)
This constructor is meant for pessimistic transactions.
|
GridDhtTxRemote(GridCacheSharedContext<K,V> ctx,
UUID nearNodeId,
IgniteUuid rmtFutId,
UUID nodeId,
long rmtThreadId,
long topVer,
GridCacheVersion xidVer,
GridCacheVersion commitVer,
boolean sys,
TransactionConcurrency concurrency,
TransactionIsolation isolation,
boolean invalidate,
long timeout,
int txSize,
IgniteTxKey grpLockKey,
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<K,V> cacheCtx,
int part) |
void |
addWrite(GridCacheContext<K,V> cacheCtx,
GridCacheOperation op,
IgniteTxKey<K> key,
byte[] keyBytes,
V val,
byte[] valBytes,
Collection<T2<javax.cache.processor.EntryProcessor<K,V,?>,Object[]>> entryProcessors,
long ttl) |
void |
addWrite(IgniteTxEntry<K,V> 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() |
GridCacheVersion |
nearXidVersion() |
UUID |
otherNodeId()
Gets ID of additional node involved.
|
String |
toString() |
protected boolean |
updateNearCache(GridCacheContext<K,V> cacheCtx,
K key,
long topVer)
Checks whether near cache should be updated.
|
activeCacheIds, addExplicit, allEntries, alternateVersions, clearEntry, commit, commitAsync, doneRemote, empty, entry, forceCommit, groupLockKey, 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, done, endTime, endVersion, endVersion, equals, evictNearEntry, finalizationStatus, finishFuture, groupLock, groupLockEntry, groupLockKey, hashCode, hasTransforms, implicit, implicitSingle, initCommitVersion, internal, invalidPartitions, ioPolicy, isInvalidate, isNearLocallyMapped, isolation, isRollbackOnly, isSystemInvalidate, local, lock, lockTimeout, log, markFinalizing, markPreparing, near, needsCompletedVersions, nodeId, onePhaseCommit, onePhaseCommit, onTimeout, optimistic, optimisticLockEntries, ownedVersion, ownsLock, ownsLockUnsafe, pessimistic, proxy, readCommitted, readExternal, readResolve, remainingTime, repeatableRead, replicated, resolveTaskName, serializable, setRollbackOnly, signalAll, size, startTime, startVersion, state, state, store, storeEnabled, storeEnabled, storeUsed, subjectId, syncCommit, syncCommit, syncRollback, syncRollback, system, systemInvalidate, taskNameHash, threadId, timedOut, timeout, timeout, timeoutId, topologyVersion, topologyVersion, transactionNodes, transactionNodes, uncommit, unlock, user, writeExternal, writeVersion, writeVersion, xid, xidVersionaddMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, clone, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, putMetaIfAbsent, readExternalMeta, removeMeta, removeMeta, replaceMeta, writeExternalMetafinalize, getClass, notify, notifyAll, wait, wait, waitaddMeta, close, colocated, commitVersion, commitVersion, completedVersions, concurrency, done, endVersion, endVersion, finishFuture, groupLock, groupLockKey, hasTransforms, implicit, implicitSingle, internal, invalidPartitions, ioPolicy, isInvalidate, isolation, isRollbackOnly, isSystemInvalidate, local, markFinalizing, markPreparing, meta, near, needsCompletedVersions, nodeId, onePhaseCommit, 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, transactionNodes, user, writeVersion, writeVersion, xid, xidVersionendTime, onTimeout, timeoutIdpublic GridDhtTxRemote()
Externalizable.public GridDhtTxRemote(GridCacheSharedContext<K,V> ctx, UUID nearNodeId, IgniteUuid rmtFutId, UUID nodeId, long rmtThreadId, long topVer, GridCacheVersion xidVer, GridCacheVersion commitVer, boolean sys, TransactionConcurrency concurrency, TransactionIsolation isolation, boolean invalidate, long timeout, int txSize, @Nullable IgniteTxKey grpLockKey, 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.grpLockKey - Group lock key if this is a group-lock transaction.nearXidVer - Near transaction ID.txNodes - Transaction nodes mapping.public GridDhtTxRemote(GridCacheSharedContext<K,V> ctx, UUID nearNodeId, IgniteUuid rmtFutId, UUID nodeId, GridCacheVersion nearXidVer, long rmtThreadId, long topVer, GridCacheVersion xidVer, GridCacheVersion commitVer, boolean sys, TransactionConcurrency concurrency, TransactionIsolation isolation, boolean invalidate, long timeout, int txSize, @Nullable IgniteTxKey grpLockKey, @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.grpLockKey - Group lock key if transaction is group-lock.public boolean dht()
dht in interface IgniteInternalTx<K,V>dht in class IgniteTxAdapter<K,V>True if DHT transaction.public UUID eventNodeId()
eventNodeId in interface IgniteInternalTx<K,V>eventNodeId in class GridDistributedTxRemoteAdapter<K,V>public Collection<UUID> masterNodeIds()
masterNodeIds in interface IgniteInternalTx<K,V>masterNodeIds in class GridDistributedTxRemoteAdapter<K,V>public UUID otherNodeId()
otherNodeId in interface IgniteInternalTx<K,V>otherNodeId in class IgniteTxAdapter<K,V>public 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 IgniteInternalTx<K,V>enforceSerializable in class IgniteTxAdapter<K,V>public GridCacheVersion nearXidVersion()
nearXidVersion in interface IgniteInternalTx<K,V>nearXidVersion in class IgniteTxAdapter<K,V>protected boolean updateNearCache(GridCacheContext<K,V> cacheCtx, K key, long topVer)
updateNearCache in class IgniteTxAdapter<K,V>public void addInvalidPartition(GridCacheContext<K,V> cacheCtx, int part)
addInvalidPartition in interface IgniteInternalTx<K,V>addInvalidPartition in class IgniteTxAdapter<K,V>cacheCtx - Cache context.part - Invalid partition.public void addWrite(IgniteTxEntry<K,V> entry, ClassLoader ldr) throws IgniteCheckedException
entry - Write entry.ldr - Class loader.IgniteCheckedException - If failed.public void addWrite(GridCacheContext<K,V> cacheCtx, GridCacheOperation op, IgniteTxKey<K> key, byte[] keyBytes, @Nullable V val, @Nullable byte[] valBytes, @Nullable Collection<T2<javax.cache.processor.EntryProcessor<K,V,?>,Object[]>> entryProcessors, long ttl)
cacheCtx - Cache context.op - Write operation.key - Key to add to write set.keyBytes - Key bytes.val - Value.valBytes - Value bytes.entryProcessors - Entry processors.ttl - TTL.public String toString()
toString in class GridDistributedTxRemoteAdapter<K,V>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015