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(java.lang.String name) |
PRClientServerTestBase(java.lang.String name,
boolean isSingleHop,
boolean isSelector) |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeCache() |
static void |
closeCacheHA() |
static void |
createCacheClient_SingleConnection(java.lang.String host,
java.lang.Integer port1) |
static void |
createCacheClient(java.lang.String host,
java.lang.Integer port1,
java.lang.Integer port2,
java.lang.Integer port3) |
static void |
createCacheClientWith2Regions(java.lang.String host,
java.lang.Integer port1,
java.lang.Integer port2,
java.lang.Integer port3) |
static void |
createCacheClientWithDistributedRegion(java.lang.String host,
java.lang.Integer port1,
java.lang.Integer port2,
java.lang.Integer port3) |
static void |
createCacheClientWithoutRegion(java.lang.String host,
java.lang.Integer port1,
java.lang.Integer port2,
java.lang.Integer port3) |
static void |
createCacheInVm(java.util.Properties props) |
static java.lang.Integer |
createCacheServer() |
static java.lang.Integer |
createCacheServer(java.util.ArrayList commonAttributes,
java.lang.Integer localMaxMemory) |
static java.lang.Integer |
createCacheServerWith2Regions(java.util.ArrayList commonAttributes,
java.lang.Integer localMaxMemory) |
static java.lang.Integer |
createCacheServerWithDR() |
protected void |
createClientServerScenarion_SingleConnection(java.util.ArrayList commonAttributes,
int localMaxMemoryServer1,
int localMaxMemoryServer2,
int localMaxMemoryServer3) |
protected void |
createClientServerScenarion(java.util.ArrayList commonAttributes,
int localMaxMemoryServer1,
int localMaxMemoryServer2,
int localMaxMemoryServer3) |
protected void |
createClientServerScenarioNoSingleHop(java.util.ArrayList commonAttributes,
int localMaxMemoryServer1,
int localMaxMemoryServer2,
int localMaxMemoryServer3) |
protected void |
createClientServerScenarionWith2Regions(java.util.ArrayList commonAttributes,
int localMaxMemoryServer1,
int localMaxMemoryServer2,
int localMaxMemoryServer3) |
protected void |
createClientServerScenarionWithDistributedtRegion() |
protected void |
createClientServerScenarionWithoutRegion() |
protected void |
createClientServerScenarioSelectorNoSingleHop(java.util.ArrayList commonAttributes,
int localMaxMemoryServer1,
int localMaxMemoryServer2,
int localMaxMemoryServer3) |
protected void |
createClientServerScenarioSingleHop(java.util.ArrayList commonAttributes,
int localMaxMemoryServer1,
int localMaxMemoryServer2,
int localMaxMemoryServer3) |
java.util.ArrayList |
createCommonServerAttributes(java.lang.String regionName,
com.gemstone.gemfire.cache.PartitionResolver pr,
int red,
int numBuckets,
java.lang.String colocatedWithRegion) |
static void |
createNoSingleHopCacheClient(java.lang.String host,
java.lang.Integer port1,
java.lang.Integer port2,
java.lang.Integer port3) |
static java.lang.Integer |
createSelectorCacheServer(java.util.ArrayList commonAttributes,
java.lang.Integer localMaxMemory) |
static void |
createSingleHopCacheClient(java.lang.String host,
java.lang.Integer port1,
java.lang.Integer port2,
java.lang.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(java.lang.String name,
boolean isSingleHop,
boolean isSelector)
public PRClientServerTestBase(java.lang.String name)
public void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class DistributedTestCasejava.lang.Exceptionpublic java.util.ArrayList createCommonServerAttributes(java.lang.String regionName,
com.gemstone.gemfire.cache.PartitionResolver pr,
int red,
int numBuckets,
java.lang.String colocatedWithRegion)
public static java.lang.Integer createCacheServer(java.util.ArrayList commonAttributes,
java.lang.Integer localMaxMemory)
public static java.lang.Integer createSelectorCacheServer(java.util.ArrayList commonAttributes,
java.lang.Integer localMaxMemory)
public static java.lang.Integer createCacheServerWith2Regions(java.util.ArrayList commonAttributes,
java.lang.Integer localMaxMemory)
public static java.lang.Integer createCacheServer()
public static java.lang.Integer createCacheServerWithDR()
public static void createCacheClient(java.lang.String host,
java.lang.Integer port1,
java.lang.Integer port2,
java.lang.Integer port3)
throws java.lang.Exception
java.lang.Exceptionpublic static void createCacheClient_SingleConnection(java.lang.String host,
java.lang.Integer port1)
throws java.lang.Exception
java.lang.Exceptionpublic static void createCacheClientWith2Regions(java.lang.String host,
java.lang.Integer port1,
java.lang.Integer port2,
java.lang.Integer port3)
throws java.lang.Exception
java.lang.Exceptionpublic static void createSingleHopCacheClient(java.lang.String host,
java.lang.Integer port1,
java.lang.Integer port2,
java.lang.Integer port3)
throws java.lang.Exception
java.lang.Exceptionpublic static void createNoSingleHopCacheClient(java.lang.String host,
java.lang.Integer port1,
java.lang.Integer port2,
java.lang.Integer port3)
throws java.lang.Exception
java.lang.Exceptionpublic static void createCacheClientWithoutRegion(java.lang.String host,
java.lang.Integer port1,
java.lang.Integer port2,
java.lang.Integer port3)
throws java.lang.Exception
java.lang.Exceptionpublic static void createCacheClientWithDistributedRegion(java.lang.String host,
java.lang.Integer port1,
java.lang.Integer port2,
java.lang.Integer port3)
throws java.lang.Exception
java.lang.Exceptionprotected void createClientServerScenarion(java.util.ArrayList commonAttributes,
int localMaxMemoryServer1,
int localMaxMemoryServer2,
int localMaxMemoryServer3)
protected void createClientServerScenarion_SingleConnection(java.util.ArrayList commonAttributes,
int localMaxMemoryServer1,
int localMaxMemoryServer2,
int localMaxMemoryServer3)
protected void createClientServerScenarionWith2Regions(java.util.ArrayList commonAttributes,
int localMaxMemoryServer1,
int localMaxMemoryServer2,
int localMaxMemoryServer3)
protected void createClientServerScenarioSingleHop(java.util.ArrayList commonAttributes,
int localMaxMemoryServer1,
int localMaxMemoryServer2,
int localMaxMemoryServer3)
protected void createClientServerScenarioNoSingleHop(java.util.ArrayList commonAttributes,
int localMaxMemoryServer1,
int localMaxMemoryServer2,
int localMaxMemoryServer3)
protected void createClientServerScenarioSelectorNoSingleHop(java.util.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(java.util.Properties props)
public static void startServerHA()
public static void stopServerHA()
public void tearDown2()
throws java.lang.Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class CacheTestCasejava.lang.Exceptionpublic static void closeCache()
public static void closeCacheHA()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.