public class WanQueueSizeDUnitTest extends CacheTestCase
CACHE_SIZEfeild
can be changed to put different size objects on the region.DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
static com.gemstone.gemfire.cache.Cache |
cache |
static String |
CLASS_NAME |
static int |
CLIENT_PORT |
static int |
MAX_PUT |
static String |
REGION_NAME |
static int |
SERVER_PORT |
static int |
SOCKET_BUFF_SIZE |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
WanQueueSizeDUnitTest(String name)
Constructs a test case with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
_testWanQueueSize() |
static void |
closeStaticCache()
This test really should be convereted to using the cache managed by CacheTestCase
and this method would then not be needed CacheTestCase.cacheClose()
|
static void |
createWanClient()
This function creates single node wan site to act as a client.
|
static void |
createWanServer(String host)
This function creates single node wan site to act as a server.
|
static void |
doPutAtServer()
Function for populating the wan eanbled region at the server.
|
static void |
getAtClient()
Function for pgetting the data from wan eanbled region at the server.
|
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
Tear down for test
|
void |
testThisDUnitIsBroken()
This Dunit test does the following:
1) Creates a wan site-1 with a Gateway and a wan enabled region to act as a server. |
addExceptionTag1, basicGetCache, beginCacheXml, cleanDiskDirs, closeAllCache, closeCache, createLonerCache, createMcastCache, createMcastCache, createRegion, createRegion, createRootRegion, createRootRegion, disconnectFromDS, finishCacheXml, finishCacheXml, getCache, getCache, getCache, getCache, getClientCache, getDiskDirs, getGemfireCache, getInternalRegionArguments, getRootRegion, getRootRegion, hasCache, remoteTearDown, removeExceptionTag1, sendSerialMessageToAll, sendUnorderedMessageToAlladdExpectedException, addExpectedException, addHydraProperties, attachDebugger, checkBBFlag, cleanupAllVms, clearBBFlag, crashDistributedSystem, crashDistributedSystem, createLogWriter, disconnectAllFromDS, 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 String CLASS_NAME
public static final int SERVER_PORT
public static final int CLIENT_PORT
public static final int SOCKET_BUFF_SIZE
public static final String REGION_NAME
public static volatile com.gemstone.gemfire.cache.Cache cache
public static final int MAX_PUT
public WanQueueSizeDUnitTest(String name)
name - public void setUp()
DistributedTestCasesetUp in class DistributedTestCasepublic void tearDown2()
throws Exception
tearDown2 in class CacheTestCaseExceptionpublic void testThisDUnitIsBroken()
throws Exception
Exceptionpublic static void createWanServer(String host) throws Exception
Exceptionpublic static void createWanClient()
throws Exception
Exceptionpublic static void doPutAtServer()
throws Exception
Exceptionpublic static void closeStaticCache()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.