public class BridgeMembershipDUnitTest 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 java.net.Socket |
meanSocket |
protected static boolean |
SERVER |
protected static int |
testBridgeMembershipEventsInClient_port |
protected static int |
testGetConnectedServers_port |
protected static int |
testGetNotifiedClients_clientCount |
protected static int |
testGetNotifiedClients_port |
AUTO_LOAD_BALANCE, BridgeServerKey, NON_EXISTENT_KEYcachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
BridgeMembershipDUnitTest(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
doTestBasicEvents() |
protected int |
getAcceptsInProgress() |
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
Tears down the test.
|
void |
testBasicEvents()
Tests event notification methods on BridgeMembership.
|
void |
testBridgeMembershipEventsInClient()
Tests notification of events in client process.
|
void |
testBridgeMembershipEventsInServer()
Tests notification of events in server process.
|
void |
testConnectionTimeout()
test that a server times out waiting for a handshake that
never arrives.
|
void |
testGetConnectedClients()
Starts up server in controller vm and 4 clients, then calls and tests
BridgeMembership.getConnectedClients().
|
void |
testGetConnectedServers()
Starts up 4 server and the controller vm as a client, then calls and tests
BridgeMembership.getConnectedServers().
|
void |
testGetNotifiedClients()
Tests getConnectedClients(boolean onlyClientsNotifiedByThisServer) where
onlyClientsNotifiedByThisServer is true.
|
void |
testLifecycle()
Tests registration and event notification in conjunction with
disconnecting and reconnecting to DistributedSystem.
|
void |
testMultipleListeners() |
void |
testSynchronousEvents() |
void |
testUnregisterBridgeMembershipListener()
Tests unregisterBridgeMembershipListener to ensure that no further events
are delivered to unregistered listeners.
|
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, 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 java.net.Socket meanSocket
protected static int testBridgeMembershipEventsInClient_port
protected static int testGetConnectedServers_port
protected static int testGetNotifiedClients_port
protected static int testGetNotifiedClients_clientCount
public BridgeMembershipDUnitTest(java.lang.String name)
public void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class DistributedTestCasejava.lang.Exceptionpublic void tearDown2()
throws java.lang.Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class CacheTestCasejava.lang.Exceptionprotected int getAcceptsInProgress()
public void testConnectionTimeout()
throws java.lang.Exception
java.lang.Exceptionpublic void testSynchronousEvents()
throws java.lang.Exception
java.lang.Exceptionpublic void testBasicEvents()
throws java.lang.Exception
java.lang.Exceptionpublic void doTestBasicEvents()
throws java.lang.Exception
java.lang.Exceptionpublic void testUnregisterBridgeMembershipListener()
throws java.lang.Exception
java.lang.Exceptionpublic void testMultipleListeners()
throws java.lang.Exception
java.lang.Exceptionpublic void testBridgeMembershipEventsInClient()
throws java.lang.Exception
java.lang.Exceptionpublic void testBridgeMembershipEventsInServer()
throws java.lang.Exception
java.lang.Exceptionpublic void testLifecycle()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetConnectedClients()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetConnectedServers()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetNotifiedClients()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.