public interface MvccProcessor extends GridProcessor
GridComponent.DiscoveryDataExchangeTypecollectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStop, onReconnected, printMemoryStats, start, stop, validateNode, validateNodevoid onDiscoveryEvent(int evtType,
Collection<ClusterNode> nodes,
long topVer,
@Nullable
DiscoveryCustomMessage customMsg)
evtType - Event type.nodes - Current nodes.topVer - Topology version.customMsg - Messagevoid onExchangeStart(MvccCoordinator mvccCrd, ExchangeContext exchCtx, ClusterNode exchCrd)
mvccCrd - Mvcc coordinator.exchCtx - Exchange context.exchCrd - Exchange coordinator.void onExchangeDone(boolean newCoord,
DiscoCache discoCache,
Map<UUID,GridLongList> activeQueries)
newCoord - New coordinator flag.discoCache - Disco cache.activeQueries - Active queries.void processClientActiveQueries(UUID nodeId, @Nullable GridLongList activeQueries)
nodeId - Node IDactiveQueries - Active queries.@Nullable MvccCoordinator assignedCoordinator()
@Nullable MvccCoordinator currentCoordinator()
@Nullable MvccCoordinator currentCoordinator(AffinityTopologyVersion topVer)
topVer - Topology version.UUID currentCoordinatorId()
void updateCoordinator(MvccCoordinator curCrd)
curCrd - Coordinator.byte state(long crdVer,
long cntr)
throws IgniteCheckedException
crdVer - Mvcc coordinator version.cntr - Mvcc counter.IgniteCheckedException - If fails.byte state(MvccVersion ver) throws IgniteCheckedException
ver - Version to check.IgniteCheckedException - If fails.void updateState(MvccVersion ver, byte state) throws IgniteCheckedException
ver - Version.state - State.IgniteCheckedException - If fails;void updateState(MvccVersion ver, byte state, boolean primary) throws IgniteCheckedException
ver - Version.state - State.primary - Flag if this is primary node.IgniteCheckedException - If fails;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> waitFor(GridCacheContext cctx, MvccVersion locked) throws IgniteCheckedException
cctx - Cache context.locked - Version the entry is locked by.IgniteCheckedException - If failed.void addQueryTracker(MvccQueryTracker tracker)
tracker - Query tracker.void removeQueryTracker(Long id)
id - Query tracker id.MvccSnapshot tryRequestSnapshotLocal() throws ClusterTopologyCheckedException
MvccSnapshot if this is a coordinator node and coordinator is initialized.
Null in other cases.ClusterTopologyCheckedException - If coordinator doesn't match locked topology or not assigned.MvccSnapshot tryRequestSnapshotLocal(@Nullable IgniteInternalTx tx) throws ClusterTopologyCheckedException
tx - Transaction.MvccSnapshot if this is a coordinator node and coordinator is initialized.
Null in other cases.ClusterTopologyCheckedException - If coordinator doesn't match locked topology or not assigned.IgniteInternalFuture<MvccSnapshot> requestSnapshotAsync(IgniteInternalTx tx)
tx - Transaction.void requestSnapshotAsync(MvccSnapshotResponseListener lsnr)
lsnr - Request listener.void requestSnapshotAsync(IgniteInternalTx tx, MvccSnapshotResponseListener lsnr)
tx - Transactionlsnr - Request listener.IgniteInternalFuture<Void> ackTxCommit(MvccSnapshot updateVer)
updateVer - Transaction update version.IgniteInternalFuture<Void> ackTxCommit(MvccVersion updateVer, MvccSnapshot readSnapshot, long qryId)
updateVer - Transaction update version.readSnapshot - Transaction read version.qryId - Query tracker id.void ackTxRollback(MvccVersion updateVer)
updateVer - Transaction update version.void ackTxRollback(MvccVersion updateVer, MvccSnapshot readSnapshot, long qryTrackerId)
updateVer - Transaction update version.readSnapshot - Transaction read version.qryTrackerId - Query tracker id.void ackQueryDone(MvccSnapshot snapshot, long qryId)
snapshot - Query version.qryId - Query tracker ID.IgniteInternalFuture<Void> waitTxsFuture(UUID crdId, GridLongList txs)
crdId - Coordinator ID.txs - Transaction IDs.void dumpDebugInfo(IgniteLogger log, @Nullable IgniteDiagnosticPrepareContext diagCtx)
log - Logger.diagCtx - Diagnostic request.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.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019