public class WANTest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static Set<com.gemstone.gemfire.cache.wan.GatewaySender> |
gatewaySenders |
static WANTest |
instance |
protected boolean |
isBridgeClient |
protected boolean |
isBridgeConfiguration |
protected AtomicBoolean |
isQueuePrinting |
protected static int |
ITERATIONS |
static com.gemstone.gemfire.LogWriter |
logger |
protected static long |
maxOperations |
protected static WANOperationsClient |
opsClient |
static GsRandom |
rand |
protected static List<String> |
regionDescriptNames |
protected static List<String> |
regionNames |
static RandomValues |
rv |
static MethodCoordinator |
updateRegionSnapshot |
| Constructor and Description |
|---|
WANTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeEdgeClientCacheTask()
Closes an edge cache.
|
static void |
createGatewaySenderIdsTask()
Creates GatewaySender ids based on the
ConfigPrms.gatewaySenderConfig. |
static void |
createLocatorTask()
Creates a (disconnected) locator.
|
protected void |
doEntryOperationAllRegions() |
static void |
doEntryOperationTask() |
static void |
doHAEntryOperationTask() |
static void |
doHASenderOperationAndVerifyTask() |
static void |
doSenderOperationTask() |
static String |
generateAllRemoteDSNameLists(String prefix,
int n,
int m)
Generates comma-separated lists of remote distributed system names.
|
static String |
generateDoubleSuffixedNames(String prefix,
int n,
int m,
int start_n,
int start_m,
boolean varyFirst,
boolean useComma)
Generates a list of strings with the specified prefix and suffixed x_y,
where x varies start_n,...,n and y varies start_m,...,m, and x varies first
if varyFirst is true, else y.
|
static String |
generateRandomRemoteDSName(String prefix,
int n,
int m)
Generates comma-separated lists of remote distributed system names in
random topology.
|
static String |
generateRingRemoteDSName(String prefix,
int n,
int m)
Generates comma-separated lists of remote distributed system names in
random topology.
|
QueryObject |
getQueryObjectForCounter(long key)
Return a value for the given key
|
static void |
HydraTask_initPeerTask() |
static void |
HydraTask_initServerTask() |
static void |
HydraTask_initWANComponentsTask() |
static void |
HydraTask_pauseSenders()
Task to pause all senders in vm
|
static void |
HydraTask_resumeSenders()
Task to resume all senders in vm
|
static void |
HydraTask_stopWANComponents() |
static void |
HydraTask_verifyQueueEviction() |
static void |
initAccessorRegionTask() |
void |
initCQClient() |
static void |
initCQClientTask()
Initializes an edge CQ client based on the
CacheClientPrms. |
void |
initDatastoreRegion() |
void |
initEdgeClientCache() |
static void |
initEdgeClientCacheTask()
Initializes a edge cache based on the
CacheClientPrms. |
void |
initGatewayReceiver() |
static void |
initGatewayReceiverTask()
Initializes GatewayReceiver based on the
WANTestPrms#GatewayReceiverConfig. |
void |
initGatewaySender() |
static void |
initGatewaySenderTask()
Initializes GatewaySender based on the
ConfigPrms.gatewaySenderConfig. |
static void |
initializeClient() |
static void |
initializeDatastore() |
static void |
initializeLocator() |
void |
initPeerCache() |
static void |
initPeerCacheTask()
Initializes a peer cache based on the
ConfigPrms.cacheConfig. |
static void |
initPeerRegionTask() |
static void |
initServerCacheTask()
Initializes a server cache based on the
ConfigPrms.cacheConfig. |
static void |
initServerRegionTask() |
void |
killAndVerifyLocators() |
static void |
killAndVerifyLocatorsTask() |
static void |
killClient()
Kill the clients
|
void |
killPeerAndDoNonCoordinatedOps() |
static void |
killPeerAndDoNonCoordinatedOpsTask()
kill other peer and simultaneously do entry operations.
|
void |
killPeerAndDoOps() |
static void |
killPeerAndDoOpsTask()
kill other peer and simultaneously do entry operations.
|
static void |
mentionReferenceInBlackboard()
Mention the reference vm in the blackboard
|
static void |
printDistributionLocatorMapTask() |
void |
printQueueContents() |
static void |
printQueueContentsTask()
Prints the contents of the local queue.
|
void |
printRegionQueue(com.gemstone.gemfire.cache.Region region,
Set rq) |
void |
printSequentialKeys(com.gemstone.gemfire.cache.Region region) |
static void |
printSequentialKeysTask()
Prints the contents of the local cache.
|
void |
putSequentialKeys(com.gemstone.gemfire.cache.Region region) |
void |
putSequentialKeysAndHA() |
static void |
putSequentialKeysAndHATask()
Puts integers into the cache with a globally increasing shared counter as
the key.
|
void |
putSequentialKeysCQ(com.gemstone.gemfire.cache.Region region) |
static void |
putSequentialKeysCQTask()
Puts integers into the cache with a globally increasing shared counter as
the key.
|
static void |
putSequentialKeysTask()
Puts integers into the cache with a globally increasing shared counter as
the key.
|
void |
putSequentialKeyUsingPutAll(com.gemstone.gemfire.cache.Region region,
int sleepMs) |
void |
restartMembers() |
static void |
restartMembersTask() |
static void |
restartVerifyLocatorsTask() |
static void |
starAndVerifytLocatorAdminDSTask()
Connects a locator to its (admin-only) distributed system.
|
static void |
startAndConnectAndVerifyLocatorTask()
Connects a locator to its (admin-only) distributed system.
|
static void |
startAndConnectLocatorTask()
Connects a locator to its (non-admin) distributed system.
|
void |
startGatewaySender() |
static void |
startGatewaySenderTask() |
static void |
startLocatorAndAdminDSTask()
Connects a locator to its (admin-only) distributed system.
|
void |
startResumeSenders() |
static void |
startResumeSenderTask() |
static void |
stopGatewayReceiverTask() |
static void |
stopGatewaySenderTask() |
static void |
stopLocatorTask()
Stops a locator.
|
static void |
updateRegionSnapshotTask() |
static void |
validateDoEntryOperationTask()
Validates the contents of the local cache after running
doEntryOperationTask task
|
static void |
validateDoEntryOperationTxTask()
Validates the contents of the local cache after running
doEntryOperationTask task
|
protected void |
validateDoEntryOperationUniqueKeys() |
protected void |
validateDoEntryOperationUniqueKeysTransactions() |
static void |
validateEventsReceived()
Validate the events received by the clients with the reference Vm
|
void |
validateRegion(com.gemstone.gemfire.cache.Region aRegion) |
void |
validateSequentialKeysCQ(com.gemstone.gemfire.cache.Region region) |
static void |
validateSequentialKeysCQTask()
Validates the CQEvent counters and SelectResults against expected contents
of server region
|
protected void |
validateSequentialKeysInRegion() |
static void |
validateSequentialKeysTask()
Validates the contents of the local cache.
|
void |
verifyLocators() |
static void |
verifyLocatorsTask() |
protected void |
verifyQueueEviction() |
static void |
verifySenderOperationTask() |
static void |
waitForListenerSilence()
Task to wait for the listener silence before doing validation tasks.
|
protected void |
waitForLocatorDiscovery() |
void |
waitForQueuesToDrain()
Waits
WANTestPrms.secToWaitForQueue for queues to drain. |
static void |
waitForQueuesToDrainTask() |
void |
waitForRecovery(List startupRecoveryVms,
List departedRecoveryVMs) |
static void |
waitTask() |
protected static final int ITERATIONS
protected static final long maxOperations
protected boolean isBridgeConfiguration
protected boolean isBridgeClient
public static WANTest instance
protected static WANOperationsClient opsClient
public static volatile MethodCoordinator updateRegionSnapshot
public static com.gemstone.gemfire.LogWriter logger
public static GsRandom rand
public static RandomValues rv
protected static Set<com.gemstone.gemfire.cache.wan.GatewaySender> gatewaySenders
protected AtomicBoolean isQueuePrinting
public static void initializeLocator()
public static void initializeDatastore()
public static void initializeClient()
public static void createLocatorTask()
public static void startAndConnectLocatorTask()
public static void startAndConnectAndVerifyLocatorTask()
protected void waitForLocatorDiscovery()
public static void startLocatorAndAdminDSTask()
public static void starAndVerifytLocatorAdminDSTask()
public static void stopLocatorTask()
public static void initPeerCacheTask()
ConfigPrms.cacheConfig.public void initPeerCache()
public static void initServerCacheTask()
ConfigPrms.cacheConfig.public static void initPeerRegionTask()
public void initDatastoreRegion()
public static void initAccessorRegionTask()
public static void initServerRegionTask()
public static void initEdgeClientCacheTask()
CacheClientPrms.public void initEdgeClientCache()
public static void initCQClientTask()
CacheClientPrms.public void initCQClient()
public static void createGatewaySenderIdsTask()
ConfigPrms.gatewaySenderConfig.public static void initGatewaySenderTask()
ConfigPrms.gatewaySenderConfig.public void initGatewaySender()
public static void startGatewaySenderTask()
public void startGatewaySender()
public static void HydraTask_stopWANComponents()
public static void stopGatewaySenderTask()
public static void stopGatewayReceiverTask()
public static void initGatewayReceiverTask()
WANTestPrms#GatewayReceiverConfig.public void initGatewayReceiver()
public static void HydraTask_initPeerTask()
public static void HydraTask_initServerTask()
public static void HydraTask_initWANComponentsTask()
public static void closeEdgeClientCacheTask()
public static void validateSequentialKeysTask()
protected void validateSequentialKeysInRegion()
public void validateRegion(com.gemstone.gemfire.cache.Region aRegion)
public static void validateSequentialKeysCQTask()
throws Exception
Exceptionpublic void validateSequentialKeysCQ(com.gemstone.gemfire.cache.Region region)
public static void HydraTask_verifyQueueEviction()
public static void HydraTask_pauseSenders()
public static void HydraTask_resumeSenders()
protected void verifyQueueEviction()
public static void printQueueContentsTask()
throws Exception
Exceptionpublic void printQueueContents()
public void printRegionQueue(com.gemstone.gemfire.cache.Region region,
Set rq)
public static void waitForQueuesToDrainTask()
public void waitForQueuesToDrain()
WANTestPrms.secToWaitForQueue for queues to drain.
Suitable for use as a helper method or hydra task.public static void waitForListenerSilence()
public static void printSequentialKeysTask()
throws Exception
Exceptionpublic void printSequentialKeys(com.gemstone.gemfire.cache.Region region)
throws Exception
Exceptionpublic static void doHAEntryOperationTask()
public static void doEntryOperationTask()
protected void doEntryOperationAllRegions()
public static void validateDoEntryOperationTask()
protected void validateDoEntryOperationUniqueKeys()
public static void updateRegionSnapshotTask()
public static void validateDoEntryOperationTxTask()
protected void validateDoEntryOperationUniqueKeysTransactions()
public static void putSequentialKeysTask()
throws Exception
Exceptionpublic void putSequentialKeys(com.gemstone.gemfire.cache.Region region)
throws Exception
Exceptionpublic static void putSequentialKeysAndHATask()
throws Exception
Exceptionpublic static void putSequentialKeysCQTask()
throws Exception
Exceptionpublic void putSequentialKeysCQ(com.gemstone.gemfire.cache.Region region)
throws Exception
Exceptionpublic static void mentionReferenceInBlackboard()
public static void validateEventsReceived()
public static void killClient()
public QueryObject getQueryObjectForCounter(long key)
public void putSequentialKeyUsingPutAll(com.gemstone.gemfire.cache.Region region,
int sleepMs)
throws Exception
Exceptionpublic static void waitTask()
public static String generateAllRemoteDSNameLists(String prefix, int n, int m)
public static String generateRingRemoteDSName(String prefix, int n, int m)
public static String generateRandomRemoteDSName(String prefix, int n, int m)
public static void killAndVerifyLocatorsTask()
public void killAndVerifyLocators()
public static void restartVerifyLocatorsTask()
public static void printDistributionLocatorMapTask()
public static void verifyLocatorsTask()
public void verifyLocators()
public static void killPeerAndDoOpsTask()
public void killPeerAndDoOps()
public static void killPeerAndDoNonCoordinatedOpsTask()
public void killPeerAndDoNonCoordinatedOps()
public static void restartMembersTask()
public void restartMembers()
public static void doSenderOperationTask()
public static void doHASenderOperationAndVerifyTask()
public static void verifySenderOperationTask()
public static String generateDoubleSuffixedNames(String prefix, int n, int m, int start_n, int start_m, boolean varyFirst, boolean useComma)
generateDoubleSuffixedNames("frip", 3, 2, 1, 3, true, false) yields: frip_1_3 frip_2_3 frip_3_3 frip_1_4 frip_2_4 frip_3_4.
generateDoubleSuffixedNames("frip", 3, 2, 1, 3, false, false) yields: frip_1_3 frip_1_4 frip_2_3 frip_2_4 frip_3_3 frip_3_4.
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.