public class DurableClientSimpleDUnitTests extends DurableClientDUnitTest
DurableClientDUnitTest.CqExceptionDueToActivatingClientTestHook, DurableClientDUnitTest.RejectClientReconnectTestHookDistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2durableClientVM, isPrimaryRecovered, publisherClientVM, regionName, server1VM, server2VMlogPerTest, reconnect, system, testName| Constructor and Description |
|---|
DurableClientSimpleDUnitTests(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
DISABLED_testReadyForEventsNotCalledImplicitlyWithCacheXML() |
void |
testCloseAllCqsAndDrainEvents()
Test functionality to close the cq and drain all events from the ha queue from the server
This draining should not affect events that still have register interest
|
void |
testCloseAllCqsAndDrainEventsNoInterestRegistered()
Test functionality to close the cq and drain all events from the ha queue from the server
This draining should remove all events due to no interest registered
Continues to publish afterwards to verify that stats are correct
|
void |
testCloseCacheProxy()
Test functionality to close the durable client
and drain all events from the ha queue from the server
|
void |
testCloseCqAndDrainEvents()
Test functionality to close the cq and drain all events from the ha queue from the server
|
void |
testCloseCqAndDrainEvents2Client()
Test functionality to close the cq and drain all events from the ha queue from the server
Two durable clients, one will have a cq be closed, the other should be unaffected
|
void |
testCqCloseExceptionDueToActivatingClient()
Tests scenario where close cq will throw an exception due to a client
being reactivated
|
void |
testCqCloseExceptionDueToActiveConnection()
Tests situation where a client is trying to reconnect while a cq is being drained
|
void |
testDurableClientMultipleServersOneLive()
Test that starting a durable client on multiple servers (one live and one
not live) is processed correctly.
|
void |
testDurableClientReconnectTwoServers()
Tests whether a durable client reconnects properly to two servers.
|
void |
testHAQueuedCqStat()
Tests the ha queued cq stat
|
void |
testHAQueuedCqStatForFailover()
server 1 and 2 both get events
server 1 goes down
dc reconnects
server 2 behaves accordingly
|
void |
testHAQueuedCqStatForGII()
Server 2 comes up, client connects and registers cqs, server 2 then disconnects
events are put into region
client goes away
server 2 comes back up and should get a gii
check stats
server 1 goes away
client comes back and receives all events
stats should still be correct
|
void |
testHAQueuedCqStatForGII2()
Start both servers, but shut down secondary server before durable client has
connected.
|
void |
testHAQueuedCqStatForGIINoFailover()
Server 2 comes up and goes down after client connects and registers cqs
events are put into region
client goes away
server 2 comes back up and should get a gii
check stats
client comes back and receives all events
stats should still be correct
|
void |
testHAQueuedCqStatOnSecondary() |
void |
testHAQueuedCqStatWithTimeOut()
Tests the ha queued cq stat
|
void |
testHAQueueSizeStat()
Tests the ha queued events stat
Connects a durable client, registers durable cqs and then shuts down the durable client
Publisher then does puts onto the server
Events are queued up and the stats are checked
Durable client is then reconnected, events are dispatched and stats are rechecked
|
void |
testHAQueueSizeStatExpired()
Tests the ha queued events stat
Connects a durable client, registers durable cqs and then shuts down the durable client
Publisher then does puts onto the server
Events are queued up and the stats are checked
Test sleeps until durable client times out
Stats should now be 0
Durable client is then reconnected, no events should exist and stats are rechecked
|
void |
testHAQueueSizeStatForGII()
Tests the ha queued events stat
Starts up two servers, shuts one down
Connects a durable client, registers durable cqs and then shuts down the durable client
Publisher then does puts onto the server
Events are queued up
Durable client is then reconnected but does not send ready for events
Secondary server is brought back up
Stats are checked
Durable client then reregisters cqs and sends ready for events
|
void |
testMultipleBridgeClientsInSingleDurableVM()
Test that a durable client VM with multiple BridgeClients correctly
registers on the server.
|
void |
testReadyForEventsNotCalledImplicitly() |
void |
testReadyForEventsNotCalledImplicitlyForRegisterInterestWithCacheXML() |
void |
testRejectClientWhenDrainingCq()
Tests situation where a client is trying to reconnect while a cq is being drained.
|
void |
testSimpleDurableClientMultipleServers()
Test that starting a durable client on multiple servers is processed
correctly.
|
void |
testSimpleDurableClientUpdate()
Test that a durable client correctly receives updates.
|
void |
testSimpleTwoDurableClients()
Test that the server correctly processes starting two durable clients.
|
void |
testTwoDurableClientsStartStopUpdate()
Test that updates to two durable clients are processed correctly.
|
void |
XtestMultipleVMsWithSameDurableId()
Test that a second VM with the same durable id cannot connect to the server
while the first VM is connected.
|
checkCqListenerEvents, checkCqStatOnServer, checkForAck, checkHAQueueSize, checkInterestEvents, checkNumberOfClientProxies, checkNumDurableCqs, checkPrimaryRecovery, checkPrimaryUpdater, checkProxyIsAlive, closeCache, closeDurableClient, createCq, createCq, disconnectDurableClient, disconnectDurableClient, durableFailover, durableFailoverAfterReconnect, flushEntries, getBridgeServer, getClientDistributedSystemProperties, getClientDistributedSystemProperties, getClientDistributedSystemPropertiesNonDurable, getClientPool, getClientPool, getClientPool, getClientProxy, getHARegionQueueName, getNumberOfClientProxies, publishEntries, registerInterest, restartDurableClient, sendClientReady, setBridgeObeserverForAfterPrimaryRecovered, setPrimaryRecoveryCheck, setTestFlagToVerifyActForMarker, setUp, startClient, startClient, startDurableClient, startDurableClient, startDurableClient, tearDown2, test39630, testDurableClientConnectServerStopStart, testDurableClientPrimaryUpdate, testDurableHAFailover, testDurableNonHAFailover, testReadyForEventsNotCalledImplicitlyWithCacheXML, testSimpleDurableClient, testStartStopStartDurableClient, testStartStopStartDurableClientUpdate, testStartStopTimeoutDurableClient, verifyDurableClientOnServer, verifyListenerUpdates, verifyListenerUpdates, verifyListenerUpdatesDisconnected, verifyListenerUpdatesEntries, verifyReceivedMarkerAck, verifySimpleDurableClient, verifySimpleDurableClientMultipleServersaddExpectedException, 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, 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 DurableClientSimpleDUnitTests(String name)
public void testSimpleDurableClientUpdate()
public void testMultipleBridgeClientsInSingleDurableVM()
testMultipleBridgeClientsInSingleDurableVM in class DurableClientDUnitTestpublic void XtestMultipleVMsWithSameDurableId()
XtestMultipleVMsWithSameDurableId in class DurableClientDUnitTestpublic void testSimpleTwoDurableClients()
testSimpleTwoDurableClients in class DurableClientDUnitTestpublic void testDurableClientMultipleServersOneLive()
public void testTwoDurableClientsStartStopUpdate()
public void testDurableClientReconnectTwoServers()
public void testReadyForEventsNotCalledImplicitly()
testReadyForEventsNotCalledImplicitly in class DurableClientDUnitTestpublic void DISABLED_testReadyForEventsNotCalledImplicitlyWithCacheXML()
public void testReadyForEventsNotCalledImplicitlyForRegisterInterestWithCacheXML()
public void testHAQueueSizeStat()
throws Exception
Exceptionpublic void testHAQueueSizeStatExpired()
throws Exception
Exceptionpublic void testHAQueueSizeStatForGII()
throws Exception
Exceptionpublic void testHAQueuedCqStat()
throws Exception
Exceptionpublic void testHAQueuedCqStatOnSecondary()
throws Exception
Exceptionpublic void testHAQueuedCqStatForGII()
throws Exception
Exceptionpublic void testHAQueuedCqStatForGII2()
throws Exception
Exceptionpublic void testHAQueuedCqStatForGIINoFailover()
throws Exception
Exceptionpublic void testHAQueuedCqStatForFailover()
throws Exception
Exceptionpublic void testHAQueuedCqStatWithTimeOut()
throws Exception
Exceptionpublic void testCloseCqAndDrainEvents()
throws Exception
Exceptionpublic void testCloseAllCqsAndDrainEvents()
throws Exception
Exceptionpublic void testCloseAllCqsAndDrainEventsNoInterestRegistered()
throws Exception
Exceptionpublic void testCloseCqAndDrainEvents2Client()
throws Exception
Exceptionpublic void testRejectClientWhenDrainingCq()
throws Exception
Exceptionpublic void testCqCloseExceptionDueToActivatingClient()
throws Exception
Exceptionpublic void testCqCloseExceptionDueToActiveConnection()
throws Exception
Exceptionpublic void testCloseCacheProxy()
throws Exception
Exceptionpublic void testSimpleDurableClientMultipleServers()
testSimpleDurableClientMultipleServers in class DurableClientDUnitTestCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.