/** * @param start the timestamp taken when the operation started */ @Override public void endLoad(long start) { // note that load times are used in health checks and // should not be disabled by enableClockStats==false long ts = NanoTimer.getTime(); // don't use getStatTime so always enabled stats.incLong(loadTimeId, ts-start); stats.incInt(loadsInProgressId, -1); stats.incInt(loadsCompletedId, 1); this.cachePerfStats.endLoad(start); //need to think about timings }
/** * @param start the timestamp taken when the operation started */ @Override public void endLoad(long start) { // note that load times are used in health checks and // should not be disabled by enableClockStats==false long ts = NanoTimer.getTime(); // don't use getStatTime so always enabled stats.incLong(loadTimeId, ts-start); stats.incInt(loadsInProgressId, -1); stats.incInt(loadsCompletedId, 1); this.cachePerfStats.endLoad(start); //need to think about timings }
private Object doLocalLoad(CacheLoader loader, boolean netSearchAllowed) throws CacheLoaderException { Object obj = null; if (loader != null && !this.attemptedLocalLoad) { this.attemptedLocalLoad = true; CachePerfStats stats = region.getCachePerfStats(); LoaderHelper loaderHelper = this.region.loaderHelperFactory.createLoaderHelper(this.key, this.aCallbackArgument, netSearchAllowed, true /*netLoadAllowed*/, this); long statStart = stats.startLoad(); try { obj = loader.load(loaderHelper); } finally { stats.endLoad(statStart); } if (obj != null) { this.localLoad = true; } } return obj; }
private Object doLocalLoad(CacheLoader loader, boolean netSearchAllowed) throws CacheLoaderException { Object obj = null; // logFine("SearchLoadAndWriteProcessor.doLocalLoad loader=", loader); if (loader != null && !this.attemptedLocalLoad) { this.attemptedLocalLoad = true; CachePerfStats stats = region.getCachePerfStats(); LoaderHelper loaderHelper = this.region.loaderHelperFactory.createLoaderHelper(this.key, this.aCallbackArgument, netSearchAllowed, true /*netLoadAllowed*/, this); long statStart = stats.startLoad(); try { obj = loader.load(loaderHelper); } finally { stats.endLoad(statStart); } if (obj != null) { this.localLoad = true; } } return obj; }
cachePerfStats.endGet(startGetsTime1, true); cachePerfStats.endGet(startGetsTime2, false); cachePerfStats.endLoad(startLoadTime); cachePerfStats.endNetload(startNetLoadTime); cachePerfStats.endNetsearch(startNetSearchTime);
stats.endLoad(statStart);
stats.endLoad(start);
stats.endLoad(start);
stats.endLoad(statStart);