public class CacheServerTestUtil extends DistributedTestCase
| Modifier and Type | Class and Description |
|---|---|
static class |
CacheServerTestUtil.ControlCqListener |
static class |
CacheServerTestUtil.ControlListener |
static class |
CacheServerTestUtil.EventWrapper |
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static int |
TYPE_CREATE |
protected static int |
TYPE_DESTROY |
protected static int |
TYPE_INVALIDATE |
protected static int |
TYPE_UPDATE |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
CacheServerTestUtil(String name) |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearCacheReference() |
static void |
closeCache() |
static void |
closeCache(boolean keepalive) |
static void |
createCacheClient(com.gemstone.gemfire.cache.client.Pool poolAttr,
String regionName) |
static void |
createCacheClient(com.gemstone.gemfire.cache.client.Pool poolAttr,
String regionName,
Properties dsProperties) |
static void |
createCacheClient(com.gemstone.gemfire.cache.client.Pool poolAttr,
String regionName,
Properties dsProperties,
Boolean addControlListener) |
static void |
createCacheClient(com.gemstone.gemfire.cache.client.Pool poolAttr,
String regionName1,
String regionName2) |
static void |
createCacheClientFromXml(URL url,
String poolName,
String durableClientId,
int timeout,
Boolean addControlListener) |
static void |
createCacheClientFromXmlN(URL url,
String poolName,
String durableClientId,
int timeout,
Boolean addControlListener) |
static void |
createCacheClients(com.gemstone.gemfire.cache.client.Pool poolAttr,
String regionName1,
String regionName2,
Properties dsProperties)
Create client regions each with their own BridgeWriter instance.
|
static Integer |
createCacheServer(String regionName,
Boolean notifyBySubscription) |
static Integer |
createCacheServer(String regionName,
Boolean notifyBySubscription,
Integer mcastPort) |
static void |
createCacheServer(String regionName,
Boolean notifyBySubscription,
Integer mcastPort,
Integer serverPort) |
static Integer |
createCacheServer(String regionName1,
String regionName2,
Boolean notifyBySubscription) |
static Integer |
createCacheServerFromXml(URL url) |
static Integer |
createCacheServerFromXmlN(URL url) |
static Integer[] |
createCacheServerReturnPorts(String regionName,
Boolean notifyBySubscription) |
static void |
createClientCache(com.gemstone.gemfire.cache.client.Pool poolAttr,
String regionName) |
static void |
createClientCache(com.gemstone.gemfire.cache.client.Pool poolAttr,
String regionName,
Properties dsProperties) |
static void |
createPool(com.gemstone.gemfire.internal.cache.PoolFactoryImpl.PoolAttributes poolAttr) |
static void |
disableShufflingOfEndpoints()
Disables the shuffling of endpoints for a client
|
static void |
disconnectClient() |
static void |
enableShufflingOfEndpoints()
Enables the shuffling of endpoints for a client
|
static com.gemstone.gemfire.cache.Cache |
getCache() |
static com.gemstone.gemfire.cache.client.internal.PoolImpl |
getPool() |
static void |
reconnectClient() |
static void |
resetDisableShufflingOfEndpointsFlag()
Resets the 'disableShufflingOfEndpoints' flag
|
static void |
restartCacheServers() |
static void |
setClientCrash(boolean crashOnClose) |
static void |
stopCacheServers() |
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, setUp, staticPause, tearDown, tearDown2, 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 final int TYPE_CREATE
protected static final int TYPE_UPDATE
protected static final int TYPE_INVALIDATE
protected static final int TYPE_DESTROY
public CacheServerTestUtil(String name)
public static void createCacheClient(com.gemstone.gemfire.cache.client.Pool poolAttr,
String regionName)
throws Exception
Exceptionpublic static void createCacheClient(com.gemstone.gemfire.cache.client.Pool poolAttr,
String regionName,
Properties dsProperties)
throws Exception
Exceptionpublic static void createClientCache(com.gemstone.gemfire.cache.client.Pool poolAttr,
String regionName)
throws Exception
Exceptionpublic static void createClientCache(com.gemstone.gemfire.cache.client.Pool poolAttr,
String regionName,
Properties dsProperties)
throws Exception
Exceptionpublic static void createPool(com.gemstone.gemfire.internal.cache.PoolFactoryImpl.PoolAttributes poolAttr)
throws Exception
Exceptionpublic static void createCacheClient(com.gemstone.gemfire.cache.client.Pool poolAttr,
String regionName,
Properties dsProperties,
Boolean addControlListener)
throws Exception
Exceptionpublic static void createCacheClient(com.gemstone.gemfire.cache.client.Pool poolAttr,
String regionName1,
String regionName2)
throws Exception
Exceptionpublic static void createCacheClientFromXmlN(URL url, String poolName, String durableClientId, int timeout, Boolean addControlListener)
public static void createCacheClientFromXml(URL url, String poolName, String durableClientId, int timeout, Boolean addControlListener)
public static void createCacheClients(com.gemstone.gemfire.cache.client.Pool poolAttr,
String regionName1,
String regionName2,
Properties dsProperties)
throws Exception
props - regionName1 - regionName2 - Exceptionpublic static Integer createCacheServer(String regionName, Boolean notifyBySubscription) throws Exception
Exceptionpublic static Integer[] createCacheServerReturnPorts(String regionName, Boolean notifyBySubscription) throws Exception
Exceptionpublic static Integer createCacheServer(String regionName, Boolean notifyBySubscription, Integer mcastPort) throws Exception
Exceptionpublic static void createCacheServer(String regionName, Boolean notifyBySubscription, Integer mcastPort, Integer serverPort) throws Exception
Exceptionpublic static Integer createCacheServer(String regionName1, String regionName2, Boolean notifyBySubscription) throws Exception
Exceptionpublic static void closeCache()
public static void closeCache(boolean keepalive)
public static void clearCacheReference()
public static void setClientCrash(boolean crashOnClose)
public static void disconnectClient()
public static void reconnectClient()
public static void stopCacheServers()
public static void restartCacheServers()
public static com.gemstone.gemfire.cache.Cache getCache()
public static com.gemstone.gemfire.cache.client.internal.PoolImpl getPool()
public static void disableShufflingOfEndpoints()
public static void enableShufflingOfEndpoints()
public static void resetDisableShufflingOfEndpointsFlag()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.