public class UniversalMembershipListenerAdapterDUnitTest extends BridgeTestCase
BridgeTestCase.BridgeServerCacheLoaderDistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
CLIENT |
protected static int |
CRASHED |
protected static int |
JOINED |
protected static int |
LEFT |
protected static boolean |
SERVER |
protected static int |
testServerEventsInLonerClient_port |
protected static int |
testServerEventsInSystemClient_port |
AUTO_LOAD_BALANCE, BridgeServerKey, NON_EXISTENT_KEYcachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
UniversalMembershipListenerAdapterDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
tearDown2()
Tears down the test.
|
void |
testAdaptedBridgeEvents()
Tests wrapping of BridgeMembershipEvent fired as SystemMembershipEvent.
|
void |
testLonerClientEventsInServer()
Tests notification of events for loner bridge clients in server process.
|
void |
testNoDuplicates()
Tests use of history to prevent duplicate events.
|
void |
testServerEventsInLonerClient()
Tests notification of events for bridge server in system bridge client
process.
|
void |
testServerEventsInSystemClient()
Tests notification of events for bridge server in system bridge client
process.
|
void |
testSystemClientEventsInServer()
Tests notification of events for loner bridge clients in server process.
|
protected void |
waitForClientToFullyConnect(com.gemstone.gemfire.cache.client.internal.PoolImpl pool)
Waits for client to create
Endpoint.getNumConnections() to com.gemstone.gemfire.internal.cache.tier.Endpoint. |
caseSetUp, caseTearDown, configureConnectionPool, configureConnectionPool, configureConnectionPool, configureConnectionPool, configureConnectionPool, configureConnectionPool, configureConnectionPool, configureConnectionPoolWithName, configureConnectionPoolWithName, configureConnectionPoolWithNameAndFactory, configureConnectionPoolWithNameAndFactory, createBridgeClientConnection, createBridgeServer, createUniquePorts, getDistributedMember, getMaxThreads, getMemberId, getRegionAttributes, getSystemProperties, startBridgeServer, stopBridgeServersaddExceptionTag1, 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, 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, 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, toStringprotected static final boolean CLIENT
protected static final boolean SERVER
protected static final int JOINED
protected static final int LEFT
protected static final int CRASHED
protected static int testServerEventsInSystemClient_port
protected static int testServerEventsInLonerClient_port
public UniversalMembershipListenerAdapterDUnitTest(String name)
public void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class CacheTestCaseExceptionpublic void testAdaptedBridgeEvents()
throws Exception
Exceptionpublic void testNoDuplicates()
throws Exception
Exceptionpublic void testLonerClientEventsInServer()
throws Exception
Exceptionpublic void testSystemClientEventsInServer()
throws Exception
Exceptionprotected void waitForClientToFullyConnect(com.gemstone.gemfire.cache.client.internal.PoolImpl pool)
Endpoint.getNumConnections() to com.gemstone.gemfire.internal.cache.tier.Endpoint. Note: This probably
won't work if the BridgeLoader has more than one Endpoint.public void testServerEventsInSystemClient()
throws Exception
ExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.