public class BridgeTestCase extends CacheTestCase
| Modifier and Type | Class and Description |
|---|---|
static class |
BridgeTestCase.BridgeServerCacheLoader
Create a bridgeserver that has a value for every key queried and a unique
key/value in the specified Region that uniquely identifies each instance.
|
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
static boolean |
AUTO_LOAD_BALANCE |
static String |
BridgeServerKey |
static String |
NON_EXISTENT_KEY |
cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
BridgeTestCase(String name) |
| Modifier and Type | Method and Description |
|---|---|
static void |
caseSetUp() |
static void |
caseTearDown() |
static com.gemstone.gemfire.cache.client.Pool |
configureConnectionPool(com.gemstone.gemfire.cache.AttributesFactory factory,
String host,
int[] ports,
boolean establish,
int redundancy,
int connectionsPerServer,
String serverGroup) |
static com.gemstone.gemfire.cache.client.Pool |
configureConnectionPool(com.gemstone.gemfire.cache.AttributesFactory factory,
String host,
int[] ports,
boolean establish,
int redundancy,
int connectionsPerServer,
String serverGroup,
int pingInterval,
int idleTimeout,
boolean threadLocalCnxs,
int lifetimeTimeout) |
static com.gemstone.gemfire.cache.client.Pool |
configureConnectionPool(com.gemstone.gemfire.cache.AttributesFactory factory,
String host,
int[] ports,
boolean establish,
int redundancy,
int connectionsPerServer,
String serverGroup,
int pingInterval,
int idleTimeout,
boolean threadLocalCnxs,
int lifetimeTimeout,
int statisticInterval) |
static com.gemstone.gemfire.cache.client.Pool |
configureConnectionPool(com.gemstone.gemfire.cache.AttributesFactory factory,
String host,
int port1,
int port2,
boolean establish,
int redundancy,
int connectionsPerServer,
String serverGroup) |
static com.gemstone.gemfire.cache.client.Pool |
configureConnectionPool(com.gemstone.gemfire.cache.AttributesFactory factory,
String host,
int port1,
int port2,
boolean establish,
int redundancy,
int connectionsPerServer,
String serverGroup,
int pingInterval) |
static com.gemstone.gemfire.cache.client.Pool |
configureConnectionPool(com.gemstone.gemfire.cache.AttributesFactory factory,
String host,
int port1,
int port2,
boolean establish,
int redundancy,
int connectionsPerServer,
String serverGroup,
int pingInterval,
int idleTimeout,
boolean threadLocalCnxs) |
static com.gemstone.gemfire.cache.client.Pool |
configureConnectionPool(com.gemstone.gemfire.cache.AttributesFactory factory,
String host,
int port1,
int port2,
boolean establish,
int redundancy,
int connectionsPerServer,
String serverGroup,
int pingInterval,
int idleTimeout,
boolean threadLocalCnxs,
int lifetimeTimeout) |
static com.gemstone.gemfire.cache.client.Pool |
configureConnectionPoolWithName(com.gemstone.gemfire.cache.AttributesFactory factory,
String host,
int[] ports,
boolean establish,
int redundancy,
int connectionsPerServer,
String serverGroup,
String poolName) |
static com.gemstone.gemfire.cache.client.Pool |
configureConnectionPoolWithName(com.gemstone.gemfire.cache.AttributesFactory factory,
String host,
int[] ports,
boolean establish,
int redundancy,
int connectionsPerServer,
String serverGroup,
String poolName,
int pingInterval,
int idleTimeout,
boolean threadLocalCnxs,
int lifetimeTimeout,
int statisticInterval) |
static com.gemstone.gemfire.cache.client.Pool |
configureConnectionPoolWithNameAndFactory(com.gemstone.gemfire.cache.AttributesFactory factory,
String host,
int[] ports,
boolean establish,
int redundancy,
int connectionsPerServer,
String serverGroup,
String poolName,
com.gemstone.gemfire.cache.client.PoolFactory pf) |
static com.gemstone.gemfire.cache.client.Pool |
configureConnectionPoolWithNameAndFactory(com.gemstone.gemfire.cache.AttributesFactory factory,
String host,
int[] ports,
boolean establish,
int redundancy,
int connectionsPerServer,
String serverGroup,
String poolName,
com.gemstone.gemfire.cache.client.PoolFactory pf,
int pingInterval,
int idleTimeout,
boolean threadLocalCnxs,
int lifetimeTimeout,
int statisticInterval) |
static String |
createBridgeClientConnection(String host,
int[] ports) |
void |
createBridgeServer(VM vm,
String rName,
int port) |
static int[] |
createUniquePorts(int numToCreate) |
protected static com.gemstone.gemfire.distributed.DistributedMember |
getDistributedMember() |
protected int |
getMaxThreads()
Defaults to 0 which means no selector in server.
|
protected static String |
getMemberId() |
protected com.gemstone.gemfire.cache.RegionAttributes |
getRegionAttributes()
Returns region attributes for a
LOCAL region |
protected static Properties |
getSystemProperties() |
int |
startBridgeServer(int port)
Starts a bridge server on the given port
|
void |
stopBridgeServers(com.gemstone.gemfire.cache.Cache cache)
Stops the bridge server that serves up the given cache.
|
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, sendUnorderedMessageToAll, tearDown2addExpectedException, 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, setUp, 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 NON_EXISTENT_KEY
public static boolean AUTO_LOAD_BALANCE
public static final String BridgeServerKey
public BridgeTestCase(String name)
public static void caseSetUp()
public static void caseTearDown()
public int startBridgeServer(int port)
throws IOException
IOExceptionprotected int getMaxThreads()
public void stopBridgeServers(com.gemstone.gemfire.cache.Cache cache)
protected com.gemstone.gemfire.cache.RegionAttributes getRegionAttributes()
LOCAL regionpublic static String createBridgeClientConnection(String host, int[] ports)
public static com.gemstone.gemfire.cache.client.Pool configureConnectionPool(com.gemstone.gemfire.cache.AttributesFactory factory,
String host,
int port1,
int port2,
boolean establish,
int redundancy,
int connectionsPerServer,
String serverGroup,
int pingInterval,
int idleTimeout,
boolean threadLocalCnxs,
int lifetimeTimeout)
public static com.gemstone.gemfire.cache.client.Pool configureConnectionPool(com.gemstone.gemfire.cache.AttributesFactory factory,
String host,
int port1,
int port2,
boolean establish,
int redundancy,
int connectionsPerServer,
String serverGroup,
int pingInterval,
int idleTimeout,
boolean threadLocalCnxs)
public static com.gemstone.gemfire.cache.client.Pool configureConnectionPool(com.gemstone.gemfire.cache.AttributesFactory factory,
String host,
int port1,
int port2,
boolean establish,
int redundancy,
int connectionsPerServer,
String serverGroup,
int pingInterval)
public static com.gemstone.gemfire.cache.client.Pool configureConnectionPool(com.gemstone.gemfire.cache.AttributesFactory factory,
String host,
int port1,
int port2,
boolean establish,
int redundancy,
int connectionsPerServer,
String serverGroup)
public static com.gemstone.gemfire.cache.client.Pool configureConnectionPoolWithName(com.gemstone.gemfire.cache.AttributesFactory factory,
String host,
int[] ports,
boolean establish,
int redundancy,
int connectionsPerServer,
String serverGroup,
String poolName)
public static com.gemstone.gemfire.cache.client.Pool configureConnectionPoolWithName(com.gemstone.gemfire.cache.AttributesFactory factory,
String host,
int[] ports,
boolean establish,
int redundancy,
int connectionsPerServer,
String serverGroup,
String poolName,
int pingInterval,
int idleTimeout,
boolean threadLocalCnxs,
int lifetimeTimeout,
int statisticInterval)
public static com.gemstone.gemfire.cache.client.Pool configureConnectionPoolWithNameAndFactory(com.gemstone.gemfire.cache.AttributesFactory factory,
String host,
int[] ports,
boolean establish,
int redundancy,
int connectionsPerServer,
String serverGroup,
String poolName,
com.gemstone.gemfire.cache.client.PoolFactory pf)
public static com.gemstone.gemfire.cache.client.Pool configureConnectionPoolWithNameAndFactory(com.gemstone.gemfire.cache.AttributesFactory factory,
String host,
int[] ports,
boolean establish,
int redundancy,
int connectionsPerServer,
String serverGroup,
String poolName,
com.gemstone.gemfire.cache.client.PoolFactory pf,
int pingInterval,
int idleTimeout,
boolean threadLocalCnxs,
int lifetimeTimeout,
int statisticInterval)
public static com.gemstone.gemfire.cache.client.Pool configureConnectionPool(com.gemstone.gemfire.cache.AttributesFactory factory,
String host,
int[] ports,
boolean establish,
int redundancy,
int connectionsPerServer,
String serverGroup)
public static com.gemstone.gemfire.cache.client.Pool configureConnectionPool(com.gemstone.gemfire.cache.AttributesFactory factory,
String host,
int[] ports,
boolean establish,
int redundancy,
int connectionsPerServer,
String serverGroup,
int pingInterval,
int idleTimeout,
boolean threadLocalCnxs,
int lifetimeTimeout)
public static com.gemstone.gemfire.cache.client.Pool configureConnectionPool(com.gemstone.gemfire.cache.AttributesFactory factory,
String host,
int[] ports,
boolean establish,
int redundancy,
int connectionsPerServer,
String serverGroup,
int pingInterval,
int idleTimeout,
boolean threadLocalCnxs,
int lifetimeTimeout,
int statisticInterval)
protected static String getMemberId()
protected static com.gemstone.gemfire.distributed.DistributedMember getDistributedMember()
protected static Properties getSystemProperties()
public static int[] createUniquePorts(int numToCreate)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.