public class ParRegUtilVersionHelper extends Object
| Constructor and Description |
|---|
ParRegUtilVersionHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
compareBucketMaps(Object _dump1,
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 String |
getVersionTagStr(com.gemstone.gemfire.cache.Region aRegion,
Object key)
Return the versionTag for the given Region and key.
|
static void |
verifyMyValue(Object key,
Object expectedValue,
Object valueToCheck,
int compareStrategy)
Verify that the given object is an instance of ValueHolder
with expectedValue as the myValue field.
|
public static void verifyMyValue(Object key, Object expectedValue, 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 String getVersionTagStr(com.gemstone.gemfire.cache.Region aRegion, Object key)
aRegion - The Regionkey - The keypublic static void dumpBackingMap(com.gemstone.gemfire.cache.Region aRegion)
aRegion - The Region to dumppublic static String compareBucketMaps(Object _dump1, 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.