public class WANRecoveryTest extends OperationsClient
| Modifier and Type | Field and Description |
|---|---|
protected static int |
ITERATIONS |
protected RandomValues |
randomValues |
protected static WANRecoveryTest |
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 |
|---|
WANRecoveryTest() |
| 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 com.gemstone.gemfire.cache.Region |
createDynamicRegion(String parentName,
String drName)
Creates a dynamic region (from dynamicReg/DynamicRegionTest.java)
|
protected void |
createGatewayHub() |
static void |
createLocatorTask()
Creates a (disconnected) locator.
|
protected void |
doEntryOperations() |
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
|
static void |
HydraCloseTask_validateKeysInRegion()
This validation task does not do any coordination between the
publishing, recyclePrimary and validation.
|
static void |
HydraEndTask_verifyConflation() |
static void |
HydraTask_doEntryOperations()
Performs puts/gets on entries in TestRegion
|
static void |
HydraTask_initializeBridgeClient()
Setup DynamicRegionFactory and create non-dynamic parent regions
|
static void |
HydraTask_initializeBridgeServer() |
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_recyclePrimary()
Recycle primary gateway in WAN Site #1
(to force redundancy recovery)
|
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.
|
protected void |
initializeBridgeClient() |
protected void |
initializeBridgeServer() |
protected void |
putSequentialKeys() |
protected void |
recyclePrimary() |
static void |
startAndConnectLocatorTask()
Connects a locator to its distributed system.
|
protected void |
startGatewayHub(String gatewayConfig)
Starts a gateway hub in a VM that previously created one, after creating
gateways.
|
static void |
stopLocatorTask()
Stops a locator.
|
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
recyclePrimary
Called directly from putSequentialKeys task which coordinates
publishing, recyclePrimary and validation by pausing and waiting
for activities to sync up.
|
protected void |
verifyConflation() |
addEntry, destroyEntry, doEntryOperations, getExistingKey, getExistingKeys, getKey, getNewKey, getNewKey, getOperation, getRecentKey, getUpdateObject, getValueForKey, initializeOperationsClient, invalidateEntry, putAll, putIfAbsent, remove, remove, replace, replace, updateEntryprotected static final int ITERATIONS
protected static WANRecoveryTest testInstance
protected RandomValues randomValues
public static void createLocatorTask()
public static void startAndConnectLocatorTask()
public static void stopLocatorTask()
public static void HydraTask_initializeBridgeServer()
protected void initializeBridgeServer()
public static void HydraTask_startGatewayHubTask()
protected void startGatewayHub(String gatewayConfig)
public static void HydraTask_initializeBridgeClient()
protected void initializeBridgeClient()
protected void createGatewayHub()
public static void HydraTask_recyclePrimary()
protected void recyclePrimary()
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.