public class HAInterestBaseTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static com.gemstone.gemfire.cache.Cache |
cache |
protected static String |
client_k1 |
protected static String |
client_k2 |
protected static com.gemstone.gemfire.cache.client.internal.Connection |
conn |
protected static boolean |
exceptionOccured |
protected static Host |
host |
protected static boolean |
isAfterRegistrationCallbackCalled |
protected static boolean |
isBeforeInterestRecoveryCallbackCalled |
protected static boolean |
isBeforeRegistrationCallbackCalled |
protected static String |
k1 |
protected static String |
k2 |
protected static com.gemstone.gemfire.cache.client.internal.PoolImpl |
pool |
protected static int |
PORT1 |
protected static int |
PORT2 |
protected static int |
PORT3 |
protected static String |
REGION_NAME |
protected static String |
server_k1 |
protected static String |
server_k1_updated |
protected static String |
server_k2 |
protected static VM |
server1 |
protected static VM |
server2 |
protected static VM |
server3 |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
HAInterestBaseTest(String name)
constructor
|
addExpectedException, addExpectedException, addHydraProperties, attachDebugger, checkBBFlag, cleanupAllVms, clearBBFlag, crashDistributedSystem, crashDistributedSystem, createLogWriter, disconnectAllFromDS, disconnectFromDS, dumpAllStacks, dumpMyThreads, dumpStack, dumpStack, dumpStack, dumpStackTrace, fail, getAllDistributedSystemProperties, getDistributedSystemProperties, getDUnitLocatorAddress, getDUnitLocatorPort, getDUnitLocatorString, getDUnitLogLevel, getIPLiteral, getLogWriter, getLonerSystem, getMcastSystem, getMcastSystem, getRepeatTimeoutMs, getServerHostName, getSystem, getSystem, getTestClass, getTestName, getUniqueName, getVMCount, incBBFlag, invokeInEveryVM, invokeInEveryVM, invokeInEveryVM, invokeInEveryVM, invokeInEveryVMRepeatingIfNecessary, invokeInLocator, invokeRepeatingIfNecessary, isConnectedToDS, join, noteTiming, pause, pause, perVMSetUp, realTearDown, setDiskStoreForGateway, setSystem, setTestName, staticPause, tearDown, unregisterAllDataSerializersFromAllVms, unregisterDataSerializerInThisVM, unregisterInstantiatorsInThisVM, waitForBBFlag, waitForCriterion, waitMutexassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toStringprotected static com.gemstone.gemfire.cache.Cache cache
protected static com.gemstone.gemfire.cache.client.internal.PoolImpl pool
protected static com.gemstone.gemfire.cache.client.internal.Connection conn
protected static int PORT1
protected static int PORT2
protected static int PORT3
protected static final String k1
protected static final String k2
protected static final String client_k1
protected static final String client_k2
protected static final String server_k1
protected static final String server_k2
protected static final String server_k1_updated
protected static boolean isBeforeRegistrationCallbackCalled
protected static boolean isBeforeInterestRecoveryCallbackCalled
protected static boolean isAfterRegistrationCallbackCalled
protected static final String REGION_NAME
protected static Host host
protected static VM server1
protected static VM server2
protected static VM server3
protected static volatile boolean exceptionOccured
public HAInterestBaseTest(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic static VM getPrimaryVM()
public static VM getPrimaryVM(VM oldPrimary)
public static VM getBackupVM()
public static int getServerPort(VM vm)
public static VM getServerVM(int port)
public static void verifyRefreshedEntriesFromServer()
public static void verifyDeadAndLiveServers(int expectedDeadServers,
int expectedLiveServers)
public static void putK1andK2()
public static void setBridgeObserverForBeforeInterestRecoveryFailure()
public static void setBridgeObserverForBeforeInterestRecovery()
public static void waitForBeforeInterestRecoveryCallBack()
public static void setBridgeObserverForBeforeRegistration(VM vm)
public static void waitForBeforeRegistrationCallback()
public static void setBridgeObserverForAfterRegistration(VM vm)
public static void waitForAfterRegistrationCallback()
public static void unSetBridgeObserverForRegistrationCallback()
public static void verifyDispatcherIsAlive()
public static void verifyDispatcherIsNotAlive()
public static void createEntriesK1andK2OnServer()
public static void createEntriesK1andK2()
public static void createServerEntriesK1andK2()
public static void registerK1AndK2()
public static void reRegisterK1AndK2()
public static void startServer()
public static void startServerAndPause()
public static void stopServer()
public static void stopPrimaryAndRegisterK1AndK2AndVerifyResponse()
public static void stopPrimaryAndUnregisterRegisterK1()
public static void stopBothPrimaryAndSecondaryAndRegisterK1AndK2AndVerifyResponse()
public static VM stopSecondaryAndRegisterK1AndK2AndVerifyResponse()
public static VM stopSecondaryAndUNregisterK1()
public static void registerK1AndK2OnPrimaryAndSecondaryAndVerifyResponse()
public static void verifyInterestRegistration()
public static void verifyInterestUNRegistration()
public static void createClientPoolCache(String testName, String host) throws Exception
Exceptionpublic static void createClientPoolCacheWithSmallRetryInterval(String testName, String host) throws Exception
Exceptionpublic static void createClientPoolCacheConnectionToSingleServer(String testName, String hostName) throws Exception
Exceptionpublic static Integer createServerCacheWithLocalRegion() throws Exception
Exceptionpublic void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class DistributedTestCaseExceptionpublic static void closeCache()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.