@GridToStringExclude public class GridCacheSharedContext<K,V> extends Object
| Constructor and Description |
|---|
GridCacheSharedContext(GridKernalContext kernalCtx,
IgniteTxManager txMgr,
GridCacheVersionManager verMgr,
GridCacheMvccManager mvccMgr,
IgnitePageStoreManager pageStoreMgr,
IgniteWriteAheadLogManager walMgr,
WalStateManager walStateMgr,
IgniteCacheDatabaseSharedManager dbMgr,
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) |
public GridCacheSharedContext(GridKernalContext kernalCtx, IgniteTxManager txMgr, GridCacheVersionManager verMgr, GridCacheMvccManager mvccMgr, @Nullable IgnitePageStoreManager pageStoreMgr, @Nullable IgniteWriteAheadLogManager walMgr, WalStateManager walStateMgr, IgniteCacheDatabaseSharedManager dbMgr, 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)
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.exchMgr - Exchange manager.affMgr - Affinity manager.ioMgr - IO manager.ttlMgr - Ttl cleanup manager.jtaMgr - JTA manager.storeSesLsnrs - Store session listeners.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 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 IgnitePageStoreManager pageStore()
Null if persistence is not enabled.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 UUID localNodeId()
public ClusterNode localNode()
public int getLocalStoreCount()
@Nullable public 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, org.apache.ignite.internal.processors.cache.mvcc.MvccCoordinator, 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<?> nextAffinityReadyFuture(AffinityTopologyVersion curVer)
curVer - Current topology version (before a node left grid).@Nullable public String verifyTxCompatibility(IgniteInternalTx tx, GridIntList activeCacheIds, GridCacheContext<K,V> cacheCtx)
tx - Transaction to check.activeCacheIds - Active cache IDs.cacheCtx - Cache context.@Nullable public 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) throws IgniteCheckedException
tx - Transaction to rollback.IgniteCheckedException - If failed.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 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.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019