public class GridDhtTxRemote<K,V> extends GridDistributedTxRemoteAdapter<K,V>
GridCacheTxEx.FinalizationStatusreadMap, writeMapcctx, concurrency, endVer, grpLockKey, implicit, implicitSingle, internal, invalidate, isDone, isolation, loc, log, nodeId, onePhaseCommit, startTime, startVer, storeEnabled, subjId, swapOrOffheapEnabled, threadId, timeout, txSize, writeVer, xidVer| Constructor and Description |
|---|
GridDhtTxRemote()
Empty constructor required for
Externalizable. |
GridDhtTxRemote(UUID nearNodeId,
GridUuid rmtFutId,
UUID nodeId,
GridCacheVersion nearXidVer,
long rmtThreadId,
long topVer,
GridCacheVersion xidVer,
GridCacheVersion commitVer,
GridCacheTxConcurrency concurrency,
GridCacheTxIsolation isolation,
boolean invalidate,
long timeout,
GridCacheContext<K,V> ctx,
int txSize,
Object grpLockKey,
UUID subjId)
This constructor is meant for pessimistic transactions.
|
GridDhtTxRemote(UUID nearNodeId,
GridUuid rmtFutId,
UUID nodeId,
long rmtThreadId,
long topVer,
GridCacheVersion xidVer,
GridCacheVersion commitVer,
GridCacheTxConcurrency concurrency,
GridCacheTxIsolation isolation,
boolean invalidate,
long timeout,
GridCacheContext<K,V> ctx,
int txSize,
Object grpLockKey,
GridCacheVersion nearXidVer,
Map<UUID,Collection<UUID>> txNodes,
UUID subjId)
This constructor is meant for optimistic transactions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInvalidPartition(int part) |
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() |
Map<UUID,Collection<UUID>> |
transactionNodes() |
protected boolean |
updateNearCache()
Checks whether near cache should be updated.
|
addExplicit, addLocalCandidates, addRead, addRemoteCandidates, addWrite, allEntries, alternateVersions, clearEntry, commit, commitAsync, doneRemote, empty, entry, forceCommit, groupLockKey, hasReadKey, hasWriteKey, invalidate, isStarted, localCandidates, onOwnerChanged, originatingNodeId, peek, prepare, prepareAsync, readEntries, readMap, readSet, remoteThreadId, removed, rollback, rollbackAsync, seal, setWriteValue, writeEntries, writeMap, writeSetapplyTransformClosures, awaitCompletion, awaitSignal, awaitSignal, checkInternal, close, colocated, commitVersion, commitVersion, completedVersions, concurrency, done, drResolveConflict, endTime, endVersion, endVersion, equals, evictNearEntry, finalizationStatus, finishFuture, groupLock, groupLockEntry, groupLockKey, hashCode, implicit, implicitSingle, initCommitVersion, internal, invalidPartitions, isInvalidate, isNearLocallyMapped, isolation, isRollbackOnly, isSystemInvalidate, local, lock, lockTimeout, log, markFinalizing, markPreparing, near, needsCompletedVersions, nodeId, onePhaseCommit, onePhaseCommit, onTimeout, optimistic, optimisticLockEntries, ownedVersion, ownsLock, ownsLockUnsafe, pessimistic, readCommitted, readExternal, readResolve, recoveryWrites, recoveryWrites, remainingTime, repeatableRead, replicated, serializable, setRollbackOnly, signalAll, size, startTime, startVersion, state, state, subjectId, syncCommit, syncRollback, systemInvalidate, threadId, timedOut, timeout, timeout, timeoutId, topologyVersion, topologyVersion, 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, waitcolocated, commitVersion, commitVersion, completedVersions, done, endVersion, endVersion, finishFuture, groupLock, groupLockKey, implicitSingle, internal, invalidPartitions, isSystemInvalidate, local, markFinalizing, markPreparing, near, needsCompletedVersions, onePhaseCommit, optimistic, optimisticLockEntries, ownedVersion, ownsLock, ownsLockUnsafe, pessimistic, readCommitted, recoveryWrites, remainingTime, repeatableRead, replicated, serializable, size, startVersion, state, subjectId, syncCommit, syncRollback, systemInvalidate, timedOut, topologyVersion, topologyVersion, user, writeVersion, writeVersion, xidVersionclose, concurrency, implicit, isInvalidate, isolation, isRollbackOnly, nodeId, setRollbackOnly, startTime, state, threadId, timeout, timeout, xidaddMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, putMetaIfAbsent, removeMeta, removeMeta, replaceMetaendTime, onTimeout, timeoutIdpublic GridDhtTxRemote()
Externalizable.public GridDhtTxRemote(UUID nearNodeId, GridUuid rmtFutId, UUID nodeId, long rmtThreadId, long topVer, GridCacheVersion xidVer, GridCacheVersion commitVer, GridCacheTxConcurrency concurrency, GridCacheTxIsolation isolation, boolean invalidate, long timeout, GridCacheContext<K,V> ctx, int txSize, @Nullable Object grpLockKey, GridCacheVersion nearXidVer, Map<UUID,Collection<UUID>> txNodes, @Nullable UUID subjId)
nearNodeId - Near node ID.rmtFutId - Remote future ID.nodeId - Node ID.rmtThreadId - Remote thread ID.topVer - Topology version.xidVer - XID version.commitVer - Commit version.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(UUID nearNodeId, GridUuid rmtFutId, UUID nodeId, GridCacheVersion nearXidVer, long rmtThreadId, long topVer, GridCacheVersion xidVer, GridCacheVersion commitVer, GridCacheTxConcurrency concurrency, GridCacheTxIsolation isolation, boolean invalidate, long timeout, GridCacheContext<K,V> ctx, int txSize, @Nullable Object grpLockKey, @Nullable UUID subjId)
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.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 GridCacheTxEx<K,V>dht in class GridCacheTxAdapter<K,V>True if DHT transaction.public UUID eventNodeId()
eventNodeId in interface GridCacheTxEx<K,V>eventNodeId in class GridDistributedTxRemoteAdapter<K,V>public Collection<UUID> masterNodeIds()
masterNodeIds in interface GridCacheTxEx<K,V>masterNodeIds in class GridDistributedTxRemoteAdapter<K,V>public UUID otherNodeId()
otherNodeId in interface GridCacheTxEx<K,V>otherNodeId in class GridCacheTxAdapter<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 GridCacheTxEx<K,V>enforceSerializable in class GridCacheTxAdapter<K,V>public GridCacheVersion nearXidVersion()
nearXidVersion in interface GridCacheTxEx<K,V>nearXidVersion in class GridCacheTxAdapter<K,V>public Map<UUID,Collection<UUID>> transactionNodes()
transactionNodes in interface GridCacheTxEx<K,V>transactionNodes in class GridCacheTxAdapter<K,V>protected boolean updateNearCache()
updateNearCache in class GridCacheTxAdapter<K,V>public void addInvalidPartition(int part)
addInvalidPartition in interface GridCacheTxEx<K,V>addInvalidPartition in class GridCacheTxAdapter<K,V>part - Invalid partition.public String toString()
toString in class GridDistributedTxRemoteAdapter<K,V>Copyright © 2014. All rights reserved.