public class GridNearTxRemote<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 |
|---|
GridNearTxRemote()
Empty constructor required for
Externalizable. |
GridNearTxRemote(GridCacheSharedContext<K,V> ctx,
ClassLoader ldr,
UUID nodeId,
UUID nearNodeId,
long rmtThreadId,
GridCacheVersion xidVer,
GridCacheVersion commitVer,
boolean sys,
TransactionConcurrency concurrency,
TransactionIsolation isolation,
boolean invalidate,
long timeout,
Collection<IgniteTxEntry<K,V>> writeEntries,
int txSize,
IgniteTxKey grpLockKey,
UUID subjId,
int taskNameHash)
This constructor is meant for optimistic transactions.
|
GridNearTxRemote(GridCacheSharedContext<K,V> ctx,
UUID nodeId,
UUID nearNodeId,
GridCacheVersion nearXidVer,
long rmtThreadId,
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEntries(ClassLoader ldr,
Iterable<IgniteTxEntry<K,V>> entries)
Adds entries to started near remote tx.
|
boolean |
addEntry(GridCacheContext<K,V> cacheCtx,
IgniteTxKey<K> key,
byte[] keyBytes,
GridCacheOperation op,
V val,
byte[] valBytes,
GridCacheVersion drVer) |
void |
addEvicted(IgniteTxKey<K> key)
Adds evicted key bytes to evicted collection.
|
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<IgniteTxKey<K>> |
evicted() |
boolean |
groupLock() |
void |
markGroupLock()
Marks near local transaction as group lock.
|
Collection<UUID> |
masterNodeIds() |
boolean |
near() |
UUID |
nearNodeId() |
GridCacheVersion |
nearXidVersion() |
GridCacheVersion |
ownedVersion(IgniteTxKey<K> key)
Gets owned version for near remote transaction.
|
void |
ownedVersions(Map<IgniteTxKey<K>,GridCacheVersion> vers)
Adds owned versions to map.
|
String |
toString() |
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, writeSetaddInvalidPartition, applyTransformClosures, awaitCompletion, awaitSignal, checkInternal, close, colocated, commitVersion, commitVersion, completedVersions, concurrency, conflictResolve, dht, done, endTime, endVersion, endVersion, equals, evictNearEntry, finalizationStatus, finishFuture, groupLockEntry, groupLockKey, hashCode, hasTransforms, implicit, implicitSingle, initCommitVersion, internal, invalidPartitions, ioPolicy, isInvalidate, isNearLocallyMapped, isolation, isRollbackOnly, isSystemInvalidate, local, lock, lockTimeout, log, markFinalizing, markPreparing, needsCompletedVersions, nodeId, onePhaseCommit, onePhaseCommit, onTimeout, optimistic, optimisticLockEntries, otherNodeId, 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, updateNearCache, 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, waitaddInvalidPartition, addMeta, close, colocated, commitVersion, commitVersion, completedVersions, concurrency, dht, done, endVersion, endVersion, finishFuture, groupLockKey, hasTransforms, implicit, implicitSingle, internal, invalidPartitions, ioPolicy, isInvalidate, isolation, isRollbackOnly, isSystemInvalidate, local, markFinalizing, markPreparing, meta, needsCompletedVersions, nodeId, onePhaseCommit, optimistic, optimisticLockEntries, otherNodeId, 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 GridNearTxRemote()
Externalizable.public GridNearTxRemote(GridCacheSharedContext<K,V> ctx, ClassLoader ldr, UUID nodeId, UUID nearNodeId, long rmtThreadId, GridCacheVersion xidVer, GridCacheVersion commitVer, boolean sys, TransactionConcurrency concurrency, TransactionIsolation isolation, boolean invalidate, long timeout, Collection<IgniteTxEntry<K,V>> writeEntries, int txSize, @Nullable IgniteTxKey grpLockKey, @Nullable UUID subjId, int taskNameHash) throws IgniteCheckedException
ldr - Class loader.nodeId - Node ID.nearNodeId - Near node ID.rmtThreadId - Remote thread ID.xidVer - XID version.commitVer - Commit version.sys - System flag.concurrency - Concurrency level (should be pessimistic).isolation - Transaction isolation.invalidate - Invalidate flag.timeout - Timeout.writeEntries - Write entries.ctx - Cache registry.txSize - Expected transaction size.grpLockKey - Group lock key if this is a group-lock transaction.IgniteCheckedException - If unmarshalling failed.public GridNearTxRemote(GridCacheSharedContext<K,V> ctx, UUID nodeId, UUID nearNodeId, GridCacheVersion nearXidVer, long rmtThreadId, GridCacheVersion xidVer, GridCacheVersion commitVer, boolean sys, TransactionConcurrency concurrency, TransactionIsolation isolation, boolean invalidate, long timeout, int txSize, @Nullable IgniteTxKey grpLockKey, @Nullable UUID subjId, int taskNameHash)
nodeId - Node ID.nearNodeId - Near node ID.nearXidVer - Near transaction ID.rmtThreadId - Remote thread ID.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 registry.txSize - Expected transaction size.grpLockKey - Collection of group lock keys if this is a group-lock transaction.public boolean near()
near in interface IgniteInternalTx<K,V>near in class IgniteTxAdapter<K,V>True if near transaction.public UUID eventNodeId()
eventNodeId in interface IgniteInternalTx<K,V>eventNodeId in class GridDistributedTxRemoteAdapter<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 ownedVersion(IgniteTxKey<K> key)
ownedVersion in interface IgniteInternalTx<K,V>ownedVersion in class IgniteTxAdapter<K,V>key - Key to get version for.public void markGroupLock()
public boolean groupLock()
groupLock in interface IgniteInternalTx<K,V>groupLock in class IgniteTxAdapter<K,V>True if transaction group-locked.public GridCacheVersion nearXidVersion()
IgniteTxAdapternearXidVersion in interface IgniteInternalTx<K,V>nearXidVersion in class IgniteTxAdapter<K,V>public void ownedVersions(Map<IgniteTxKey<K>,GridCacheVersion> vers)
vers - Map of owned versions.public UUID nearNodeId()
public Collection<UUID> masterNodeIds()
masterNodeIds in interface IgniteInternalTx<K,V>masterNodeIds in class GridDistributedTxRemoteAdapter<K,V>public Collection<IgniteTxKey<K>> evicted()
public void addEvicted(IgniteTxKey<K> key)
key - Evicted key.public void addEntries(ClassLoader ldr, Iterable<IgniteTxEntry<K,V>> entries) throws IgniteCheckedException
ldr - Class loader.entries - Entries to add.IgniteCheckedException - If failed.public boolean addEntry(GridCacheContext<K,V> cacheCtx, IgniteTxKey<K> key, byte[] keyBytes, GridCacheOperation op, V val, byte[] valBytes, @Nullable GridCacheVersion drVer) throws IgniteCheckedException
key - Key to add to read set.keyBytes - Key bytes.val - Value.valBytes - Value bytes.drVer - Data center replication version.True if entry has been enlisted.IgniteCheckedException - If failed.public String toString()
toString in class GridDistributedTxRemoteAdapter<K,V>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015