@Override public CachePerfStats getCachePerfStats() { return delegate.getCachePerfStats(); }
public CachePerfStats getCachePerfStats() { return this.cache.getCachePerfStats(); }
@Override public CachePerfStats getCachePerfStats() { return this.ds.getCache().getCachePerfStats(); }
void decBackgroundTasks() { int v = this.backgroundTasks.decrementAndGet(); if (v == 0) { synchronized (this.backgroundTasks) { this.backgroundTasks.notifyAll(); } } getCache().getCachePerfStats().decDiskTasksWaiting(); }
private void updateStatistics(long executionTime) { this.numExecutions.increment(); this.totalExecutionTime.add(executionTime); this.cache.getCachePerfStats().endQueryExecution(executionTime); }
int incBackgroundTasks() { getCache().getCachePerfStats().incDiskTasksWaiting(); return this.backgroundTasks.incrementAndGet(); }
/** * Initializes the state of this evaluator based on the given cache instance. */ private void initialize(InternalCache cache, DistributionManager dm) { StringBuilder sb = new StringBuilder(); if (cache != null) { this.cacheStats = cache.getCachePerfStats(); sb.append("Cache \""); sb.append(cache.getName()); sb.append('"'); } else { sb.append("No Cache"); } sb.append(" in member "); sb.append(dm.getId()); int pid = OSProcess.getId(); if (pid != 0) { sb.append(" with pid "); sb.append(pid); } this.description = sb.toString(); }
public HeapEvictor(final InternalCache cache, final String threadName) { this.cache = cache; if (!DISABLE_HEAP_EVICTOR_THREAD_POOL) { QueueStatHelper poolStats = this.cache.getCachePerfStats().getEvictionQueueStatHelper(); this.evictorThreadPool = LoggingExecutors.newFixedThreadPoolWithTimeout(threadName, MAX_EVICTOR_THREADS, 15, poolStats); } else { // disabled this.evictorThreadPool = null; } }
regionList.add(region); RegionEvictorTask task = new RegionEvictorTask(cache.getCachePerfStats(), regionList, this, bytesToEvictPerTask); evictorTaskSet.add(task); evictorTaskSet.add(new RegionEvictorTask(cache.getCachePerfStats(), regionsForSingleTask, this, bytesToEvictPerTask));
&& oldCache.getCachePerfStats().getReliableRegionsMissing() == 0) { if (isDebugEnabled) { logger.debug("tryReconnect: No required roles are missing.");
private TombstoneService(InternalCache cache) { this.replicatedTombstoneSweeper = new ReplicateTombstoneSweeper(cache, cache.getCachePerfStats(), cache.getCancelCriterion(), cache.getDistributionManager().getWaitingThreadPool()); this.nonReplicatedTombstoneSweeper = new NonReplicateTombstoneSweeper(cache, cache.getCachePerfStats(), cache.getCancelCriterion()); this.replicatedTombstoneSweeper.start(); this.nonReplicatedTombstoneSweeper.start(); }
CachePerfStats cPStats = cache.getCachePerfStats();
this.rootRegionNames = null; this.perfStats = new RemoteStatResource(internalCache.getCachePerfStats().getStats());
if (cache.getCachePerfStats().getReliableRegionsMissing() == 0) { reconnectAttemptCounter = 0;
private void createAndSubmitWeightedRegionEvictionTasks() { List<LocalRegion> allRegionList = getAllSortedRegionList(); float numEntriesInVM = 0; for (LocalRegion region : allRegionList) { if (region instanceof BucketRegion) { numEntriesInVM += ((BucketRegion) region).getSizeForEviction(); } else { numEntriesInVM += region.getRegionMap().sizeInVM(); } } for (LocalRegion region : allRegionList) { float regionEntryCount; if (region instanceof BucketRegion) { regionEntryCount = ((BucketRegion) region).getSizeForEviction(); } else { regionEntryCount = region.getRegionMap().sizeInVM(); } float percentage = regionEntryCount / numEntriesInVM; long bytesToEvictPerTask = (long) (getTotalBytesToEvict() * percentage); List<LocalRegion> regionsForSingleTask = new ArrayList<>(1); regionsForSingleTask.add(region); if (mustEvict()) { executeInThreadPool(new RegionEvictorTask(cache.getCachePerfStats(), regionsForSingleTask, this, bytesToEvictPerTask)); } else { break; } } }
this.cache.getCachePerfStats().incDeltaFullValuesRequested(); cqEvent = new CqEventImpl(cQuery, cqEvent.getBaseOperation(), cqEvent.getQueryOperation(), cqEvent.getKey(), newVal, cqEvent.getDeltaValue(),
|| internalRegionArgs.isUsedForMetaRegion()) { this.hasOwnStats = false; this.cachePerfStats = cache.getCachePerfStats(); } else { this.hasOwnStats = true; this.cachePerfStats = new RegionPerfStats(cache, cache.getCachePerfStats(), regionName);
public MemberMBeanBridge init() { CachePerfStats cachePerfStats = this.cache.getCachePerfStats(); addCacheStats(cachePerfStats); addFunctionStats(system.getFunctionServiceStats());