public class WanDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2logPerTest, reconnect, system, testName| Constructor and Description |
|---|
WanDUnitTest(java.lang.String name)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
closeCache()
close the cache
|
static void |
createClientCache(java.lang.String host,
java.lang.Integer mcast_port,
java.lang.Integer server_port)
creates the client with retry 1
|
static void |
createImpl() |
static java.lang.Object |
createServerCache1(java.lang.Object end_port)
create server 1
|
static void |
createServerCache2(java.lang.Integer mcast_port,
java.lang.Integer server_port)
create server 2 with writer
|
static java.lang.Object |
createServerCache3() |
static void |
doPutsOnClientExpectingException()
does a put on the client expecting an exception
|
static void |
doPutsOnClientNotExpectingException()
does a put on the client not expecting an exception
|
protected com.gemstone.gemfire.cache.AttributesFactory |
getServerCacheAttributesFactory() |
void |
setUp()
Sets up the test (noop).
|
static void |
setWriter() |
void |
tearDown2()
close the clients and teh servers
|
void |
testOneServerNotResponding()
tests what happens if a put is not succesful due the put being
blocked at the secondary server
|
void |
testServerOverWanNotResponding() |
static void |
unsetForceLocalPrimary() |
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, toStringpublic static void createImpl()
public void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class DistributedTestCasejava.lang.Exceptionpublic void testOneServerNotResponding()
public void testServerOverWanNotResponding()
public static void createClientCache(java.lang.String host,
java.lang.Integer mcast_port,
java.lang.Integer server_port)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Object createServerCache1(java.lang.Object end_port)
throws java.lang.Exception
java.lang.Exceptionpublic static void createServerCache2(java.lang.Integer mcast_port,
java.lang.Integer server_port)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Object createServerCache3()
throws java.lang.Exception
java.lang.Exceptionprotected com.gemstone.gemfire.cache.AttributesFactory getServerCacheAttributesFactory()
public void tearDown2()
throws java.lang.Exception
tearDown2 in class DistributedTestCasejava.lang.Exceptionpublic static void unsetForceLocalPrimary()
public static void closeCache()
public static void setWriter()
public static void doPutsOnClientExpectingException()
throws java.lang.Exception
java.lang.Exceptionpublic static void doPutsOnClientNotExpectingException()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.