public class MLRioTest extends OperationsClient
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isNewWanConfig |
protected static int |
ITERATIONS |
protected int |
numDynamicRegions |
protected int |
numRootRegions |
protected RandomValues |
randomValues |
protected static MLRioTest |
testInstance |
createCallbackPrefix, destroyCallbackPrefix, distLockService, ENTRY_ADD_OPERATION, ENTRY_DESTROY_OPERATION, ENTRY_GET_NEW_OPERATION, ENTRY_GET_OPERATION, ENTRY_INVALIDATE_OPERATION, ENTRY_LOCAL_DESTROY_OPERATION, ENTRY_LOCAL_INVALIDATE_OPERATION, ENTRY_PUTALL_OPERATION, ENTRY_UPDATE_OPERATION, getCallbackPrefix, invalidateCallbackPrefix, LOCK_NAME, LOCK_SERVICE_NAME, lockOperations, lowerThreshold, minTaskGranularityMS, minTaskGranularitySec, numOpsPerTask, PUT_IF_ABSENT_OPERATION, regionDestroyCallbackPrefix, regionInvalidateCallbackPrefix, REMOVE_OPERATION, REPLACE_OPERATION, updateCallbackPrefix, upperThreshold, useTransactions, VmIDStr| Constructor and Description |
|---|
MLRioTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeCacheAndDisconnectFromDS()
Close the cache (and disconnect from the DS)
This should prevent the ShutdownException: no down protocol available!
during Shutdown (if locators (client vms) are shut down prior to
application client vms
|
protected void |
createAndStartNewWanComponents() |
protected com.gemstone.gemfire.cache.Region |
createDynamicRegion(String parentName,
String drName)
Creates a dynamic region (from dynamicReg/DynamicRegionTest.java)
|
protected void |
createDynamicRegions() |
protected void |
createGatewayHub() |
protected void |
doEntryOperations() |
protected void |
forceDisconnect() |
protected double |
getConflatedEventCount() |
protected com.gemstone.gemfire.cache.Region |
getRandomRegion(boolean allowRootRegion)
Selects random region (copied from dynamicReg/DynamicRegionTest.java)
|
protected com.gemstone.gemfire.cache.Region |
getRandomRootRegion()
Selects and returns a random rootRegion
|
protected void |
healthController() |
static void |
HydraCloseTask_validateKeysInRegion()
This validation task does not do any coordination between the
publishing/forcedDisconnect or validation.
|
static void |
HydraEndTask_verifyConflation() |
static void |
HydraTask_createAndStartNewWanComponents()
Creates start new wan components i.e senders based on
ConfigPrms.gatewaySenderConfig
and receivers based on ConfigPrms.gatewayReceiverConfig. |
static void |
HydraTask_createDynamicRegions()
Create MLRioBB.numDynamicRegions (execute once in each WAN Site)
after servers and clients have been initialized (with non-dynamic
parent regions).
|
static void |
HydraTask_createGatewaySenderIds()
Creates GatewaySender ids based on the
ConfigPrms.gatewaySenderConfig. |
static void |
HydraTask_doEntryOperations()
Performs puts/gets on entries in TestRegion
|
static void |
HydraTask_forceDisconnect()
Cause a server to beSick/playDead (but don't synchronize with
bridgeClient operations (use healthController for coordination
with validation).
|
static void |
HydraTask_healthController()
Cause a server to beSick/playDead.
|
static void |
HydraTask_initializeBridgeClient()
Setup DynamicRegionFactory and create non-dynamic parent regions
|
static void |
HydraTask_initializeBridgeServer() |
static void |
HydraTask_networkController()
Cause a network split between the primary and secondary gateway (servers)
in WAN Site #1.
|
static void |
HydraTask_putSequentialKeys()
Performs ITERATIONS puts on a unique entry in TestRegion
Each assignment of this task gets a new key from the NameFactory, and then
updates that key with sequential values from 1 -> ITERATIONS.
|
static void |
HydraTask_startGatewayHubTask()
Add Gateways and start the GatewayHub
Note: This must be done after all servers have been initialized (and
invoked createGatewayHub(), so the hydra WAN blackboard knows about
all the available servers and endpoints.
|
static void |
HydraTask_waitForDynamicRegions()
Create MLRioBB.numDynamicRegions (execute once in each WAN Site)
after servers and clients have been initialized (with non-dynamic
parent regions).
|
void |
initCacheWithXml(String cacheConfig,
String regionConfig,
String poolConfig)
Initialize using XML based on the given cache and region configurations.
|
protected void |
initializeBridgeClient() |
protected void |
initializeBridgeServer() |
protected void |
networkController() |
protected void |
putSequentialKeys() |
protected void |
startGatewayHub(String gatewayConfig)
Starts a gateway hub in a VM that previously created one, after creating
gateways.
|
protected void |
validateKeysInRegion() |
protected void |
validateRegion(com.gemstone.gemfire.cache.Region aRegion,
boolean verifyModVal) |
protected void |
validateSequentialKeys()
This validation method coordinates client operations/validation with the
healthController (forcedDisconnect of bridge/gateway).
|
protected void |
verifyConflation() |
addEntry, createLocatorTask, destroyEntry, doEntryOperations, getExistingKey, getExistingKeys, getKey, getNewKey, getNewKey, getOperation, getRecentKey, getUpdateObject, getValueForKey, initializeOperationsClient, invalidateEntry, putAll, putIfAbsent, remove, remove, replace, replace, startAndConnectLocatorTask, stopLocatorTask, updateEntryprotected static final int ITERATIONS
protected static MLRioTest testInstance
protected RandomValues randomValues
protected int numRootRegions
protected int numDynamicRegions
protected boolean isNewWanConfig
public static void HydraTask_initializeBridgeServer()
protected void initializeBridgeServer()
public static void HydraTask_startGatewayHubTask()
protected void startGatewayHub(String gatewayConfig)
public static void HydraTask_createGatewaySenderIds()
ConfigPrms.gatewaySenderConfig.public static void HydraTask_createAndStartNewWanComponents()
ConfigPrms.gatewaySenderConfig
and receivers based on ConfigPrms.gatewayReceiverConfig.protected void createAndStartNewWanComponents()
public static void HydraTask_initializeBridgeClient()
protected void initializeBridgeClient()
public static void HydraTask_createDynamicRegions()
protected void createDynamicRegions()
public static void HydraTask_waitForDynamicRegions()
public void initCacheWithXml(String cacheConfig, String regionConfig, String poolConfig)
protected void createGatewayHub()
public static void HydraTask_forceDisconnect()
protected void forceDisconnect()
public static void HydraTask_healthController()
protected void healthController()
public static void HydraTask_networkController()
protected void networkController()
public static void HydraTask_putSequentialKeys()
protected void putSequentialKeys()
public static void HydraTask_doEntryOperations()
protected void doEntryOperations()
public static void closeCacheAndDisconnectFromDS()
protected void validateSequentialKeys()
public static void HydraCloseTask_validateKeysInRegion()
protected void validateKeysInRegion()
protected void validateRegion(com.gemstone.gemfire.cache.Region aRegion,
boolean verifyModVal)
protected com.gemstone.gemfire.cache.Region getRandomRegion(boolean allowRootRegion)
protected com.gemstone.gemfire.cache.Region createDynamicRegion(String parentName, String drName)
protected com.gemstone.gemfire.cache.Region getRandomRootRegion()
public static void HydraEndTask_verifyConflation()
protected void verifyConflation()
protected double getConflatedEventCount()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.