public class ClientInterestNotifyDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2logPerTest, reconnect, system, testName| Constructor and Description |
|---|
ClientInterestNotifyDUnitTest(String name)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
assertAllQueuesEmpty()
Assert all queues are empty to aid later assertion for listener event counts.
|
static void |
closeCache()
close the client cache
|
static void |
closeCacheServer()
close the server cache
|
static void |
createClientCache(String host,
Integer port,
String name)
create client with 3 regions each with a unique listener
|
static void |
createClientCacheFeeder(String host,
Integer port) |
static Integer |
createServerCache()
create a server cache and start the server
|
static void |
doEntryOps()
Do 2 puts, 1 invalidate and 1 destroy for a key "key-1"
|
static void |
doFeed()
Do initial puts
|
static void |
doValidation(String region,
int creates,
int updates,
int invalidates,
int destroys)
Do validation based on feeder events received by the client
|
static void |
getEntries()
Get entries on all clients' region 3 since it does not register interest.
|
static void |
registerInterest()
register interest with the server on ALL_KEYS
|
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
close the caches in tearDown
|
void |
testInterestNotify() |
static void |
unregisterInterest()
register interest with the server on ALL_KEYS
|
static void |
waitForQueuesToDrain() |
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, 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 ClientInterestNotifyDUnitTest(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic void testInterestNotify()
public static void doValidation(String region, int creates, int updates, int invalidates, int destroys)
public static void createClientCache(String host, Integer port, String name) throws Exception
Exceptionpublic static void createClientCacheFeeder(String host, Integer port) throws Exception
Exceptionpublic static void assertAllQueuesEmpty()
public static void waitForQueuesToDrain()
public static Integer createServerCache() throws Exception
Exceptionpublic static void closeCache()
public static void closeCacheServer()
public static void registerInterest()
public static void unregisterInterest()
public static void doEntryOps()
public static void doFeed()
public static void getEntries()
public void tearDown2()
throws Exception
tearDown2 in class DistributedTestCaseExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.