public class ClientConflationDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2logPerTest, reconnect, system, testName| Constructor and Description |
|---|
ClientConflationDUnitTest(String name)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
assertAllCountersZero()
assert all the counters are zero
|
static void |
assertAllQueuesEmpty()
Assert all queues are empty to aid later assertion for listener event counts.
|
static void |
assertCounterSizes(String conflation)
assert the listener counters size are as expected
|
static void |
assertValue()
assert that the final value is 55
|
static void |
closeCacheClient()
close the client cache
|
static void |
closeCacheFeeder()
close the feeder cache
|
static void |
closeCacheServer()
close the server cache
|
static void |
createClientCache(String host,
Integer port,
String conflation)
create client 2 with 2 regions each with a unique writer
and unique listeners
|
static void |
createClientCacheFeeder(String host,
Integer port) |
static Integer |
createServerCache()
create a server cache and start the server
|
static void |
putEntries()
do 5 puts on key-1
|
static void |
registerInterest()
register interest with the server on ALL_KEYS
|
static void |
setAllCountersZero()
set all the counters to zero
|
static void |
setBridgeObserverForBeforeInterestRecovery()
reset all counters to zero before interest recovery
|
static void |
setIsSlowStart()
set the boolean for starting the dispatcher thread a bit later.
|
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
close the cache in tearDown
|
void |
testConflationDefault() |
void |
testConflationOff() |
void |
testConflationOn() |
static void |
unregisterInterest()
register interest with the server on ALL_KEYS
|
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 ClientConflationDUnitTest(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic static void setIsSlowStart()
public void testConflationDefault()
public void testConflationOn()
public void testConflationOff()
public static void createClientCache(String host, Integer port, String conflation) throws Exception
Exceptionpublic static void createClientCacheFeeder(String host, Integer port) throws Exception
Exceptionpublic static void assertAllCountersZero()
public static void setAllCountersZero()
public static void setBridgeObserverForBeforeInterestRecovery()
public static void assertAllQueuesEmpty()
public static void assertCounterSizes(String conflation)
public static void assertValue()
public static Integer createServerCache() throws Exception
Exceptionpublic static void closeCacheClient()
public static void closeCacheFeeder()
public static void closeCacheServer()
public static void registerInterest()
public static void unregisterInterest()
public static void putEntries()
public void tearDown2()
throws Exception
tearDown2 in class DistributedTestCaseExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.