public class PrViewUtil extends TxViewUtil
createCallbackPrefix, destroyCallbackPrefix, invalidateCallbackPrefix, isBridgeClient, isSerialExecution, maxKeys, memberIdString, modValInitializer, NO_REPLICATION, NO_REPLICATION_RESTRICTION, randomValues, regionDestroyCallbackPrefix, regionInvalidateCallbackPrefix, suspendResume, txState, txUtilInstance, updateCallbackPrefix| Constructor and Description |
|---|
PrViewUtil() |
| Modifier and Type | Method and Description |
|---|---|
void |
createClientRegions() |
void |
createColocatedRegions() |
static OpList |
doOperations(boolean allowGetOperations)
Do random operations on random regions using the hydra parameter
TxPrms.operations as the list of available operations and
TxPrms.numOps - the number of operations to execute in a single tx
|
OpList |
doOperations(Vector operations,
int numOperationsToDo,
boolean allowGetOperations)
Do random operations on random regions.
|
protected void |
dumpLocalKeys() |
protected List |
executeGetAllMembersInDS() |
Operation |
getEntryWithPreviousKey(com.gemstone.gemfire.cache.Region aRegion)
Gets a value in aRegion with a random key (local to the tx vm)
that was previously used in the test.
|
protected KeySetResult |
getKeySet(com.gemstone.gemfire.cache.Region aRegion,
com.gemstone.gemfire.distributed.DistributedMember targetDM) |
protected KeySetResult |
getKeySet(com.gemstone.gemfire.cache.Region aRegion,
com.gemstone.gemfire.distributed.DistributedMember targetDM,
com.gemstone.gemfire.distributed.DistributedMember excludeDM) |
Object |
getNewKey(com.gemstone.gemfire.cache.Region aRegion)
Gets a new (never before seen) key.
|
Object |
getRandomKey(com.gemstone.gemfire.cache.Region aRegion,
Object excludeKey)
Get a random key from the given region, excluding the key specified
by excludeKey.
|
static Object |
getValueForKey(com.gemstone.gemfire.cache.Region aRegion,
String key) |
static void |
HydraTask_createClientRegions() |
static void |
HydraTask_createColocatedRegions()
Create the cache and Region.
|
static void |
HydraTask_dumpLocalKeys()
Debug method to see what keys are on each VM at start of test
|
static void |
HydraTask_populateRegions() |
protected void |
initializeKeySet(boolean useLocalKeySet)
Initialize remote keySet.
|
void |
populateRegions() |
protected void |
registerFunctions() |
protected void |
updateKeySet(Operation op)
Update (per region) keySet
Region specific keySets are maintained through each invocation
of doOperations().
|
containsKey, getValueInVM, getValueInVM, HydraTask_createRegionForestclearDestroyedRegions, closeCache, containsKeyExisting, containsValueExisting, containsValueForKeyExisting, createAllDestroyedRegions, createDestroyedRegionsFromBB, createEntries, createEntry, createPartitionedRegions, createRegion, createRegionHierarchy, createRegionWithPath, destroyEntry, destroyRegion, dispAllKeys, doNonrepeatableReadOperations, doOperations, doOperations, doRepeatableReadOperations, getAll, getEntry, getEntryWithExistingKey, getEntryWithNewKey, getNewValue, getRandomKey, getRandomRegion, getRandomRegion, getRandomRegionNoReplication, getRegionConfigFromBB, getRegionConfigMap, getRoundRobinNumber, getSubregions, getWithExistingKey, HydraTask_createPartitionedRegions, HydraTask_doOperations, HydraTask_startBridgeServer, HydraTask_stopBridgeServer, initialize, inTxThreadWithTxInProgress, inTxVm, invalEntry, invalRegion, isHierReplicated, logExecutionNumber, logRoundRobinNumber, putAll, putEntry, recordDestroyedRegion, recordRegionConfigInBB, removeEntry, StartTask_initialize, summarizeRegionHier, supportsConcurrentMapOps, updateEntrypublic static void HydraTask_createColocatedRegions()
public void createColocatedRegions()
public static void HydraTask_createClientRegions()
public void createClientRegions()
public static void HydraTask_populateRegions()
public void populateRegions()
populateRegions in class TxUtilpublic static void HydraTask_dumpLocalKeys()
protected void dumpLocalKeys()
protected void registerFunctions()
public static OpList doOperations(boolean allowGetOperations)
allowGetOperations - - to prevent proxy clients from attempting
gets (since they have no storage this always
invokes the loader and oldValue is always
reported as null).public OpList doOperations(Vector operations, int numOperationsToDo, boolean allowGetOperations)
doOperations in class TxUtiloperations - - a Vector of operations to choose from.numOperationsToDo - - the number of operations to execute.allowGetOperations - - if false, replace entry-get ops with entry-createprotected void updateKeySet(Operation op)
protected void initializeKeySet(boolean useLocalKeySet)
protected KeySetResult getKeySet(com.gemstone.gemfire.cache.Region aRegion, com.gemstone.gemfire.distributed.DistributedMember targetDM)
protected KeySetResult getKeySet(com.gemstone.gemfire.cache.Region aRegion, com.gemstone.gemfire.distributed.DistributedMember targetDM, com.gemstone.gemfire.distributed.DistributedMember excludeDM)
protected List executeGetAllMembersInDS()
public static Object getValueForKey(com.gemstone.gemfire.cache.Region aRegion, String key)
public Object getRandomKey(com.gemstone.gemfire.cache.Region aRegion, Object excludeKey)
getRandomKey in class TxViewUtilaRegion - - The region to get the key from.excludeKey - - The region to get the key from.public Operation getEntryWithPreviousKey(com.gemstone.gemfire.cache.Region aRegion)
getEntryWithPreviousKey in class TxUtilaRegion - The region to get from.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.