public class GridDistributedTxRemoteAdapter extends IgniteTxAdapter implements IgniteTxRemoteEx
GridMetadataAwareAdapter.EntryKeyIgniteInternalTx.FinalizationStatus| Modifier and Type | Field and Description |
|---|---|
protected IgniteTxRemoteState |
txState |
cctx, concurrency, endVer, implicit, internal, invalidate, isDone, isolation, loc, log, nodeId, onePhaseCommit, startTime, startVer, storeEnabled, subjId, syncMode, taskName, taskNameHash, threadId, timeout, topVer, transform, txNodes, txSize, writeVer, xidVer| Constructor and Description |
|---|
GridDistributedTxRemoteAdapter()
Empty constructor required for
Externalizable. |
GridDistributedTxRemoteAdapter(GridCacheSharedContext<?,?> ctx,
UUID nodeId,
GridCacheVersion xidVer,
GridCacheVersion commitVer,
boolean sys,
byte plc,
TransactionConcurrency concurrency,
TransactionIsolation isolation,
boolean invalidate,
long timeout,
int txSize,
UUID subjId,
int taskNameHash) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
activeCachesDeploymentEnabled() |
protected void |
addExplicit(IgniteTxEntry e)
Adds explicit version if there is one.
|
Collection<IgniteTxEntry> |
allEntries() |
Collection<GridCacheVersion> |
alternateVersions() |
void |
clearEntry(IgniteTxKey key)
Clears entry from transaction as it never happened.
|
void |
commit()
Commits this transaction by initiating
two-phase-commit process. |
IgniteInternalFuture<IgniteInternalTx> |
commitAsync()
Asynchronously commits this transaction by initiating
two-phase-commit process. |
void |
commitError(Throwable e) |
void |
doneRemote(GridCacheVersion baseVer,
Collection<GridCacheVersion> committedVers,
Collection<GridCacheVersion> rolledbackVers,
Collection<GridCacheVersion> pendingVers) |
boolean |
empty() |
IgniteTxEntry |
entry(IgniteTxKey key) |
UUID |
eventNodeId() |
void |
forceCommit()
Forces commit for this tx.
|
boolean |
hasWriteKey(IgniteTxKey key) |
void |
invalidate(boolean invalidate) |
boolean |
isStarted() |
Collection<UUID> |
masterNodeIds() |
boolean |
onOwnerChanged(GridCacheEntryEx entry,
GridCacheMvccCandidate owner)
Callback invoked whenever there is a lock that has been acquired
by this transaction for any of the participating entries.
|
UUID |
originatingNodeId()
Gets node ID which directly started this transaction.
|
GridTuple<CacheObject> |
peek(GridCacheContext cacheCtx,
boolean failFast,
KeyCacheObject key) |
void |
prepare()
Prepare phase.
|
IgniteInternalFuture<IgniteInternalTx> |
prepareAsync()
Prepare stage.
|
Collection<IgniteTxEntry> |
readEntries() |
Map<IgniteTxKey,IgniteTxEntry> |
readMap() |
Set<IgniteTxKey> |
readSet() |
void |
rollback()
Rolls back this transaction.
|
IgniteInternalFuture<IgniteInternalTx> |
rollbackAsync()
Asynchronously rollback this transaction.
|
void |
seal()
Seals transaction for updates.
|
void |
setPartitionUpdateCounters(long[] cntrs) |
String |
toString() |
IgniteTxState |
txState() |
Collection<IgniteTxEntry> |
writeEntries() |
Map<IgniteTxKey,IgniteTxEntry> |
writeMap() |
Set<IgniteTxKey> |
writeSet() |
addInvalidPartition, applyTransformClosures, batchStoreCommit, checkInternal, close, colocated, commitVersion, commitVersion, completedVersions, concurrency, conflictResolve, currentPrepareFuture, dht, done, endTime, endVersion, equals, errorWhenCommitting, evictNearEntry, finalizationStatus, finishFuture, hashCode, hasTransforms, implicit, implicitSingle, internal, invalidPartitions, ioPolicy, isInvalidate, isNearLocallyMapped, isolation, isRollbackOnly, isSystemInvalidate, isWriteToStoreFromDhtValid, local, localResult, log, markFinalizing, markPreparing, near, nearXidVersion, needsCompletedVersions, nodeId, onePhaseCommit, onePhaseCommit, onRemap, onTimeout, optimistic, optimisticLockEntries, otherNodeId, ownedVersion, ownsLock, ownsLockUnsafe, pessimistic, proxy, readCommitted, readExternal, readResolve, remainingTime, repeatableRead, replicated, resolveTaskName, serializable, sessionEnd, setRollbackOnly, size, startTime, state, state, storeEnabled, storeEnabled, storeUsed, subjectId, syncMode, syncMode, system, systemInvalidate, taskNameHash, threadId, timedOut, timeout, timeout, timeoutException, timeoutId, 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, close, colocated, commitVersion, commitVersion, completedVersions, concurrency, currentPrepareFuture, dht, done, endVersion, errorWhenCommitting, finishFuture, hasTransforms, implicit, implicitSingle, internal, invalidPartitions, ioPolicy, isInvalidate, isolation, isRollbackOnly, isSystemInvalidate, local, localResult, markFinalizing, markPreparing, meta, near, nearXidVersion, needsCompletedVersions, nodeId, onePhaseCommit, onRemap, optimistic, optimisticLockEntries, otherNodeId, ownedVersion, ownsLock, ownsLockUnsafe, pessimistic, proxy, readCommitted, remainingTime, removeMeta, repeatableRead, replicated, serializable, setRollbackOnly, size, startTime, state, state, storeEnabled, storeUsed, subjectId, syncMode, system, systemInvalidate, taskNameHash, threadId, timedOut, timeout, timeout, topologyVersion, topologyVersion, topologyVersionSnapshot, transactionNodes, user, writeVersion, writeVersion, xid, xidVersionendTime, onTimeout, timeoutId@GridToStringInclude protected IgniteTxRemoteState txState
public GridDistributedTxRemoteAdapter()
Externalizable.public GridDistributedTxRemoteAdapter(GridCacheSharedContext<?,?> ctx, UUID nodeId, GridCacheVersion xidVer, GridCacheVersion commitVer, boolean sys, byte plc, TransactionConcurrency concurrency, TransactionIsolation isolation, boolean invalidate, long timeout, int txSize, @Nullable UUID subjId, int taskNameHash)
ctx - Cache registry.nodeId - 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.txSize - Expected transaction size.subjId - Subject ID.taskNameHash - Task name hash code.public IgniteTxState txState()
txState in interface IgniteInternalTxpublic UUID eventNodeId()
eventNodeId in interface IgniteInternalTxpublic Collection<UUID> masterNodeIds()
masterNodeIds in interface IgniteInternalTxpublic UUID originatingNodeId()
originatingNodeId in interface IgniteInternalTxpublic boolean activeCachesDeploymentEnabled()
activeCachesDeploymentEnabled in interface IgniteInternalTxtrue or false if the deployment is enabled or disabled for all active caches involved
in this transaction.public boolean empty()
empty in interface IgniteInternalTxpublic void invalidate(boolean invalidate)
invalidate in interface IgniteInternalTxinvalidate in class IgniteTxAdapterinvalidate - Invalidate flag.public Map<IgniteTxKey,IgniteTxEntry> writeMap()
writeMap in interface IgniteInternalTxpublic Map<IgniteTxKey,IgniteTxEntry> readMap()
readMap in interface IgniteInternalTxpublic void seal()
seal in interface IgniteInternalTxpublic GridTuple<CacheObject> peek(GridCacheContext cacheCtx, boolean failFast, KeyCacheObject key) throws GridCacheFilterFailedException
peek in interface IgniteInternalTxcacheCtx - Cache context.failFast - Fail-fast flag.key - Key to look up.GridCacheFilterFailedException - If filter failed and failFast is true.public IgniteTxEntry entry(IgniteTxKey key)
entry in interface IgniteInternalTxkey - Key for the entry.public void clearEntry(IgniteTxKey key)
key - key to be removed.public void doneRemote(GridCacheVersion baseVer, Collection<GridCacheVersion> committedVers, Collection<GridCacheVersion> rolledbackVers, Collection<GridCacheVersion> pendingVers)
doneRemote in interface IgniteTxRemoteExbaseVer - Base version.committedVers - Committed versions.rolledbackVers - Rolled back versions.pendingVers - Pending versions.public void setPartitionUpdateCounters(long[] cntrs)
setPartitionUpdateCounters in interface IgniteTxRemoteExcntrs - Partition update indexes.public boolean onOwnerChanged(GridCacheEntryEx entry, GridCacheMvccCandidate owner)
onOwnerChanged in interface IgniteInternalTxentry - Cache entry.owner - Lock candidate that won ownership of the lock.True if transaction cared about notification.public boolean isStarted()
isStarted in class IgniteTxAdapterTrue if transaction has at least one key enlisted.public boolean hasWriteKey(IgniteTxKey key)
hasWriteKey in interface IgniteInternalTxkey - Key to check.True if key is present.public IgniteInternalFuture<IgniteInternalTx> prepareAsync()
prepareAsync in interface IgniteInternalTxpublic Set<IgniteTxKey> readSet()
readSet in interface IgniteInternalTxpublic Set<IgniteTxKey> writeSet()
writeSet in interface IgniteInternalTxpublic Collection<IgniteTxEntry> allEntries()
allEntries in interface IgniteInternalTxpublic Collection<IgniteTxEntry> writeEntries()
writeEntries in interface IgniteInternalTxpublic Collection<IgniteTxEntry> readEntries()
readEntries in interface IgniteInternalTxpublic void prepare()
throws IgniteCheckedException
prepare in interface IgniteInternalTxIgniteCheckedException - If prepare failed.public void commit()
throws IgniteCheckedException
two-phase-commit process.commit in interface IgniteInternalTxIgniteCheckedException - If commit failed.public void forceCommit()
throws IgniteCheckedException
IgniteCheckedException - If commit failed.public IgniteInternalFuture<IgniteInternalTx> commitAsync()
two-phase-commit process.commitAsync in interface IgniteInternalTxpublic void rollback()
rollback in interface IgniteInternalTxpublic IgniteInternalFuture<IgniteInternalTx> rollbackAsync()
rollbackAsync in interface IgniteInternalTxpublic Collection<GridCacheVersion> alternateVersions()
alternateVersions in interface IgniteInternalTxpublic void commitError(Throwable e)
commitError in interface IgniteInternalTxe - Commit error.protected void addExplicit(IgniteTxEntry e)
e - Transaction entry.public String toString()
toString in class IgniteTxAdapter
Follow @ApacheIgnite
Ignite Fabric : ver. 1.6.0 Release Date : May 18 2016