public class RedundancyLevelTestBase extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
makePrimaryCalled |
protected static boolean |
registerInterestCalled |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
RedundancyLevelTestBase(String name)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
caseSetUp() |
static void |
closeCache() |
static void |
createClientCache(String host,
int port1,
int port2,
int port3,
int port4,
int redundancy) |
static void |
createClientCache(String host,
int port1,
int port2,
int port3,
int port4,
int redundancy,
int socketReadTimeout,
int retryInterval) |
static void |
createEntriesK1andK2() |
static Integer |
createServerCache() |
static void |
doPuts() |
static void |
putEntriesK1andK2() |
static void |
registerK1AndK2() |
void |
setUp()
Sets up the test (noop).
|
static void |
startServer() |
static void |
stopServer() |
void |
tearDown2()
Tears down the test.
|
static void |
unregisterInterest() |
static void |
verifyCCP() |
static void |
verifyDeadServers(int deadServers) |
static void |
verifyDispatcherIsAlive() |
static void |
verifyDispatcherIsNotAlive() |
static void |
verifyInterestRegistration() |
static void |
verifyLiveAndRedundantServers(int liveServers,
int redundantServers) |
static void |
verifyNoCCP() |
static void |
verifyOrderOfEndpoints() |
static void |
verifyRedundantServersContain(String server) |
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 volatile boolean registerInterestCalled
protected static volatile boolean makePrimaryCalled
public RedundancyLevelTestBase(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic static void doPuts()
public static void putEntriesK1andK2()
public static void verifyDispatcherIsAlive()
public static void verifyDispatcherIsNotAlive()
public static void verifyRedundantServersContain(String server)
public static void verifyLiveAndRedundantServers(int liveServers,
int redundantServers)
public static void verifyDeadServers(int deadServers)
public static void createEntriesK1andK2()
public static void registerK1AndK2()
public static void unregisterInterest()
public static void verifyNoCCP()
public static void verifyCCP()
public static void verifyInterestRegistration()
public static void stopServer()
public static void startServer()
public static void createClientCache(String host, int port1, int port2, int port3, int port4, int redundancy) throws Exception
Exceptionpublic static void createClientCache(String host, int port1, int port2, int port3, int port4, int redundancy, int socketReadTimeout, int retryInterval) throws Exception
Exceptionpublic static void verifyOrderOfEndpoints()
public 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.