public class FailoverDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static com.gemstone.gemfire.cache.Cache |
cache |
protected static VM |
primary |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
FailoverDUnitTest(java.lang.String name)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
closeCache() |
static void |
createClientCache(java.lang.String hostName,
java.lang.Integer port1,
java.lang.Integer port2) |
static void |
createEntries() |
static java.lang.Integer |
createServerCache() |
static void |
put() |
static void |
putDuringFailover() |
static void |
registerInterestList() |
static void |
setBridgeObserver() |
void |
setUp()
Sets up the test (noop).
|
static void |
stopServer() |
void |
tearDown2()
Tears down the test.
|
void |
testFailover() |
void |
verifyEntries() |
void |
verifyEntriesAfterFailover() |
void |
waitForPrimaryAndBackups(int numBackups) |
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 VM primary
public void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class DistributedTestCasejava.lang.Exceptionpublic void testFailover()
public static void createClientCache(java.lang.String hostName,
java.lang.Integer port1,
java.lang.Integer port2)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Integer createServerCache()
throws java.lang.Exception
java.lang.Exceptionpublic void waitForPrimaryAndBackups(int numBackups)
public static void registerInterestList()
public static void createEntries()
public static void stopServer()
public static void put()
public void verifyEntries()
public static void setBridgeObserver()
public static void putDuringFailover()
public void verifyEntriesAfterFailover()
public void tearDown2()
throws java.lang.Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class DistributedTestCasejava.lang.Exceptionpublic static void closeCache()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.