/** * @return the timestamp that marks the start of the operation */ @Override public long startCacheWriterCall() { stats.incInt(cacheWriterCallsInProgressId, 1); this.cachePerfStats.startCacheWriterCall(); return getStatTime(); } /**
/** * @return the timestamp that marks the start of the operation */ @Override public long startCacheWriterCall() { stats.incInt(cacheWriterCallsInProgressId, 1); this.cachePerfStats.startCacheWriterCall(); return getStatTime(); } /**
protected boolean cacheWriteBeforeRegionClear(RegionEventImpl event) throws CacheWriterException, TimeoutException { boolean result = false; // copy into local var to prevent race condition CacheWriter writer = basicGetWriter(); if (writer != null) { final long start = getCachePerfStats().startCacheWriterCall(); try { writer.beforeRegionClear(event); } finally { getCachePerfStats().endCacheWriterCall(start); } result = true; } serverRegionClear(event); return result; }
protected boolean cacheWriteBeforeRegionClear(RegionEventImpl event) throws CacheWriterException, TimeoutException { boolean result = false; // copy into local var to prevent race condition CacheWriter writer = basicGetWriter(); if (writer != null) { final long start = getCachePerfStats().startCacheWriterCall(); try { writer.beforeRegionClear(event); } finally { getCachePerfStats().endCacheWriterCall(start); } result = true; } serverRegionClear(event); return result; }
/** * @return true if cacheWrite was performed * @see DistributedRegion#cacheWriteBeforeRegionDestroy(RegionEventImpl) */ boolean cacheWriteBeforeRegionDestroy(RegionEventImpl event) throws CacheWriterException, TimeoutException { boolean result = false; // copy into local var to prevent race condition CacheWriter writer = basicGetWriter(); if (writer != null) { final long start = getCachePerfStats().startCacheWriterCall(); try { writer.beforeRegionDestroy(event); } finally { getCachePerfStats().endCacheWriterCall(start); } result = true; } serverRegionDestroy(event); return result; }
/** * @return true if cacheWrite was performed * @see DistributedRegion#cacheWriteBeforeRegionDestroy(RegionEventImpl) */ boolean cacheWriteBeforeRegionDestroy(RegionEventImpl event) throws CacheWriterException, TimeoutException { boolean result = false; // copy into local var to prevent race condition CacheWriter writer = basicGetWriter(); if (writer != null) { final long start = getCachePerfStats().startCacheWriterCall(); try { writer.beforeRegionDestroy(event); } finally { getCachePerfStats().endCacheWriterCall(start); } result = true; } serverRegionDestroy(event); return result; }
/** * @return true if cacheWrite was performed * @see DistributedRegion#cacheWriteBeforeDestroy(EntryEventImpl, Object) */ boolean cacheWriteBeforeDestroy(EntryEventImpl event, Object expectedOldValue) throws CacheWriterException, EntryNotFoundException, TimeoutException { boolean result = false; // copy into local var to prevent race condition CacheWriter writer = basicGetWriter(); if (writer != null && event.getOperation() != Operation.REMOVE && !event.inhibitAllNotifications()) { final long start = getCachePerfStats().startCacheWriterCall(); try { writer.beforeDestroy(event); } finally { getCachePerfStats().endCacheWriterCall(start); } result = true; } serverDestroy(event, expectedOldValue); return result; }
/** * @return true if cacheWrite was performed * @see DistributedRegion#cacheWriteBeforeDestroy(EntryEventImpl, Object) */ boolean cacheWriteBeforeDestroy(EntryEventImpl event, Object expectedOldValue) throws CacheWriterException, EntryNotFoundException, TimeoutException { boolean result = false; // copy into local var to prevent race condition CacheWriter writer = basicGetWriter(); if (writer != null && event.getOperation() != Operation.REMOVE && !event.inhibitAllNotifications()) { final long start = getCachePerfStats().startCacheWriterCall(); try { writer.beforeDestroy(event); } finally { getCachePerfStats().endCacheWriterCall(start); } result = true; } serverDestroy(event, expectedOldValue); return result; }
final long start = getCachePerfStats().startCacheWriterCall(); try { event.setOldValueFromRegion();
final long start = getCachePerfStats().startCacheWriterCall(); try { SearchLoadAndWriteProcessor processor =
final long start = getCachePerfStats().startCacheWriterCall(); try { SearchLoadAndWriteProcessor processor =
final long start = getCachePerfStats().startCacheWriterCall(); try { SearchLoadAndWriteProcessor processor = SearchLoadAndWriteProcessor
final long start = getCachePerfStats().startCacheWriterCall(); try { SearchLoadAndWriteProcessor processor = SearchLoadAndWriteProcessor
!event.inhibitAllNotifications()) { final boolean isNewKey = event.getOperation().isCreate(); final long start = getCachePerfStats().startCacheWriterCall(); try { SearchLoadAndWriteProcessor processor =
!event.inhibitAllNotifications()) { final boolean isNewKey = event.getOperation().isCreate(); final long start = getCachePerfStats().startCacheWriterCall(); try { SearchLoadAndWriteProcessor processor =
public void testTimeBasedCounters() throws InterruptedException { final long startTime = CachePerfStats.getStatTime(); cachePerfStats.startCacheListenerCall(); cachePerfStats.startCacheWriterCall(); partitionedRegionStats.startPutRemote(); sample(); cachePerfStats.endCacheListenerCall(startTime); cachePerfStats.endCacheWriterCall(startTime); partitionedRegionStats.endPutRemote(startTime); sample(); assertTrue(getCacheListenerCallsAvgLatency() > 0); assertTrue(getCacheWriterCallsAvgLatency() > 0); assertTrue(getPutRemoteLatency() > 0); }
|| (netWriteRecipients != null && !netWriteRecipients.isEmpty())) && !event.inhibitAllNotifications()) { final long start = getCachePerfStats().startCacheWriterCall(); try { event.setOldValueFromRegion();
|| (netWriteRecipients != null && !netWriteRecipients.isEmpty())) && !event.inhibitAllNotifications()) { final long start = getCachePerfStats().startCacheWriterCall(); try { event.setOldValueFromRegion();
|| op == Operation.REPLACE) && (localWriter != null) && !((EntryEventImpl)event).inhibitAllNotifications()) { final long start = getCachePerfStats().startCacheWriterCall(); final boolean newEntry = event.getOperation().isCreate(); try {
|| op == Operation.REPLACE) && (localWriter != null) && !((EntryEventImpl)event).inhibitAllNotifications()) { final long start = getCachePerfStats().startCacheWriterCall(); final boolean newEntry = event.getOperation().isCreate(); try {