public void run() { Cache cache = getCache(); PartitionedRegion region = (PartitionedRegion) cache.getRegion("region1"); PartitionedRegionStats stats = region.getPrStats(); CachePerfStats cachePerfStats = region.getCachePerfStats(); assertEquals(expectedCount, stats.getTotalNumBuckets()); } };
public void run() { Cache cache = getCache(); PartitionedRegion region = (PartitionedRegion) cache.getRegion("region1"); PartitionedRegionStats stats = region.getPrStats(); CachePerfStats cachePerfStats = region.getCachePerfStats(); assertEquals(expectedCount, stats.getDataStoreEntryCount()); assertEquals(expectedCount, cachePerfStats.getEntries()); } };
public void run() { putMsg.resetRecipients(); putMsg.setRecipient(msg.getSender()); putMsg.setSendDelta(false); if (logger.isDebugEnabled()) { logger.debug("Sending full object({}) to {}", putMsg, Arrays.toString(putMsg.getRecipients())); } dm.putOutgoing(putMsg); // Update stats try { PartitionedRegion.getPRFromId(putMsg.regionId) .getCachePerfStats().incDeltaFullValuesSent(); } catch (Exception e) { } }
final long start = getCachePerfStats().startCacheWriterCall(); getCachePerfStats().endCacheWriterCall(start);
/** * Creates PartitionedRegionDataStore for dataStorage of PR and starts a * PartitionService to handle remote operations on this DataStore from other * participating nodes. * * @param pr * PartitionedRegion associated with this DataStore. */ PartitionedRegionDataStore(final PartitionedRegion pr) { final int bucketCount = pr.getTotalNumberOfBuckets(); this.localBucket2RegionMap = new ConcurrentHashMap<Integer, BucketRegion>(bucketCount); this.partitionedRegion = pr; this.bucketCreationLock = new StoppableReentrantReadWriteLock(pr.getCancelCriterion()); if (pr.getAttributes().getCacheLoader() != null) { this.loader = pr.getAttributes().getCacheLoader(); if (logger.isDebugEnabled()) { logger.debug("Installing cache loader from partitioned region attributes: {}", loader); } } // this.maximumLocalBytes = (long) (pr.getLocalMaxMemory() * PartitionedRegionHelper.BYTES_PER_MB // * this.partitionedRegion.rebalanceThreshold); this.maximumLocalBytes = (pr.getLocalMaxMemory() * PartitionedRegionHelper.BYTES_PER_MB); // this.bucketStats = new CachePerfStats(pr.getSystem(), "partition-" + pr.getName()); this.bucketStats = new RegionPerfStats(pr.getCache(), pr.getCachePerfStats(), "partition-" + pr.getName()); this.keysOfInterest = new ConcurrentHashMap(); }
final long start = getCachePerfStats().startCacheWriterCall(); try { SearchLoadAndWriteProcessor processor = SearchLoadAndWriteProcessor getCachePerfStats().endCacheWriterCall(start);
final long start = getCachePerfStats().startCacheWriterCall(); try { event.setOldValueFromRegion(); getCachePerfStats().endCacheWriterCall(start);
final long start = getCachePerfStats().startCacheWriterCall(); try { SearchLoadAndWriteProcessor processor = SearchLoadAndWriteProcessor getCachePerfStats().endCacheWriterCall(start);
this.bucketStats = new RegionPerfStats(pr.getCache(), pr.getCachePerfStats(), CachePerfStats.REGIONPERFSTATS_TEXTID_PR_SPECIFIER + pr.getName()); this.keysOfInterest = new ConcurrentHashMap<>();
public void run() { putMsg.resetRecipients(); putMsg.setRecipient(msg.getSender()); putMsg.setSendDelta(false); if (log.fineEnabled()) { log.fine("Sending full object(" + putMsg + ") to " + Arrays.toString(putMsg.getRecipients())); } dm.putOutgoing(putMsg); // Update stats try { PartitionedRegion.getPRFromId(putMsg.regionId) .getCachePerfStats().incDeltaFullValuesSent(); } catch (Exception e) { } }
final long start = getCachePerfStats().startCacheWriterCall(); try { event.setOldValueFromRegion(); getCachePerfStats().endCacheWriterCall(start);
checkReadiness(); checkForNoAccess(); CachePerfStats stats = getCachePerfStats(); long start = stats.startGet(); boolean miss = true;
final long start = getCachePerfStats().startCacheWriterCall(); getCachePerfStats().endCacheWriterCall(start);
checkForNoAccess(); discoverJTA(); CachePerfStats stats = getCachePerfStats(); long start = stats.startGet(); boolean miss = true;
region.getCachePerfStats().incDeltasSent();
region.getCachePerfStats().incDeltasSent();
((com.gemstone.gemfire.Delta)instance).toDelta(hdos); event.setDeltaBytes(hdos.toByteArray()); this.partitionedRegion.getCachePerfStats().endDeltaPrepared(start);
delta.toDelta(hdos); event.setDeltaBytes(hdos.toByteArray()); this.partitionedRegion.getCachePerfStats().endDeltaPrepared(start);
CachePerfStats stats; if (region instanceof BucketRegion) { stats = ((BucketRegion)region).getPartitionedRegion().getCachePerfStats(); } else{ stats = region.getCachePerfStats();
CachePerfStats stats; if (region instanceof BucketRegion) { stats = region.getPartitionedRegion().getCachePerfStats(); } else { stats = region.getCachePerfStats();