public class ClientInterestNotifyDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2logPerTest, reconnect, system, testName| Constructor and Description |
|---|
ClientInterestNotifyDUnitTest(java.lang.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(java.lang.String host,
java.lang.Integer port,
java.lang.String name)
create client with 3 regions each with a unique listener
|
static void |
createClientCacheFeeder(java.lang.String host,
java.lang.Integer port) |
static java.lang.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(java.lang.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(java.lang.String name)
public void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class DistributedTestCasejava.lang.Exceptionpublic void testInterestNotify()
public static void doValidation(java.lang.String region,
int creates,
int updates,
int invalidates,
int destroys)
public static void createClientCache(java.lang.String host,
java.lang.Integer port,
java.lang.String name)
throws java.lang.Exception
java.lang.Exceptionpublic static void createClientCacheFeeder(java.lang.String host,
java.lang.Integer port)
throws java.lang.Exception
java.lang.Exceptionpublic static void assertAllQueuesEmpty()
public static void waitForQueuesToDrain()
public static java.lang.Integer createServerCache()
throws java.lang.Exception
java.lang.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 java.lang.Exception
tearDown2 in class DistributedTestCasejava.lang.ExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.