Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2C36F200B6D for ; Tue, 9 Aug 2016 01:37:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2ACAD160AB3; Mon, 8 Aug 2016 23:37:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 73498160A91 for ; Tue, 9 Aug 2016 01:37:00 +0200 (CEST) Received: (qmail 12718 invoked by uid 500); 8 Aug 2016 23:36:59 -0000 Mailing-List: contact commits-help@geode.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.incubator.apache.org Delivered-To: mailing list commits@geode.incubator.apache.org Received: (qmail 12708 invoked by uid 99); 8 Aug 2016 23:36:59 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2016 23:36:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 4C0E51A0036 for ; Mon, 8 Aug 2016 23:36:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 6bOz6t3UR-nF for ; Mon, 8 Aug 2016 23:36:56 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id DB3A75F251 for ; Mon, 8 Aug 2016 23:36:55 +0000 (UTC) Received: (qmail 12705 invoked by uid 99); 8 Aug 2016 23:36:55 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2016 23:36:55 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 1064DE03E8; Mon, 8 Aug 2016 23:36:55 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: dschneider@apache.org To: commits@geode.incubator.apache.org Message-Id: <938a51348bb449a1946faea95b0ac2b2@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: incubator-geode git commit: add testHook methods to compute inVM and onDisk Date: Mon, 8 Aug 2016 23:36:55 +0000 (UTC) archived-at: Mon, 08 Aug 2016 23:37:01 -0000 Repository: incubator-geode Updated Branches: refs/heads/feature/GEODE-1714 0644c7959 -> 29576f0f3 add testHook methods to compute inVM and onDisk Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/29576f0f Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/29576f0f Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/29576f0f Branch: refs/heads/feature/GEODE-1714 Commit: 29576f0f3de751dfcf99a987342c666b207b81f6 Parents: 0644c79 Author: Darrel Schneider Authored: Mon Aug 8 16:36:46 2016 -0700 Committer: Darrel Schneider Committed: Mon Aug 8 16:36:46 2016 -0700 ---------------------------------------------------------------------- .../gemfire/internal/cache/LocalRegion.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/29576f0f/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/LocalRegion.java ---------------------------------------------------------------------- diff --git a/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/LocalRegion.java b/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/LocalRegion.java index 46ccd47..73dc5ab 100644 --- a/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/LocalRegion.java +++ b/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/LocalRegion.java @@ -12741,4 +12741,24 @@ public class LocalRegion extends AbstractRegion } + public int testHookGetValuesInVM() { + int result = 0; + for (RegionEntry re: getRegionMap().regionEntries()) { + if (re.getValueAsToken() == Token.NOT_A_TOKEN) { + result++; + } + } + return result; + } + + public int testHookGetValuesOnDisk() { + int result = 0; + for (RegionEntry re: getRegionMap().regionEntries()) { + if (re.getValueAsToken() == null) { + result++; + } + } + return result; + } + }