@GridToStringExclude public class GridCacheSharedContext<K,V> extends Object
| Constructor and Description |
|---|
GridCacheSharedContext(GridKernalContext kernalCtx,
IgniteTxManager<K,V> txMgr,
GridCacheVersionManager<K,V> verMgr,
GridCacheMvccManager<K,V> mvccMgr,
GridCacheDeploymentManager<K,V> depMgr,
GridCachePartitionExchangeManager<K,V> exchMgr,
GridCacheIoManager<K,V> ioMgr) |
public GridCacheSharedContext(GridKernalContext kernalCtx, IgniteTxManager<K,V> txMgr, GridCacheVersionManager<K,V> verMgr, GridCacheMvccManager<K,V> mvccMgr, GridCacheDeploymentManager<K,V> depMgr, GridCachePartitionExchangeManager<K,V> exchMgr, GridCacheIoManager<K,V> ioMgr)
txMgr - Transaction manager.verMgr - Version manager.mvccMgr - MVCC manager.public Collection<GridCacheContext<K,V>> cacheContexts()
public void addCacheContext(GridCacheContext cacheCtx) throws IgniteCheckedException
cacheCtx - Cache context.IgniteCheckedExceptionpublic 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 IgniteInternalFuture<Object> preloadersStartFuture()
public TransactionMetricsAdapter txMetrics()
public void resetTxMetrics()
public IgniteTxManager<K,V> tm()
public GridCachePartitionExchangeManager<K,V> exchange()
public GridCacheVersionManager<K,V> versions()
public GridCacheMvccManager<K,V> mvcc()
public GridCacheIoManager<K,V> io()
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 ClusterNode node(UUID nodeId)
nodeId - Node ID.null.public IgniteLogger logger(Class<?> cls)
cls - Class to get logger for.public IgniteLogger logger(String category)
category - Category.public IgniteInternalFuture<?> partitionReleaseFuture(long topVer)
topVer - Topology version.true if waiting was successful.public boolean txCompatible(IgniteInternalTx<K,V> tx, Iterable<Integer> activeCacheIds, GridCacheContext<K,V> cacheCtx)
tx - Transaction to check.activeCacheIds - Active cache IDs.cacheCtx - Cache context.True if cross-cache transaction can include this new cache.public void checkTxFlags(@Nullable Collection<CacheFlag> flags) throws CacheFlagException
flags - Flags to turn on.CacheFlagException - If given flags are conflicting with given transaction.public void cleanup()
public void endTx(IgniteInternalTx<K,V> tx) throws IgniteCheckedException
tx - Transaction to close.IgniteCheckedException - If failed.public IgniteInternalFuture<IgniteInternalTx> commitTxAsync(IgniteInternalTx<K,V> tx)
tx - Transaction to commit.public IgniteInternalFuture rollbackTxAsync(IgniteInternalTx<K,V> tx) throws IgniteCheckedException
tx - Transaction to rollback.IgniteCheckedException - If failed.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015