public class HAInterestPart1DUnitTest extends HAInterestBaseTest
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2cache, client_k1, client_k2, conn, exceptionOccured, host, isAfterRegistrationCallbackCalled, isBeforeInterestRecoveryCallbackCalled, isBeforeRegistrationCallbackCalled, k1, k2, pool, PORT1, PORT2, PORT3, REGION_NAME, server_k1, server_k1_updated, server_k2, server1, server2, server3logPerTest, reconnect, system, testName| Constructor and Description |
|---|
HAInterestPart1DUnitTest(java.lang.String name)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
testBothPrimaryAndSecondaryFailureInRegisterInterest()
Tests if Primary and next primary candidate fails during interest registration
it should pick new primary from ep list and add these two server to dead ep list
and expect serverKeys as a response from registration on newly selected primary
|
void |
testInterestRegistrationOnBothPrimaryAndSecondary()
Tests whether interest is registered or not on both primary and secondaries
|
void |
testInterestRegistrationResponseOnBothPrimaryAndSecondary()
Tests whether interest is registered on both primary and secondaries and verify their responses
|
void |
testInterstRegistrationOnRecoveredEPbyDSM()
Tests if DeadServerMonitor on detecting an EP as alive should register client ( create CCP) as welll as register IL
|
void |
testPrimaryFailureInRegisterInterest()
Tests if Primary fails during interest registration should initiate failover
and should pick new primary and get server keys in response of registerInterest
|
void |
testProbablePrimaryFailureInRegisterInterest()
Tests if Primary fails during interest registration , it selects new primary from the ep list
after making this ep as primary it fails , so interst registration will initiate failover on this ep as well
it should pick new primary from ep list and these two server to dead ep list
and expect serverKeys as a response from registration on newly selected primary
|
void |
testRERegistrationWillNotCreateDuplicateKeysOnServerInterstMaps()
Tests whether re-registration of interest causes duplicates on server side interest map
|
void |
testSecondaryFailureInRegisterInterest()
Tests if Secondary fails during interest registration should add to dead Ep list
|
closeCache, createClientPoolCache, createClientPoolCacheConnectionToSingleServer, createClientPoolCacheWithSmallRetryInterval, createEntriesK1andK2, createEntriesK1andK2OnServer, createServerCache, createServerCacheWithLocalRegion, createServerEntriesK1andK2, getBackupVM, getBackupVM, getPrimaryVM, getPrimaryVM, getServerPort, getServerVM, putK1andK2, registerK1AndK2, registerK1AndK2OnPrimaryAndSecondaryAndVerifyResponse, reRegisterK1AndK2, setBridgeObserverForAfterRegistration, setBridgeObserverForBeforeInterestRecovery, setBridgeObserverForBeforeInterestRecoveryFailure, setBridgeObserverForBeforeRegistration, setUp, startServer, startServerAndPause, stopBothPrimaryAndSecondaryAndRegisterK1AndK2AndVerifyResponse, stopPrimaryAndRegisterK1AndK2AndVerifyResponse, stopPrimaryAndUnregisterRegisterK1, stopSecondaryAndRegisterK1AndK2AndVerifyResponse, stopSecondaryAndUNregisterK1, stopServer, tearDown2, unSetBridgeObserverForRegistrationCallback, verifyDeadAndLiveServers, verifyDispatcherIsAlive, verifyDispatcherIsNotAlive, verifyInterestRegistration, verifyInterestUNRegistration, verifyRefreshedEntriesFromServer, waitForAfterRegistrationCallback, waitForBeforeInterestRecoveryCallBack, waitForBeforeRegistrationCallbackaddExpectedException, 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, toStringpublic HAInterestPart1DUnitTest(java.lang.String name)
public void testInterestRegistrationOnBothPrimaryAndSecondary()
throws java.lang.Exception
java.lang.Exceptionpublic void testInterestRegistrationResponseOnBothPrimaryAndSecondary()
throws java.lang.Exception
java.lang.Exceptionpublic void testRERegistrationWillNotCreateDuplicateKeysOnServerInterstMaps()
throws java.lang.Exception
java.lang.Exceptionpublic void testPrimaryFailureInRegisterInterest()
throws java.lang.Exception
java.lang.Exceptionpublic void testSecondaryFailureInRegisterInterest()
throws java.lang.Exception
java.lang.Exceptionpublic void testBothPrimaryAndSecondaryFailureInRegisterInterest()
throws java.lang.Exception
java.lang.Exceptionpublic void testProbablePrimaryFailureInRegisterInterest()
throws java.lang.Exception
java.lang.Exceptionpublic void testInterstRegistrationOnRecoveredEPbyDSM()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.