public class PRClientServerTestBase extends CacheTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static com.gemstone.gemfire.cache.client.internal.PoolImpl |
pool |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
PRClientServerTestBase(String name) |
PRClientServerTestBase(String name,
boolean isSingleHop,
boolean isSelector) |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeCache() |
static void |
closeCacheHA() |
static void |
createCacheClient_SingleConnection(String host,
Integer port1) |
static void |
createCacheClient(String host,
Integer port1,
Integer port2,
Integer port3) |
static void |
createCacheClientWith2Regions(String host,
Integer port1,
Integer port2,
Integer port3) |
static void |
createCacheClientWithDistributedRegion(String host,
Integer port1,
Integer port2,
Integer port3) |
static void |
createCacheClientWithoutRegion(String host,
Integer port1,
Integer port2,
Integer port3) |
static void |
createCacheInVm(Properties props) |
static Integer |
createCacheServer() |
static Integer |
createCacheServer(ArrayList commonAttributes,
Integer localMaxMemory) |
static Integer |
createCacheServerWith2Regions(ArrayList commonAttributes,
Integer localMaxMemory) |
static Integer |
createCacheServerWithDR() |
protected void |
createClientServerScenarion_SingleConnection(ArrayList commonAttributes,
int localMaxMemoryServer1,
int localMaxMemoryServer2,
int localMaxMemoryServer3) |
protected void |
createClientServerScenarion(ArrayList commonAttributes,
int localMaxMemoryServer1,
int localMaxMemoryServer2,
int localMaxMemoryServer3) |
protected void |
createClientServerScenarioNoSingleHop(ArrayList commonAttributes,
int localMaxMemoryServer1,
int localMaxMemoryServer2,
int localMaxMemoryServer3) |
protected void |
createClientServerScenarionWith2Regions(ArrayList commonAttributes,
int localMaxMemoryServer1,
int localMaxMemoryServer2,
int localMaxMemoryServer3) |
protected void |
createClientServerScenarionWithDistributedtRegion() |
protected void |
createClientServerScenarionWithoutRegion() |
protected void |
createClientServerScenarioSelectorNoSingleHop(ArrayList commonAttributes,
int localMaxMemoryServer1,
int localMaxMemoryServer2,
int localMaxMemoryServer3) |
protected void |
createClientServerScenarioSingleHop(ArrayList commonAttributes,
int localMaxMemoryServer1,
int localMaxMemoryServer2,
int localMaxMemoryServer3) |
ArrayList |
createCommonServerAttributes(String regionName,
com.gemstone.gemfire.cache.PartitionResolver pr,
int red,
int numBuckets,
String colocatedWithRegion) |
static void |
createNoSingleHopCacheClient(String host,
Integer port1,
Integer port2,
Integer port3) |
static Integer |
createSelectorCacheServer(ArrayList commonAttributes,
Integer localMaxMemory) |
static void |
createSingleHopCacheClient(String host,
Integer port1,
Integer port2,
Integer port3) |
static void |
registerFunction(com.gemstone.gemfire.cache.execute.Function function) |
protected void |
registerFunctionAtServer(com.gemstone.gemfire.cache.execute.Function function) |
protected void |
runOnAllServers(SerializableRunnable runnable) |
void |
setUp()
Sets up the test (noop).
|
static void |
startServerHA() |
static void |
stopServerHA() |
void |
tearDown2()
Tears down the test.
|
addExceptionTag1, basicGetCache, beginCacheXml, cleanDiskDirs, closeAllCache, 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 PRClientServerTestBase(String name, boolean isSingleHop, boolean isSelector)
public PRClientServerTestBase(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic ArrayList createCommonServerAttributes(String regionName, com.gemstone.gemfire.cache.PartitionResolver pr, int red, int numBuckets, String colocatedWithRegion)
public static Integer createCacheServer(ArrayList commonAttributes, Integer localMaxMemory)
public static Integer createSelectorCacheServer(ArrayList commonAttributes, Integer localMaxMemory)
public static Integer createCacheServerWith2Regions(ArrayList commonAttributes, Integer localMaxMemory)
public static Integer createCacheServer()
public static Integer createCacheServerWithDR()
public static void createCacheClient(String host, Integer port1, Integer port2, Integer port3) throws Exception
Exceptionpublic static void createCacheClient_SingleConnection(String host, Integer port1) throws Exception
Exceptionpublic static void createCacheClientWith2Regions(String host, Integer port1, Integer port2, Integer port3) throws Exception
Exceptionpublic static void createSingleHopCacheClient(String host, Integer port1, Integer port2, Integer port3) throws Exception
Exceptionpublic static void createNoSingleHopCacheClient(String host, Integer port1, Integer port2, Integer port3) throws Exception
Exceptionpublic static void createCacheClientWithoutRegion(String host, Integer port1, Integer port2, Integer port3) throws Exception
Exceptionpublic static void createCacheClientWithDistributedRegion(String host, Integer port1, Integer port2, Integer port3) throws Exception
Exceptionprotected void createClientServerScenarion(ArrayList commonAttributes, int localMaxMemoryServer1, int localMaxMemoryServer2, int localMaxMemoryServer3)
protected void createClientServerScenarion_SingleConnection(ArrayList commonAttributes, int localMaxMemoryServer1, int localMaxMemoryServer2, int localMaxMemoryServer3)
protected void createClientServerScenarionWith2Regions(ArrayList commonAttributes, int localMaxMemoryServer1, int localMaxMemoryServer2, int localMaxMemoryServer3)
protected void createClientServerScenarioSingleHop(ArrayList commonAttributes, int localMaxMemoryServer1, int localMaxMemoryServer2, int localMaxMemoryServer3)
protected void createClientServerScenarioNoSingleHop(ArrayList commonAttributes, int localMaxMemoryServer1, int localMaxMemoryServer2, int localMaxMemoryServer3)
protected void createClientServerScenarioSelectorNoSingleHop(ArrayList commonAttributes, int localMaxMemoryServer1, int localMaxMemoryServer2, int localMaxMemoryServer3)
protected void createClientServerScenarionWithoutRegion()
protected void createClientServerScenarionWithDistributedtRegion()
protected void runOnAllServers(SerializableRunnable runnable)
protected void registerFunctionAtServer(com.gemstone.gemfire.cache.execute.Function function)
public static void registerFunction(com.gemstone.gemfire.cache.execute.Function function)
public static void createCacheInVm(Properties props)
public static void startServerHA()
public static void stopServerHA()
public void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class CacheTestCaseExceptionpublic static void closeCache()
public static void closeCacheHA()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.