/** * @return the timestamp that marks the start of the operation */ @Override public long startLoad() { stats.incInt(loadsInProgressId, 1); return this.cachePerfStats.startLoad(); //return NanoTimer.getTime(); // don't use getStatTime so always enabled } /**
/** * @return the timestamp that marks the start of the operation */ @Override public long startLoad() { stats.incInt(loadsInProgressId, 1); return this.cachePerfStats.startLoad(); //return NanoTimer.getTime(); // don't use getStatTime so always enabled } /**
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; }
long startCacheListenerTime = cachePerfStats.startCacheListenerCall(); long startCacheWriterTime = cachePerfStats.startCacheWriterCall(); long startLoadTime = cachePerfStats.startLoad();
long statStart = stats.startLoad(); try { value = loader.load(loaderHelper);
this.aCallbackArgument, false, false, null); CachePerfStats stats = region.getCachePerfStats(); long start = stats.startLoad(); try { Object o = loader.load(loaderHelper);
this.aCallbackArgument, false, false, null); CachePerfStats stats = region.getCachePerfStats(); long start = stats.startLoad(); try { Object o = loader.load(loaderHelper);
long statStart = stats.startLoad(); try { value = loader.load(loaderHelper);