@GridToStringExclude public class GridCacheSharedContext<K,V> extends Object
| Constructor and Description |
|---|
GridCacheSharedContext(GridKernalContext kernalCtx,
IgniteTxManager txMgr,
GridCacheVersionManager verMgr,
GridCacheMvccManager mvccMgr,
GridCacheDeploymentManager<K,V> depMgr,
GridCachePartitionExchangeManager<K,V> exchMgr,
CacheAffinitySharedManager<K,V> affMgr,
GridCacheIoManager ioMgr,
GridCacheSharedTtlCleanupManager ttlMgr,
CacheJtaManagerAdapter jtaMgr,
Collection<CacheStoreSessionListener> storeSesLsnrs) |
public GridCacheSharedContext(GridKernalContext kernalCtx, IgniteTxManager txMgr, GridCacheVersionManager verMgr, GridCacheMvccManager mvccMgr, GridCacheDeploymentManager<K,V> depMgr, GridCachePartitionExchangeManager<K,V> exchMgr, CacheAffinitySharedManager<K,V> affMgr, GridCacheIoManager ioMgr, GridCacheSharedTtlCleanupManager ttlMgr, CacheJtaManagerAdapter jtaMgr, Collection<CacheStoreSessionListener> storeSesLsnrs)
kernalCtx - Context.txMgr - Transaction manager.verMgr - Version manager.mvccMgr - MVCC 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 IgniteLogger messageLogger()
public IgniteLogger atomicMessageLogger()
public IgniteLogger txPrepareMessageLogger()
public IgniteLogger txFinishMessageLogger()
public IgniteLogger txLockMessageLogger()
public IgniteLogger txRecoveryMessageLogger()
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 void removeCacheContext(GridCacheContext cacheCtx)
cacheCtx - Cache context to remove.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.public String gridName()
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 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 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)
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, GridLongList 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(IgniteInternalTx tx) throws IgniteCheckedException
tx - Transaction to close.IgniteCheckedException - If failed.public IgniteInternalFuture<IgniteInternalTx> commitTxAsync(IgniteInternalTx tx)
tx - Transaction to commit.public IgniteInternalFuture rollbackTxAsync(IgniteInternalTx tx) throws IgniteCheckedException
tx - Transaction to rollback.IgniteCheckedException - If failed.@Nullable public Collection<CacheStoreSessionListener> storeSessionListeners()
public void txContextReset()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.8.0 Release Date : December 5 2016