/** * @param start the timestamp taken when the operation started */ @Override public void endGet(long start, boolean miss) { if (enableClockStats) { stats.incLong(getTimeId, getStatTime()-start); } stats.incInt(getsId, 1); if (miss) { stats.incInt(missesId, 1); } this.cachePerfStats.endGet(start, miss); } /**
/** * @param start the timestamp taken when the operation started */ @Override public void endGet(long start, boolean miss) { if (enableClockStats) { stats.incLong(getTimeId, getStatTime()-start); } stats.incInt(getsId, 1); if (miss) { stats.incInt(missesId, 1); } this.cachePerfStats.endGet(start, miss); } /**
@Override public Object executeFunction(boolean enableStreaming, boolean isPossibleDuplicate, AbstractGemFireResultSet rs, boolean orderedReplies, boolean getResult) throws StandardException, SQLException { // overridden for stats final CachePerfStats stats = this.region.getCachePerfStats(); final long start = stats.startGet(); Object result = null; try { result = super.executeFunction(enableStreaming, isPossibleDuplicate, rs, orderedReplies, getResult); } finally { // Fixes for Issue #48947 // If a SQL select on a PR table with primary key lookup is done it goes // by GetExecutorMessage to peer members. // As this message bypasses the Region.get() API and directly access // InternalDataView.getLocally() the "gets" stats are not getting updated. // We need to update the stats from outside to show correct stats. if (this.pr != null) { this.pr.prStats.endGet(start); } stats.endGet(start, result == null); } return result; }
@Override public Object executeFunction(boolean enableStreaming, boolean isPossibleDuplicate, AbstractGemFireResultSet rs, boolean orderedReplies, boolean getResult) throws StandardException, SQLException { // overridden for stats final CachePerfStats stats = this.region.getCachePerfStats(); final long start = stats.startGet(); Object result = null; try { result = super.executeFunction(enableStreaming, isPossibleDuplicate, rs, orderedReplies, getResult); } finally { // Fixes for Issue #48947 // If a SQL select on a PR table with primary key lookup is done it goes // by GetExecutorMessage to peer members. // As this message bypasses the Region.get() API and directly access // InternalDataView.getLocally() the "gets" stats are not getting updated. // We need to update the stats from outside to show correct stats. if (this.pr != null) { this.pr.prStats.endGet(start); } stats.endGet(start, result == null); } return result; }
@Override public Object executeFunction(boolean enableStreaming, boolean isPossibleDuplicate, AbstractGemFireResultSet rs, boolean orderedReplies, boolean getResult) throws StandardException, SQLException { // overridden for stats final CachePerfStats stats = this.region.getCachePerfStats(); final long start = stats.startGet(); Object result = null; try { result = super.executeFunction(enableStreaming, isPossibleDuplicate, rs, orderedReplies, getResult); } finally { // Fixes for Issue #48947 // If a SQL select on a PR table with primary key lookup is done it goes // by GetExecutorMessage to peer members. // As this message bypasses the Region.get() API and directly access // InternalDataView.getLocally() the "gets" stats are not getting updated. // We need to update the stats from outside to show correct stats. if (this.pr != null) { this.pr.prStats.endGet(start); } stats.endGet(start, result == null); } return result; }
stats.endGet(start, miss);
stats.endGet(start, miss);
stats.endGet(start, miss);
stats.endGet(start, isMiss);
stats.endGet(start, miss);
stats.endGet(start, isMiss);