public interface MvccProcessor extends GridProcessor
GridComponent.DiscoveryDataExchangeType| Modifier and Type | Method and Description |
|---|---|
void |
ackQueryDone(MvccSnapshot snapshot,
long qryId) |
IgniteInternalFuture<Void> |
ackTxCommit(MvccSnapshot updateVer) |
void |
ackTxRollback(MvccVersion updateVer) |
void |
addQueryTracker(MvccQueryTracker tracker) |
Optional<? extends MvccVersion> |
checkWaiting(MvccVersion mvccVer)
Checks whether one tx is waiting for another tx.
|
@NotNull MvccCoordinator |
currentCoordinator() |
void |
dumpDebugInfo(IgniteLogger log,
@Nullable IgniteDiagnosticPrepareContext diagCtx) |
void |
ensureStarted()
Starts MVCC processor (i.e. initialises data structures and vacuum) if it has not been started yet.
|
void |
failWaiter(MvccVersion mvccVer,
Exception e)
Unfreezes waiter for specific version failing it with passed exception.
|
boolean |
hasLocalTransaction(long crd,
long cntr) |
boolean |
mvccEnabled() |
void |
onCacheStop(GridCacheContext cctx)
Cache stop callback.
|
void |
onExchangeDone(DiscoCache discoCache)
Exchange done callback.
|
void |
onLocalJoin(DiscoveryEvent evt,
DiscoCache discoCache)
Local join callback.
|
void |
preProcessCacheConfiguration(CacheConfiguration ccfg)
Pre-processes cache configuration before start.
|
void |
registerLocalTransaction(long crd,
long cntr) |
void |
releaseWaiters(MvccVersion locked) |
void |
removeQueryTracker(Long id) |
IgniteInternalFuture<MvccSnapshot> |
requestReadSnapshotAsync()
Requests snapshot on Mvcc coordinator.
|
void |
requestReadSnapshotAsync(MvccCoordinator crd,
MvccSnapshotResponseListener lsnr)
Requests snapshot on Mvcc coordinator.
|
MvccSnapshot |
requestReadSnapshotLocal() |
IgniteInternalFuture<MvccSnapshot> |
requestWriteSnapshotAsync()
Requests snapshot on Mvcc coordinator.
|
void |
requestWriteSnapshotAsync(MvccCoordinator crd,
MvccSnapshotResponseListener lsnr)
Requests snapshot on Mvcc coordinator.
|
MvccSnapshot |
requestWriteSnapshotLocal() |
byte |
state(long crdVer,
long cntr) |
byte |
state(MvccVersion ver) |
void |
stopTxLog()
Force txLog stop.
|
void |
updateState(MvccVersion ver,
byte state) |
void |
updateState(MvccVersion ver,
byte state,
boolean primary) |
void |
validateCacheConfiguration(CacheConfiguration ccfg)
Validates cache configuration before start.
|
IgniteInternalFuture<Void> |
waitForLock(GridCacheContext cctx,
MvccVersion waiterVer,
MvccVersion blockerVer)
Stands in the lock wait queue for the current lock holder.
|
collectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStop, onReconnected, printMemoryStats, start, stop, validateNode, validateNodevoid onLocalJoin(DiscoveryEvent evt, DiscoCache discoCache)
evt - Discovery event.discoCache - Disco cache.void onExchangeDone(DiscoCache discoCache)
discoCache - Disco cache.@NotNull @NotNull MvccCoordinator currentCoordinator()
byte state(long crdVer,
long cntr)
crdVer - Mvcc coordinator version.cntr - Mvcc counter.byte state(MvccVersion ver)
ver - Version to check.void updateState(MvccVersion ver, byte state)
ver - Version.state - State.void updateState(MvccVersion ver, byte state, boolean primary)
ver - Version.state - State.primary - Flag if this is primary node.void registerLocalTransaction(long crd,
long cntr)
crd - Mvcc coordinator version.cntr - Mvcc counter.boolean hasLocalTransaction(long crd,
long cntr)
crd - Mvcc coordinator version.cntr - Mvcc counter.True if there is an active local transaction with given version.IgniteInternalFuture<Void> waitForLock(GridCacheContext cctx, MvccVersion waiterVer, MvccVersion blockerVer)
cctx - Cache context.waiterVer - Version of the waiting tx.blockerVer - Version the entry is locked by.void releaseWaiters(MvccVersion locked)
locked - Version the entry is locked by.Optional<? extends MvccVersion> checkWaiting(MvccVersion mvccVer)
mvccVer - Version of transaction which is checked for being waiting.void failWaiter(MvccVersion mvccVer, Exception e)
mvccVer - Version of a waiter to fail.e - Exception reflecting failure reason.void addQueryTracker(MvccQueryTracker tracker)
tracker - Query tracker.void removeQueryTracker(Long id)
id - Query tracker id.MvccSnapshot requestReadSnapshotLocal()
MvccSnapshot if this is a coordinator node and coordinator is initialized.
Null in other cases.IgniteInternalFuture<MvccSnapshot> requestReadSnapshotAsync()
void requestReadSnapshotAsync(MvccCoordinator crd, MvccSnapshotResponseListener lsnr)
crd - Expected coordinator.lsnr - Request listener.MvccSnapshot requestWriteSnapshotLocal()
MvccSnapshot if this is a coordinator node and coordinator is initialized.
Null in other cases.IgniteInternalFuture<MvccSnapshot> requestWriteSnapshotAsync()
void requestWriteSnapshotAsync(MvccCoordinator crd, MvccSnapshotResponseListener lsnr)
crd - Expected coordinator.lsnr - Request listener.void ackQueryDone(MvccSnapshot snapshot, long qryId)
snapshot - Query version.qryId - Query tracker ID.IgniteInternalFuture<Void> ackTxCommit(MvccSnapshot updateVer)
updateVer - Transaction update version.void ackTxRollback(MvccVersion updateVer)
updateVer - Transaction update version.boolean mvccEnabled()
True if at least one cache with
CacheAtomicityMode.TRANSACTIONAL_SNAPSHOT mode is registered.void preProcessCacheConfiguration(CacheConfiguration ccfg)
ccfg - Cache configuration to pre-process.void validateCacheConfiguration(CacheConfiguration ccfg) throws IgniteCheckedException
ccfg - Cache configuration to validate.IgniteCheckedException - If validation failed.void ensureStarted()
throws IgniteCheckedException
IgniteCheckedException - If failed to initialize.void onCacheStop(GridCacheContext cctx)
cctx - Cache context.void stopTxLog()
void dumpDebugInfo(IgniteLogger log, @Nullable @Nullable IgniteDiagnosticPrepareContext diagCtx)
log - Logger.diagCtx - Diagnostic request.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.0 Release Date : February 27 2020