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(java.lang.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,
java.lang.String regionName) |
static void |
createCacheClient(com.gemstone.gemfire.cache.client.Pool poolAttr,
java.lang.String regionName,
java.util.Properties dsProperties) |
static void |
createCacheClient(com.gemstone.gemfire.cache.client.Pool poolAttr,
java.lang.String regionName,
java.util.Properties dsProperties,
java.lang.Boolean addControlListener) |
static void |
createCacheClient(com.gemstone.gemfire.cache.client.Pool poolAttr,
java.lang.String regionName1,
java.lang.String regionName2) |
static void |
createCacheClientFromXml(java.net.URL url,
java.lang.String poolName,
java.lang.String durableClientId,
int timeout,
java.lang.Boolean addControlListener) |
static void |
createCacheClientFromXmlN(java.net.URL url,
java.lang.String poolName,
java.lang.String durableClientId,
int timeout,
java.lang.Boolean addControlListener) |
static void |
createCacheClients(com.gemstone.gemfire.cache.client.Pool poolAttr,
java.lang.String regionName1,
java.lang.String regionName2,
java.util.Properties dsProperties)
Create client regions each with their own BridgeWriter instance.
|
static java.lang.Integer |
createCacheServer(java.lang.String regionName,
java.lang.Boolean notifyBySubscription) |
static java.lang.Integer |
createCacheServer(java.lang.String regionName,
java.lang.Boolean notifyBySubscription,
java.lang.Integer mcastPort) |
static void |
createCacheServer(java.lang.String regionName,
java.lang.Boolean notifyBySubscription,
java.lang.Integer mcastPort,
java.lang.Integer serverPort) |
static java.lang.Integer |
createCacheServer(java.lang.String regionName1,
java.lang.String regionName2,
java.lang.Boolean notifyBySubscription) |
static java.lang.Integer |
createCacheServerFromXml(java.net.URL url) |
static java.lang.Integer |
createCacheServerFromXmlN(java.net.URL url) |
static java.lang.Integer[] |
createCacheServerReturnPorts(java.lang.String regionName,
java.lang.Boolean notifyBySubscription) |
static void |
createClientCache(com.gemstone.gemfire.cache.client.Pool poolAttr,
java.lang.String regionName) |
static void |
createClientCache(com.gemstone.gemfire.cache.client.Pool poolAttr,
java.lang.String regionName,
java.util.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 static void createCacheClient(com.gemstone.gemfire.cache.client.Pool poolAttr,
java.lang.String regionName)
throws java.lang.Exception
java.lang.Exceptionpublic static void createCacheClient(com.gemstone.gemfire.cache.client.Pool poolAttr,
java.lang.String regionName,
java.util.Properties dsProperties)
throws java.lang.Exception
java.lang.Exceptionpublic static void createClientCache(com.gemstone.gemfire.cache.client.Pool poolAttr,
java.lang.String regionName)
throws java.lang.Exception
java.lang.Exceptionpublic static void createClientCache(com.gemstone.gemfire.cache.client.Pool poolAttr,
java.lang.String regionName,
java.util.Properties dsProperties)
throws java.lang.Exception
java.lang.Exceptionpublic static void createPool(com.gemstone.gemfire.internal.cache.PoolFactoryImpl.PoolAttributes poolAttr)
throws java.lang.Exception
java.lang.Exceptionpublic static void createCacheClient(com.gemstone.gemfire.cache.client.Pool poolAttr,
java.lang.String regionName,
java.util.Properties dsProperties,
java.lang.Boolean addControlListener)
throws java.lang.Exception
java.lang.Exceptionpublic static void createCacheClient(com.gemstone.gemfire.cache.client.Pool poolAttr,
java.lang.String regionName1,
java.lang.String regionName2)
throws java.lang.Exception
java.lang.Exceptionpublic static void createCacheClientFromXmlN(java.net.URL url,
java.lang.String poolName,
java.lang.String durableClientId,
int timeout,
java.lang.Boolean addControlListener)
public static void createCacheClientFromXml(java.net.URL url,
java.lang.String poolName,
java.lang.String durableClientId,
int timeout,
java.lang.Boolean addControlListener)
public static java.lang.Integer createCacheServerFromXmlN(java.net.URL url)
public static java.lang.Integer createCacheServerFromXml(java.net.URL url)
public static void createCacheClients(com.gemstone.gemfire.cache.client.Pool poolAttr,
java.lang.String regionName1,
java.lang.String regionName2,
java.util.Properties dsProperties)
throws java.lang.Exception
props - regionName1 - regionName2 - java.lang.Exceptionpublic static java.lang.Integer createCacheServer(java.lang.String regionName,
java.lang.Boolean notifyBySubscription)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Integer[] createCacheServerReturnPorts(java.lang.String regionName,
java.lang.Boolean notifyBySubscription)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Integer createCacheServer(java.lang.String regionName,
java.lang.Boolean notifyBySubscription,
java.lang.Integer mcastPort)
throws java.lang.Exception
java.lang.Exceptionpublic static void createCacheServer(java.lang.String regionName,
java.lang.Boolean notifyBySubscription,
java.lang.Integer mcastPort,
java.lang.Integer serverPort)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Integer createCacheServer(java.lang.String regionName1,
java.lang.String regionName2,
java.lang.Boolean notifyBySubscription)
throws java.lang.Exception
java.lang.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.