public class DurableClientsTest extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FULL_LIST |
static long |
lastEventReceivedTime |
static int |
NETDOWN_TIME |
static String |
PARTIAL_LIST |
static boolean |
receivedLastKey |
protected static String |
REGION_NAME |
static String |
SLOW_START_TIME |
protected static boolean |
useClientCache |
| Constructor and Description |
|---|
DurableClientsTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkBlackBoardForException()
Check the blackboard for any event of Exception thrown by the java threads
|
static void |
checkForConflation()
Task to confirm conflation happening in the test
|
static void |
checkHAOverFlowUsedOnPrimary()
This method is an CLOSETASK and does the following :
use ha overflow status flag in share black board for inference on HAOverFlow use in test |
static void |
clientNetDown()
Causing the client to temporarily disconnect from the server
|
static void |
clientNormalShutDown()
Kill the clients with normal shutdown and client keep-alive option as true
|
static void |
closeCache(boolean keepAlive)
Utility method to close cache (with keepAlive parameter) on either the
Cache or ClientCache (depending on test configuration).
|
static void |
cqClientNormalShutDown()
Kill the cq clients with normal shutdown and client keep-alive option as true
|
static com.gemstone.gemfire.cache.GemFireCache |
createCache()
Utility method to create the cache or client cache (depending on
test configuration).
|
static com.gemstone.gemfire.cache.Region |
createRegion(String regionName)
Utility method to create the region via CacheHelepr or ClientCacheHelper
depending on test configuration (useClientCache).
|
static com.gemstone.gemfire.cache.GemFireCache |
getCache()
Utility method to get either the Cache or ClientCache (depending on
test configuration).
|
static void |
getConflationStats()
Get the stats for conflated events for the conflation tests
|
static void |
initCacheClient()
Initializes the client caches and the regions
|
static void |
initCacheServer()
Initializes the test region in the cache server VM.
|
static void |
initCQClient()
Initializes the test region in the cache client VM and registers a CQ
|
static void |
killClient()
Kill the clients
|
static void |
killServer() |
static void |
killStableServer()
Killing the Stable server
|
static void |
mentionReferenceInBlackboard()
Puts the events of the reference Vm in blackboard
|
static void |
putHAStatsInBlackboard()
Putting the stats
|
static void |
readyForEvents()
Utility method to call readyForEvents() on either the Cache or ClientCache
(depending on test configuration).
|
static void |
registerInterest()
Register Interest Hydra task for clients
|
static void |
registerInterestALL_KEYS()
Register Interest ALL_KEYS
|
static void |
registerInterestFull_List()
Register Interest on Full List of Keys
|
static void |
registerInterestPartial_List()
Register Interest on Partial List of Keys
|
static void |
toggleHAOverflowFlag()
This method is an CLOSETASK and does the following :
toggle ha overflow status flag in shared black board |
static void |
validateEventsReceived()
Validate the events received by the clients with the reference Vm
|
static void |
verifyDataInRegion()
Verify the region entries with the feeder entries
|
static void |
verifyIndividualConflation()
This task is for the client Q conflation tests.
|
static void |
verifyNoConflation()
This task is for the client Q conflation tests.
|
static void |
waitForLastKeyReceivedAtClient()
Task to wait till the client receives its last key
|
protected static final boolean useClientCache
protected static final String REGION_NAME
public static final String PARTIAL_LIST
public static final String FULL_LIST
public static final String SLOW_START_TIME
public static volatile boolean receivedLastKey
public static final int NETDOWN_TIME
public static volatile long lastEventReceivedTime
public static void initCacheServer()
public static void initCacheClient()
public static void initCQClient()
public static void registerInterest()
public static void registerInterestALL_KEYS()
public static void registerInterestPartial_List()
public static void registerInterestFull_List()
public static void killClient()
public static void clientNormalShutDown()
public static void cqClientNormalShutDown()
public static void clientNetDown()
public static void killStableServer()
throws ClientVmNotFoundException
ClientVmNotFoundExceptionpublic static void killServer()
throws ClientVmNotFoundException
ClientVmNotFoundExceptionpublic static void putHAStatsInBlackboard()
public static void getConflationStats()
public static void verifyIndividualConflation()
public static void verifyNoConflation()
public static void checkForConflation()
public static void verifyDataInRegion()
public static void mentionReferenceInBlackboard()
public static void validateEventsReceived()
public static void checkBlackBoardForException()
public static void waitForLastKeyReceivedAtClient()
public static void toggleHAOverflowFlag()
public static void checkHAOverFlowUsedOnPrimary()
TestExceptionpublic static void readyForEvents()
public static void closeCache(boolean keepAlive)
public static com.gemstone.gemfire.cache.GemFireCache getCache()
public static com.gemstone.gemfire.cache.GemFireCache createCache()
public static com.gemstone.gemfire.cache.Region createRegion(String regionName)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.