public class ParRegUtilVersionHelper
extends java.lang.Object
| Constructor and Description |
|---|
ParRegUtilVersionHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
compareBucketMaps(java.lang.Object _dump1,
java.lang.Object _dump2)
Compare the contents of 2 BucketDumps.
|
static void |
dumpBackingMap(com.gemstone.gemfire.cache.Region aRegion)
dumpBackingMap of version information (into system log)
|
static java.lang.String |
getVersionTagStr(com.gemstone.gemfire.cache.Region aRegion,
java.lang.Object key)
Return the versionTag for the given Region and key.
|
static void |
verifyMyValue(java.lang.Object key,
java.lang.Object expectedValue,
java.lang.Object valueToCheck,
int compareStrategy)
Verify that the given object is an instance of ValueHolder
with expectedValue as the myValue field.
|
public static void verifyMyValue(java.lang.Object key,
java.lang.Object expectedValue,
java.lang.Object valueToCheck,
int compareStrategy)
key - The key whose value we are checking.expectedValue - The expected myValue field of a ValueHolder in aRegion, or null
if the expected value should be null.valuetoCheck - This is expected to be a ValueHolder or PdxInstance
representing a ValueHolder, whose myValue field compares
to expectedValue, according to comparStrategycompareStrategy - Whether the compare is equals or equivalent (for ValueHolders)TestException - if the result of a get on key does not have the expected value.public static java.lang.String getVersionTagStr(com.gemstone.gemfire.cache.Region aRegion,
java.lang.Object key)
aRegion - The Regionkey - The keypublic static void dumpBackingMap(com.gemstone.gemfire.cache.Region aRegion)
aRegion - The Region to dumppublic static java.lang.String compareBucketMaps(java.lang.Object _dump1,
java.lang.Object _dump2)
_dump1 - A BucketDump of keys/values, ie a bucket. which includes versioning information_dump2 - A BucketDump of keys/values, ie a bucket. which includes versioning informationCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.