public void endGet(long start) { endGet(start, 1); } public void endContainsKey(long start) {
public void endGet(long start) { endGet(start, 1); } public void endContainsKey(long start) {
@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; }
this.prStats.endGet(startTime);
this.prStats.endGet(startTime);