You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by ds...@apache.org on 2016/08/08 23:36:55 UTC
incubator-geode git commit: add testHook methods to compute inVM and
onDisk
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 <ds...@pivotal.io>
Authored: Mon Aug 8 16:36:46 2016 -0700
Committer: Darrel Schneider <ds...@pivotal.io>
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;
+ }
+
}