public class TxUtilKeyRange extends TxUtil
| Modifier and Type | Field and Description |
|---|---|
protected static int |
KEY_RANGE |
HydraThreadLocal |
lowerKeyRange |
HydraThreadLocal |
upperKeyRange |
createCallbackPrefix, destroyCallbackPrefix, invalidateCallbackPrefix, isBridgeClient, isSerialExecution, maxKeys, memberIdString, modValInitializer, NO_REPLICATION, NO_REPLICATION_RESTRICTION, randomValues, regionDestroyCallbackPrefix, regionInvalidateCallbackPrefix, suspendResume, txState, txUtilInstance, updateCallbackPrefix| Constructor and Description |
|---|
TxUtilKeyRange() |
| Modifier and Type | Method and Description |
|---|---|
Operation |
createEntry(com.gemstone.gemfire.cache.Region aRegion,
boolean exists)
Creates a new key/value in the given region by creating a new
key within the range and a random value.
|
Object |
getRandomKey(com.gemstone.gemfire.cache.Region aRegion,
Object excludeKey)
Get a random key from the given region that is within this instance's range.
|
void |
initialize()
Initialize the key ranges
|
void |
printKeyRange(com.gemstone.gemfire.cache.Region aRegion)
Called for debugging
|
clearDestroyedRegions, closeCache, containsKey, containsKeyExisting, containsValueExisting, containsValueForKeyExisting, createAllDestroyedRegions, createDestroyedRegionsFromBB, createEntries, createPartitionedRegions, createRegion, createRegionHierarchy, createRegionWithPath, destroyEntry, destroyRegion, dispAllKeys, doNonrepeatableReadOperations, doOperations, doOperations, doOperations, doOperations, doRepeatableReadOperations, getAll, getEntry, getEntryWithExistingKey, getEntryWithNewKey, getEntryWithPreviousKey, getNewKey, getNewValue, getRandomKey, getRandomRegion, getRandomRegion, getRandomRegionNoReplication, getRegionConfigFromBB, getRegionConfigMap, getRoundRobinNumber, getSubregions, getValueInVM, getValueInVM, getWithExistingKey, HydraTask_createPartitionedRegions, HydraTask_createRegionForest, HydraTask_doOperations, HydraTask_populateRegions, HydraTask_startBridgeServer, HydraTask_stopBridgeServer, inTxThreadWithTxInProgress, inTxVm, invalEntry, invalRegion, isHierReplicated, logExecutionNumber, logRoundRobinNumber, populateRegions, putAll, putEntry, recordDestroyedRegion, recordRegionConfigInBB, removeEntry, StartTask_initialize, summarizeRegionHier, supportsConcurrentMapOps, updateEntryprotected static final int KEY_RANGE
public HydraThreadLocal lowerKeyRange
public HydraThreadLocal upperKeyRange
public void initialize()
initialize in class TxUtilpublic Object getRandomKey(com.gemstone.gemfire.cache.Region aRegion, Object excludeKey)
getRandomKey in class TxUtilaRegion - - The region to get the key from.excludeKey - - The region to get the key from.public Operation createEntry(com.gemstone.gemfire.cache.Region aRegion, boolean exists)
createEntry in class TxUtilaRegion - The region to create the new key in.exists - Not used in this overridden method; this test wants to use
unique keys even on creates, so we don't do anything different here based
on the value of exists.public void printKeyRange(com.gemstone.gemfire.cache.Region aRegion)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.