public class GridNearTxRemote extends GridDistributedTxRemoteAdapter
GridMetadataAwareAdapter.EntryKeyIgniteInternalTx.FinalizationStatustxStatecctx, 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 |
|---|
GridNearTxRemote()
Empty constructor required for
Externalizable. |
GridNearTxRemote(GridCacheSharedContext ctx,
AffinityTopologyVersion topVer,
ClassLoader ldr,
UUID nodeId,
UUID nearNodeId,
GridCacheVersion xidVer,
GridCacheVersion commitVer,
boolean sys,
byte plc,
TransactionConcurrency concurrency,
TransactionIsolation isolation,
boolean invalidate,
long timeout,
Collection<IgniteTxEntry> writeEntries,
int txSize,
UUID subjId,
int taskNameHash)
This constructor is meant for optimistic transactions.
|
GridNearTxRemote(GridCacheSharedContext ctx,
AffinityTopologyVersion topVer,
UUID nodeId,
UUID nearNodeId,
GridCacheVersion nearXidVer,
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 |
addEntries(ClassLoader ldr,
Iterable<IgniteTxEntry> entries)
Adds entries to started near remote tx.
|
boolean |
addEntry(GridCacheContext cacheCtx,
IgniteTxKey key,
GridCacheOperation op,
CacheObject val,
GridCacheVersion drVer,
boolean skipStore,
boolean keepBinary) |
UUID |
eventNodeId() |
Collection<IgniteTxKey> |
evicted() |
Collection<UUID> |
masterNodeIds() |
boolean |
near() |
UUID |
nearNodeId() |
GridCacheVersion |
nearXidVersion() |
GridCacheVersion |
ownedVersion(IgniteTxKey key)
Gets owned version for near remote transaction.
|
void |
ownedVersions(Map<IgniteTxKey,GridCacheVersion> vers)
Adds owned versions to map.
|
void |
setPartitionUpdateCounters(long[] cntrs) |
String |
toString() |
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, txState, writeEntries, writeMap, writeSetaddInvalidPartition, applyTransformClosures, batchStoreCommit, checkInternal, colocated, commitVersion, commitVersion, completedVersions, concurrency, conflictResolve, currentPrepareFuture, dht, done, endVersion, equals, errorWhenCommitting, evictNearEntry, finalizationStatus, finishFuture, hashCode, implicit, implicitSingle, internal, invalidPartitions, ioPolicy, isInvalidate, isNearLocallyMapped, isolation, isRollbackOnly, isSystemInvalidate, isWriteToStoreFromDhtValid, local, localResult, log, markFinalizing, needReturnValue, needReturnValue, needsCompletedVersions, nodeId, onePhaseCommit, onePhaseCommit, optimistic, optimisticLockEntries, otherNodeId, 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, transactionNodes, uncommit, updateNearCache, user, writeExternal, writeVersion, writeVersion, xid, xidVersionaddMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, clone, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, readExternalMeta, removeAllMeta, removeMeta, removeMeta, replaceMeta, writeExternalMetafinalize, getClass, notify, notifyAll, wait, wait, waitaddInvalidPartition, addMeta, colocated, commitVersion, commitVersion, completedVersions, concurrency, currentPrepareFuture, dht, done, endVersion, errorWhenCommitting, finishFuture, implicit, implicitSingle, internal, invalidPartitions, ioPolicy, isInvalidate, isolation, isRollbackOnly, isSystemInvalidate, local, localResult, markFinalizing, meta, needsCompletedVersions, nodeId, onePhaseCommit, optimistic, optimisticLockEntries, otherNodeId, 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, xidVersionpublic GridNearTxRemote()
Externalizable.public GridNearTxRemote(GridCacheSharedContext ctx, AffinityTopologyVersion topVer, ClassLoader ldr, UUID nodeId, UUID nearNodeId, GridCacheVersion xidVer, GridCacheVersion commitVer, boolean sys, byte plc, TransactionConcurrency concurrency, TransactionIsolation isolation, boolean invalidate, long timeout, Collection<IgniteTxEntry> writeEntries, int txSize, @Nullable UUID subjId, int taskNameHash) throws IgniteCheckedException
topVer - Transaction topology version.ldr - Class loader.nodeId - Node ID.nearNodeId - Near node ID.xidVer - XID version.commitVer - Commit version.sys - System flag.plc - IO policy.concurrency - Concurrency level (should be pessimistic).isolation - Transaction isolation.invalidate - Invalidate flag.timeout - Timeout.writeEntries - Write entries.ctx - Cache registry.txSize - Expected transaction size.subjId - Subject ID.taskNameHash - Task name hash code.IgniteCheckedException - If unmarshalling failed.public GridNearTxRemote(GridCacheSharedContext ctx, AffinityTopologyVersion topVer, UUID nodeId, UUID nearNodeId, GridCacheVersion nearXidVer, GridCacheVersion xidVer, GridCacheVersion commitVer, boolean sys, byte plc, TransactionConcurrency concurrency, TransactionIsolation isolation, boolean invalidate, long timeout, int txSize, @Nullable UUID subjId, int taskNameHash)
topVer - Transaction topology version.nodeId - Node ID.nearNodeId - Near node ID.nearXidVer - Near transaction ID.xidVer - XID version.commitVer - Commit version.sys - System flag.plc - IO policy.concurrency - Concurrency level (should be pessimistic).isolation - Transaction isolation.invalidate - Invalidate flag.timeout - Timeout.ctx - Cache registry.txSize - Expected transaction size.subjId - Subject ID.taskNameHash - Task name hash code.public boolean near()
near in interface IgniteInternalTxnear in class IgniteTxAdapterTrue if near transaction.public UUID eventNodeId()
eventNodeId in interface IgniteInternalTxeventNodeId in class GridDistributedTxRemoteAdapterpublic GridCacheVersion ownedVersion(IgniteTxKey key)
ownedVersion in interface IgniteInternalTxownedVersion in class IgniteTxAdapterkey - Key to get version for.public GridCacheVersion nearXidVersion()
IgniteTxAdapternearXidVersion in interface IgniteInternalTxnearXidVersion in class IgniteTxAdapterpublic void setPartitionUpdateCounters(long[] cntrs)
GridDistributedTxRemoteAdaptersetPartitionUpdateCounters in interface IgniteTxRemoteExsetPartitionUpdateCounters in class GridDistributedTxRemoteAdaptercntrs - Partition indexes.public void ownedVersions(Map<IgniteTxKey,GridCacheVersion> vers)
vers - Map of owned versions.public UUID nearNodeId()
public Collection<UUID> masterNodeIds()
public Collection<IgniteTxKey> evicted()
public void addEntries(ClassLoader ldr, Iterable<IgniteTxEntry> entries) throws IgniteCheckedException
ldr - Class loader.entries - Entries to add.IgniteCheckedException - If failed.public boolean addEntry(GridCacheContext cacheCtx, IgniteTxKey key, GridCacheOperation op, CacheObject val, @Nullable GridCacheVersion drVer, boolean skipStore, boolean keepBinary) throws IgniteCheckedException
cacheCtx - Cache context.key - Key to add to read set.op - Operation.val - Value.drVer - Data center replication version.skipStore - Skip store flag.True if entry has been enlisted.IgniteCheckedException - If failed.public String toString()
toString in class GridDistributedTxRemoteAdapter
Follow @ApacheIgnite
Ignite Fabric : ver. 2.2.0 Release Date : September 15 2017