public class GridDhtTxRemote extends GridDistributedTxRemoteAdapter
GridMetadataAwareAdapter.EntryKey
IgniteInternalTx.FinalizationStatus
txState
cctx, concurrency, 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 |
---|
GridDhtTxRemote()
Empty constructor required for
Externalizable . |
GridDhtTxRemote(GridCacheSharedContext ctx,
UUID nearNodeId,
IgniteUuid rmtFutId,
UUID nodeId,
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,
boolean single)
This constructor is meant for optimistic transactions.
|
GridDhtTxRemote(GridCacheSharedContext ctx,
UUID nearNodeId,
IgniteUuid rmtFutId,
UUID nodeId,
GridCacheVersion nearXidVer,
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.
|
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,
boolean keepBinary) |
void |
addWrite(IgniteTxEntry entry,
ClassLoader ldr) |
boolean |
dht() |
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.
|
activeCachesDeploymentEnabled, addExplicit, allEntries, alternateVersions, clearEntry, commitAsync, commitError, commitRemoteTx, doneRemote, empty, entry, forceCommit, hasWriteKey, invalidate, isStarted, onOwnerChanged, originatingNodeId, peek, prepareRemoteTx, readEntries, readMap, readSet, rollbackAsync, rollbackRemoteTx, salvageTx, seal, setPartitionUpdateCounters, txState, writeEntries, writeMap, writeSet
applyTransformClosures, batchStoreCommit, checkInternal, colocated, commitVersion, commitVersion, completedVersions, concurrency, conflictResolve, currentPrepareFuture, done, endVersion, equals, errorWhenCommitting, evictNearEntry, finalizationStatus, finishFuture, hashCode, implicit, implicitSingle, internal, invalidPartitions, ioPolicy, isInvalidate, isNearLocallyMapped, isolation, isRollbackOnly, isSystemInvalidate, isWriteToStoreFromDhtValid, local, localResult, log, markFinalizing, near, needReturnValue, needReturnValue, needsCompletedVersions, nodeId, onePhaseCommit, onePhaseCommit, optimistic, optimisticLockEntries, ownedVersion, ownsLock, ownsLockUnsafe, pessimistic, readCommitted, readExternal, readResolve, remainingTime, repeatableRead, resolveTaskName, serializable, sessionEnd, setRollbackOnly, size, startTime, state, state, state, storeEnabled, storeEnabled, storeWriteThrough, subjectId, system, systemInvalidate, taskNameHash, threadId, timedOut, timeout, timeout, timeoutException, topologyVersion, topologyVersion, topologyVersionSnapshot, transactionNodes, uncommit, user, writeExternal, writeVersion, writeVersion, xid, xidVersion
addMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, clone, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, readExternalMeta, removeAllMeta, removeMeta, removeMeta, replaceMeta, writeExternalMeta
finalize, getClass, notify, notifyAll, wait, wait, wait
addMeta, colocated, commitVersion, commitVersion, completedVersions, concurrency, currentPrepareFuture, done, endVersion, errorWhenCommitting, finishFuture, implicit, implicitSingle, internal, invalidPartitions, ioPolicy, isInvalidate, isolation, isRollbackOnly, isSystemInvalidate, local, localResult, markFinalizing, meta, near, needsCompletedVersions, nodeId, onePhaseCommit, optimistic, optimisticLockEntries, 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
public GridDhtTxRemote()
Externalizable
.public GridDhtTxRemote(GridCacheSharedContext ctx, UUID nearNodeId, IgniteUuid rmtFutId, UUID nodeId, 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, boolean single)
nearNodeId
- Near node ID.rmtFutId
- Remote future ID.nodeId
- Node 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, 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.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 IgniteTxAdapter
txNodes
- Transaction nodes.public boolean dht()
dht
in interface IgniteInternalTx
dht
in class IgniteTxAdapter
True
if DHT transaction.public UUID eventNodeId()
eventNodeId
in interface IgniteInternalTx
eventNodeId
in class GridDistributedTxRemoteAdapter
public Collection<UUID> masterNodeIds()
public UUID otherNodeId()
otherNodeId
in interface IgniteInternalTx
otherNodeId
in class IgniteTxAdapter
public GridCacheVersion nearXidVersion()
nearXidVersion
in interface IgniteInternalTx
nearXidVersion
in class IgniteTxAdapter
public UUID nearNodeId()
protected boolean updateNearCache(GridCacheContext cacheCtx, KeyCacheObject key, AffinityTopologyVersion topVer)
updateNearCache
in class IgniteTxAdapter
public void addInvalidPartition(GridCacheContext cacheCtx, int part)
addInvalidPartition
in interface IgniteInternalTx
addInvalidPartition
in class IgniteTxAdapter
cacheCtx
- 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, boolean keepBinary)
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. 2.0.0 Release Date : April 30 2017