@GridToStringExclude public class GridCacheSharedContext<K,V> extends Object
| Constructor and Description |
|---|
GridCacheSharedContext(GridKernalContext kernalCtx,
IgniteTxManager txMgr,
GridCacheVersionManager verMgr,
GridCacheMvccManager mvccMgr,
@Nullable IgnitePageStoreManager pageStoreMgr,
@Nullable IgniteWriteAheadLogManager walMgr,
WalStateManager walStateMgr,
IgniteCacheDatabaseSharedManager dbMgr,
IgniteSnapshotManager snapshotMgr,
IgniteCacheSnapshotManager snpMgr,
GridCacheDeploymentManager<K,V> depMgr,
GridCachePartitionExchangeManager<K,V> exchMgr,
CacheAffinitySharedManager<K,V> affMgr,
GridCacheIoManager ioMgr,
GridCacheSharedTtlCleanupManager ttlMgr,
PartitionsEvictManager evictMgr,
CacheJtaManagerAdapter jtaMgr,
Collection<CacheStoreSessionListener> storeSesLsnrs,
MvccCachingManager mvccCachingMgr,
DeadlockDetectionManager deadlockDetectionMgr,
CacheDiagnosticManager diagnosticMgr) |
public GridCacheSharedContext(GridKernalContext kernalCtx, IgniteTxManager txMgr, GridCacheVersionManager verMgr, GridCacheMvccManager mvccMgr, @Nullable @Nullable IgnitePageStoreManager pageStoreMgr, @Nullable @Nullable IgniteWriteAheadLogManager walMgr, WalStateManager walStateMgr, IgniteCacheDatabaseSharedManager dbMgr, IgniteSnapshotManager snapshotMgr, IgniteCacheSnapshotManager snpMgr, GridCacheDeploymentManager<K,V> depMgr, GridCachePartitionExchangeManager<K,V> exchMgr, CacheAffinitySharedManager<K,V> affMgr, GridCacheIoManager ioMgr, GridCacheSharedTtlCleanupManager ttlMgr, PartitionsEvictManager evictMgr, CacheJtaManagerAdapter jtaMgr, Collection<CacheStoreSessionListener> storeSesLsnrs, MvccCachingManager mvccCachingMgr, DeadlockDetectionManager deadlockDetectionMgr, CacheDiagnosticManager diagnosticMgr)
kernalCtx - Context.txMgr - Transaction manager.verMgr - Version manager.mvccMgr - MVCC manager.pageStoreMgr - Page store manager. Null if persistence is not enabled.walMgr - WAL manager. Null if persistence is not enabled.walStateMgr - WAL state manager.depMgr - Deployment manager.dbMgr - Database manager.snpMgr - Snapshot manager.exchMgr - Exchange manager.affMgr - Affinity manager.ioMgr - IO manager.ttlMgr - Ttl cleanup manager.evictMgr - Partitons evict manager.jtaMgr - JTA manager.storeSesLsnrs - Store session listeners.mvccCachingMgr - Mvcc caching manager.deadlockDetectionMgr - Deadlock detection manager.public void activate()
throws IgniteCheckedException
IgniteCheckedException - If failed.public void deactivate()
public IgniteLogger messageLogger()
public IgniteLogger atomicMessageLogger()
public IgniteLogger txPrepareMessageLogger()
public IgniteLogger txFinishMessageLogger()
public IgniteLogger txLockMessageLogger()
public IgniteLogger txRecoveryMessageLogger()
public boolean isRebalanceEnabled()
public void rebalanceEnabled(boolean rebalanceEnabled)
rebalanceEnabled - rebalance enabled flag.public Collection<GridCacheContext> cacheContexts()
public GridCacheProcessor cache()
public void addCacheContext(GridCacheContext cacheCtx) throws IgniteCheckedException
cacheCtx - Cache context to add.IgniteCheckedException - If cache ID conflict detected.public boolean closed(GridCacheContext ctx)
ctx - Cache context to check.True if cache context is closed.public List<GridCacheSharedManager<K,V>> managers()
public GridCacheContext<K,V> cacheContext(int cacheId)
cacheId - Cache ID.@Nullable public @Nullable CacheObjectContext cacheObjectContext(int cacheId) throws IgniteCheckedException
cacheId - Cache id.IgniteCheckedExceptionpublic String igniteInstanceName()
public TransactionConfiguration txConfig()
public long preloadExchangeTimeout()
4 times
bigger than network timeout by default.public boolean deploymentEnabled()
public byte dataCenterId()
public TransactionMetricsAdapter txMetrics()
public void resetTxMetrics()
public IgniteTxManager tm()
public CacheJtaManagerAdapter jta()
public GridCachePartitionExchangeManager<K,V> exchange()
public CacheAffinitySharedManager<K,V> affinity()
public GridCacheVersionManager versions()
public GridCacheMvccManager mvcc()
public IgniteCacheDatabaseSharedManager database()
public IgniteCacheSnapshotManager snapshot()
@Nullable public @Nullable IgnitePageStoreManager pageStore()
Null if persistence is not enabled.public IgniteSnapshotManager snapshotMgr()
public IgniteWriteAheadLogManager wal()
public WalStateManager walState()
public GridCacheIoManager io()
public GridCacheSharedTtlCleanupManager ttl()
public GridCacheDeploymentManager<K,V> deploy()
public Marshaller marshaller()
public IgniteConfiguration gridConfig()
public GridKernalContext kernalContext()
public GridIoManager gridIO()
public GridDeploymentManager gridDeploy()
public GridEventStorageManager gridEvents()
public GridDiscoveryManager discovery()
public GridTimeoutProcessor time()
public MvccProcessor coordinators()
public PartitionsEvictManager evict()
public MvccCachingManager mvccCaching()
public CacheDiagnosticManager diagnostic()
public DeadlockDetectionManager deadlockDetectionMgr()
public UUID localNodeId()
public ClusterNode localNode()
public int getLocalStoreCount()
@Nullable public @Nullable ClusterNode node(UUID nodeId)
nodeId - Node ID.null.public boolean localStorePrimaryOnly()
public IgniteLogger logger(Class<?> cls)
cls - Class to get logger for.public IgniteLogger logger(String category)
category - Category.public IgniteInternalFuture<?> partitionReleaseFuture(AffinityTopologyVersion topVer)
GridDhtPartitionTopology.updateTopologyVersion(org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtTopologyFuture, org.apache.ignite.internal.managers.discovery.DiscoCache, long, boolean)
method is called so that all new updates will wait to switch to the new version.
This method will capture:
topVer - Topology version.true if waiting was successful.public IgniteInternalFuture<?> partitionRecoveryFuture(AffinityTopologyVersion topVer, ClusterNode node, IgnitePredicate<IgniteInternalTx> filter)
GridDhtPartitionTopology.updateTopologyVersion(org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtTopologyFuture, org.apache.ignite.internal.managers.discovery.DiscoCache, long, boolean)
method is called so that all new updates will wait to switch to the new version.
Captured updates are wrapped in a future that will be completed once pending objects are released.topVer - Topology version.node - Failed node.filter - Recovery filter.true if waiting was successful.public IgniteInternalFuture<?> nextAffinityReadyFuture(AffinityTopologyVersion curVer)
curVer - Current topology version (before a node left grid).@Nullable public @Nullable String verifyTxCompatibility(IgniteInternalTx tx, GridIntList activeCacheIds, GridCacheContext<K,V> cacheCtx)
tx - Transaction to check.activeCacheIds - Active cache IDs.cacheCtx - Cache context.@Nullable public @Nullable AffinityTopologyVersion lockedTopologyVersion(IgniteInternalTx ignore)
ignore - Transaction to ignore.public void cleanup()
public void endTx(GridNearTxLocal tx) throws IgniteCheckedException
tx - Transaction to close.IgniteCheckedException - If failed.public IgniteInternalFuture<IgniteInternalTx> commitTxAsync(GridNearTxLocal tx)
tx - Transaction to commit.public IgniteInternalFuture rollbackTxAsync(GridNearTxLocal tx)
tx - Transaction to rollback.public void suspendTx(GridNearTxLocal tx) throws IgniteCheckedException
tx - Transaction to suspend.IgniteCheckedException - If suspension failed.public void resumeTx(GridNearTxLocal tx) throws IgniteCheckedException
tx - Transaction to resume.IgniteCheckedException - If resume failed.@Nullable public @Nullable Collection<CacheStoreSessionListener> storeSessionListeners()
public void txContextReset()
public int startDhtAtomicUpdate(GridCacheVersion ver)
ver - DHT atomic update future version.public void finishDhtAtomicUpdate(GridCacheVersion ver)
ver - DHT atomic update future version.public boolean readOnlyMode()
true if cluster is in read-only mode.public void readOnlyMode(boolean readOnlyMode)
readOnlyMode - Read-only flag.public void setTxManager(IgniteTxManager txMgr)
txMgr - Tx manager.public boolean isLazyMemoryAllocation(@Nullable
@Nullable DataRegion region)
True if lazy memory allocation enabled. False otherwise.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020