public class GridNearTxRemote<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 |
|---|
GridNearTxRemote()
Empty constructor required for
Externalizable. |
GridNearTxRemote(ClassLoader ldr,
UUID nodeId,
UUID nearNodeId,
long rmtThreadId,
GridCacheVersion xidVer,
GridCacheVersion commitVer,
GridCacheTxConcurrency concurrency,
GridCacheTxIsolation isolation,
boolean invalidate,
long timeout,
Collection<GridCacheTxEntry<K,V>> writeEntries,
GridCacheContext<K,V> ctx,
int txSize,
Object grpLockKey,
UUID subjId)
This constructor is meant for optimistic transactions.
|
GridNearTxRemote(UUID nodeId,
UUID nearNodeId,
GridCacheVersion nearXidVer,
long rmtThreadId,
GridCacheVersion xidVer,
GridCacheVersion commitVer,
GridCacheTxConcurrency concurrency,
GridCacheTxIsolation isolation,
boolean invalidate,
long timeout,
K key,
byte[] keyBytes,
V val,
byte[] valBytes,
GridCacheVersion drVer,
GridCacheContext<K,V> ctx,
int txSize,
Object grpLockKey,
UUID subjId)
This constructor is meant for pessimistic transactions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEntries(ClassLoader ldr,
Iterable<GridCacheTxEntry<K,V>> entries)
Adds entries to started near remote tx.
|
void |
addEvicted(K key,
byte[] bytes)
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<K> |
evicted() |
Collection<byte[]> |
evictedBytes() |
boolean |
groupLock() |
boolean |
hasEvictedBytes() |
void |
markGroupLock()
Marks near local transaction as group lock.
|
Collection<UUID> |
masterNodeIds() |
boolean |
near() |
UUID |
nearNodeId() |
GridCacheVersion |
nearXidVersion() |
GridCacheVersion |
ownedVersion(K key)
Gets owned version for near remote transaction.
|
void |
ownedVersions(Map<K,GridCacheVersion> vers)
Adds owned versions to map.
|
String |
toString() |
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, writeSetaddInvalidPartition, applyTransformClosures, awaitCompletion, awaitSignal, awaitSignal, checkInternal, close, colocated, commitVersion, commitVersion, completedVersions, concurrency, dht, done, drResolveConflict, endTime, endVersion, endVersion, equals, evictNearEntry, finalizationStatus, finishFuture, groupLockEntry, groupLockKey, hashCode, implicit, implicitSingle, initCommitVersion, internal, invalidPartitions, isInvalidate, isNearLocallyMapped, isolation, isRollbackOnly, isSystemInvalidate, local, lock, lockTimeout, log, markFinalizing, markPreparing, needsCompletedVersions, nodeId, onePhaseCommit, onePhaseCommit, onTimeout, optimistic, optimisticLockEntries, otherNodeId, 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, transactionNodes, 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, colocated, commitVersion, commitVersion, completedVersions, dht, done, endVersion, endVersion, finishFuture, groupLockKey, implicitSingle, internal, invalidPartitions, isSystemInvalidate, local, markFinalizing, markPreparing, needsCompletedVersions, onePhaseCommit, optimistic, optimisticLockEntries, otherNodeId, ownsLock, ownsLockUnsafe, pessimistic, readCommitted, recoveryWrites, remainingTime, repeatableRead, replicated, serializable, size, startVersion, state, subjectId, syncCommit, syncRollback, systemInvalidate, timedOut, topologyVersion, topologyVersion, transactionNodes, 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 GridNearTxRemote()
Externalizable.public GridNearTxRemote(ClassLoader ldr, UUID nodeId, UUID nearNodeId, long rmtThreadId, GridCacheVersion xidVer, GridCacheVersion commitVer, GridCacheTxConcurrency concurrency, GridCacheTxIsolation isolation, boolean invalidate, long timeout, Collection<GridCacheTxEntry<K,V>> writeEntries, GridCacheContext<K,V> ctx, int txSize, @Nullable Object grpLockKey, @Nullable UUID subjId) throws GridException
ldr - Class loader.nodeId - Node ID.nearNodeId - Near node ID.rmtThreadId - Remote thread ID.xidVer - XID version.commitVer - Commit version.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.GridException - If unmarshalling failed.public GridNearTxRemote(UUID nodeId, UUID nearNodeId, GridCacheVersion nearXidVer, long rmtThreadId, GridCacheVersion xidVer, GridCacheVersion commitVer, GridCacheTxConcurrency concurrency, GridCacheTxIsolation isolation, boolean invalidate, long timeout, K key, byte[] keyBytes, V val, byte[] valBytes, @Nullable GridCacheVersion drVer, GridCacheContext<K,V> ctx, int txSize, @Nullable Object grpLockKey, @Nullable UUID subjId) throws GridException
nodeId - Node ID.nearNodeId - Near node ID.nearXidVer - Near transaction ID.rmtThreadId - Remote thread ID.xidVer - XID version.commitVer - Commit version.concurrency - Concurrency level (should be pessimistic).isolation - Transaction isolation.invalidate - Invalidate flag.timeout - Timeout.key - Key.keyBytes - Key bytes.val - Value.valBytes - Value bytes.drVer - DR version.ctx - Cache registry.txSize - Ecpected transaction size.grpLockKey - Collection of group lock keys if this is a group-lock transaction.GridException - If failed.public boolean near()
near in interface GridCacheTxEx<K,V>near in class GridCacheTxAdapter<K,V>True if near transaction.public UUID eventNodeId()
eventNodeId in interface GridCacheTxEx<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 GridCacheTxEx<K,V>enforceSerializable in class GridCacheTxAdapter<K,V>public GridCacheVersion ownedVersion(K key)
ownedVersion in interface GridCacheTxEx<K,V>ownedVersion in class GridCacheTxAdapter<K,V>key - Key to get version for.public void markGroupLock()
public boolean groupLock()
groupLock in interface GridCacheTxEx<K,V>groupLock in class GridCacheTxAdapter<K,V>True if transaction group-locked.public GridCacheVersion nearXidVersion()
GridCacheTxAdapternearXidVersion in interface GridCacheTxEx<K,V>nearXidVersion in class GridCacheTxAdapter<K,V>public void ownedVersions(Map<K,GridCacheVersion> vers)
vers - Map of owned versions.public UUID nearNodeId()
public Collection<UUID> masterNodeIds()
masterNodeIds in interface GridCacheTxEx<K,V>masterNodeIds in class GridDistributedTxRemoteAdapter<K,V>public Collection<K> evicted()
public Collection<byte[]> evictedBytes()
public void addEvicted(K key, byte[] bytes)
key - Evicted key.bytes - Bytes of evicted key.public boolean hasEvictedBytes()
True if transaction contains a valid list of evicted bytes.public void addEntries(ClassLoader ldr, Iterable<GridCacheTxEntry<K,V>> entries) throws GridException
ldr - Class loader.entries - Entries to add.GridException - If failed.public String toString()
toString in class GridDistributedTxRemoteAdapter<K,V>Copyright © 2014. All rights reserved.