/** * @param cctx Cache context. */ public GridCacheTxFinishSync(GridCacheSharedContext<K, V> cctx) { this.cctx = cctx; log = cctx.logger(GridCacheTxFinishSync.class); }
/** */ public PartitionCountersNeighborcastFuture( IgniteInternalTx tx, GridCacheSharedContext<?, ?> cctx) { super(null); this.tx = tx; this.cctx = cctx; log = cctx.logger(CU.TX_MSG_RECOVERY_LOG_CATEGORY); }
/** * @param cctx Context. */ public TxDeadlockDetection(GridCacheSharedContext<?, ?> cctx) { this.cctx = cctx; this.log = cctx.logger(TxDeadlockDetection.class); }
/** * @param cctx Cache shared context. */ public CachesRegistry(GridCacheSharedContext cctx) { assert cctx != null; this.cctx = cctx; this.log = cctx.logger(getClass()); }
/** * @param cctx Context. */ InitNewCoordinatorFuture(GridCacheSharedContext cctx) { this.log = cctx.logger(getClass()); }
/** * @param cctx Context. * @param metrics Data storage metrics. * @param ptr Last WAL pointer. * @param serializer Serializer. * @param handle Current handle supplier. * @param mode WAL mode. * @param maxWalSegmentSize Max WAL segment size. * @param fsyncDelay Fsync delay. * @param tlbSize Thread local byte buffer size. */ public FsyncFileHandleManagerImpl(GridCacheSharedContext cctx, DataStorageMetricsImpl metrics, Supplier<WALPointer> ptr, RecordSerializer serializer, Supplier<FileWriteHandle> handle, WALMode mode, long maxWalSegmentSize, long fsyncDelay, int tlbSize) { this.cctx = cctx; this.log = cctx.logger(FsyncFileHandleManagerImpl.class); this.mode = mode; this.metrics = metrics; lastWALPtr = ptr; this.serializer = serializer; currentHandleSupplier = handle; this.maxWalSegmentSize = maxWalSegmentSize; this.fsyncDelay = fsyncDelay; this.tlbSize = tlbSize; }
/** * @param ctx Cache shared context. * @param grp Cache group. */ public GridDhtPartitionTopologyImpl( GridCacheSharedContext ctx, CacheGroupContext grp ) { assert ctx != null; assert grp != null; this.ctx = ctx; this.grp = grp; log = ctx.logger(getClass()); timeLog = ctx.logger(GridDhtPartitionsExchangeFuture.EXCHANGE_LOG); locParts = new AtomicReferenceArray<>(grp.affinityFunction().partitions()); cntrMap = new CachePartitionFullCountersMap(locParts.length()); }
/** {@inheritDoc} */ @Override public final void start(GridCacheSharedContext<K, V> cctx) throws IgniteCheckedException { if (!starting.compareAndSet(false, true)) assert false : "Method start is called more than once for manager: " + this; assert cctx != null; this.cctx = cctx; log = cctx.logger(getClass()); diagnosticLog = cctx.logger(DIAGNOSTIC_LOG_CATEGORY); start0(); if (log.isDebugEnabled()) log.debug(startInfo()); }
/** * @param grp Cache group. */ public GridCachePreloaderAdapter(CacheGroupContext grp) { assert grp != null; this.grp = grp; ctx = grp.shared(); log = ctx.logger(getClass()); finFut = new GridFinishedFuture(); }
/** {@inheritDoc} */ @Override protected void start0() throws IgniteCheckedException { exchLog = cctx.logger(getClass().getName() + ".exchange"); pendingExplicit = GridConcurrentFactory.newMap(); cctx.gridEvents().addLocalEventListener(discoLsnr, EVT_NODE_FAILED, EVT_NODE_LEFT); }
/** * @param grp Cache group. */ GridDhtPartitionSupplier(CacheGroupContext grp) { assert grp != null; this.grp = grp; log = grp.shared().logger(getClass()); top = grp.topology(); if (rebalanceThrottleOverride > 0) LT.info(log, "Using rebalance throttle override: " + rebalanceThrottleOverride); }
/** */ public MetaStorage( GridCacheSharedContext<?, ?> cctx, DataRegion dataRegion, DataRegionMetricsImpl regionMetrics, boolean readOnly ) { this.cctx = cctx; wal = cctx.wal(); this.dataRegion = dataRegion; this.regionMetrics = regionMetrics; this.readOnly = readOnly; log = cctx.logger(getClass()); this.failureProcessor = cctx.kernalContext().failure(); }
/** * Creates cleanup worker. */ CleanupWorker() { super(cctx.igniteInstanceName(), "ttl-cleanup-worker", cctx.logger(GridCacheSharedTtlCleanupManager.class), cctx.kernalContext().workersRegistry()); }
/** * @param nodeId Node ID. */ public void onNodeLeft(UUID nodeId) { if (compareAndSet(nodeId, null)) { IgniteLogger log = cctx.logger(TxDeadlockDetection.class); if (log.isDebugEnabled()) log.debug("Failed to finish deadlock detection, node left: " + nodeId); onDone(); } }
/** * @param pageMem Page memory. * @param plcCfg Policy config. * @param sharedCtx Shared context. */ public RandomLruPageEvictionTracker( PageMemory pageMem, DataRegionConfiguration plcCfg, GridCacheSharedContext<?, ?> sharedCtx ) { super((PageMemoryNoStoreImpl)pageMem, plcCfg, sharedCtx); DataStorageConfiguration memCfg = sharedCtx.kernalContext().config().getDataStorageConfiguration(); assert plcCfg.getMaxSize() / memCfg.getPageSize() < Integer.MAX_VALUE; log = sharedCtx.logger(getClass()); }
/** * @param pageMem Page memory. * @param plcCfg Policy config. * @param sharedCtx Shared context. */ public Random2LruPageEvictionTracker( PageMemoryNoStoreImpl pageMem, DataRegionConfiguration plcCfg, GridCacheSharedContext<?, ?> sharedCtx ) { super(pageMem, plcCfg, sharedCtx); DataStorageConfiguration memCfg = sharedCtx.kernalContext().config().getDataStorageConfiguration(); assert plcCfg.getMaxSize() / memCfg.getPageSize() < Integer.MAX_VALUE; log = sharedCtx.logger(getClass()); }
this.cctx = cctx; this.metrics = metrics; this.log = cctx.logger(FsyncFileWriteHandle.class); this.fsyncDelay = fsyncDelay; this.maxSegmentSize = maxSegmentSize;
/** * @param grp Ccahe group. */ public GridDhtPartitionDemander(CacheGroupContext grp) { assert grp != null; this.grp = grp; ctx = grp.shared(); log = ctx.logger(getClass()); boolean enabled = grp.rebalanceEnabled() && !ctx.kernalContext().clientNode(); rebalanceFut = new RebalanceFuture(); //Dummy. if (!enabled) { // Calling onDone() immediately since preloading is disabled. rebalanceFut.onDone(true); syncFut.onDone(); } Map<Integer, Object> tops = new HashMap<>(); for (int idx = 0; idx < grp.shared().kernalContext().config().getRebalanceThreadPoolSize(); idx++) tops.put(idx, GridCachePartitionExchangeManager.rebalanceTopic(idx)); rebalanceTopics = tops; }
/** * @param cctx Context. * @param discoCache Discovery data cache. * @param grpId Group ID. * @param parts Number of partitions in the group. * @param similarAffKey Key to find caches with similar affinity. */ public GridClientPartitionTopology( GridCacheSharedContext<?, ?> cctx, DiscoCache discoCache, int grpId, int parts, Object similarAffKey ) { this.cctx = cctx; this.discoCache = discoCache; this.grpId = grpId; this.similarAffKey = similarAffKey; this.parts = parts; topVer = AffinityTopologyVersion.NONE; log = cctx.logger(getClass()); node2part = new GridDhtPartitionFullMap(cctx.localNode().id(), cctx.localNode().order(), updateSeq.get()); cntrMap = new CachePartitionFullCountersMap(parts); }
/** {@inheritDoc} */ @Override public void start(GridCacheSharedContext ctx, CacheGroupContext grp) throws IgniteCheckedException { this.ctx = ctx; this.grp = grp; this.log = ctx.logger(getClass()); updateValSizeThreshold = ctx.database().pageSize() / 2; if (grp.affinityNode()) { ctx.database().checkpointReadLock(); try { initDataStructures(); if (grp.isLocal()) locCacheDataStore = createCacheDataStore(0); } finally { ctx.database().checkpointReadUnlock(); } } }