public class ConflationDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2logPerTest, reconnect, system, testName| Constructor and Description |
|---|
ConflationDUnitTest(String name)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
assertAllCountersZero()
assert all the counters are zero
|
static void |
assertConflationStatus()
assert Conflation Status
|
static void |
assertCounterSizes()
assert the counters size are as expected (2)
|
static void |
assertCounterSizesLessThan200()
assert the counters size less than 20000
|
static void |
assertValue()
assert that the final value is 33
|
static void |
closeCache()
close the cache
|
static void |
create()
Create an entry on two region with key : key-1 and value
|
static void |
createClientCache1CommonWriter(String host,
Integer port)
create a client with 2 regions sharing a common writer
|
static void |
createClientCache1CommonWriterTest3(String host,
Integer port)
create a client with 2 regions sharing a common writer
|
static void |
createClientCache1UniqueWriter(String host,
Integer port)
create a client with 2 regions each having its own writer
|
static void |
createClientCache2CommonWriter(String host,
Integer port)
create client 2 with 2 regions with sharing a common writer
and having a common listener
|
static void |
createClientCache2CommonWriterTest3(String host,
Integer port) |
static void |
createClientCache2UniqueWriter(String host,
Integer port)
create client 2 with 2 regions each with a unique writer
but both having a common listener
|
static void |
createMarker() |
static Integer |
createServerCache()
create a server cache and start the server
|
static void |
destroy()
destroy key-1
|
static void |
destroyMarker()
destroy marker
|
static void |
destroyRegion()
destroy the regions
|
static void |
get()
do a get on region1
|
static void |
getStatsOnServer()
getting conflation Stats on server
|
static void |
put()
do three puts on key-1
|
static void |
put200()
do 200 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.
|
static void |
setIsSlowStart(String milis)
Set the boolean to make the dispatcher thread pause
milis
miliseconds. |
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
close the cache in tearDown
|
void |
testNotMoreMessagesSent()
test more messages are not sent to client from server
|
void |
testTwoRegionsOneWriter()
two regions with a common bridgewriter
|
void |
testTwoRegionsTwoWriters()
two regions, with two writers (each region will have a unique bridgwriter).
|
static void |
unregisterInterest()
register interest with the server on ALL_KEYS
|
static void |
unsetIsSlowStart()
Unset the boolean to start the dispatcher thread.
|
static void |
waitForMarker() |
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 ConflationDUnitTest(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic static void setIsSlowStart()
public static void setIsSlowStart(String milis)
milis
miliseconds.public static void unsetIsSlowStart()
public void testTwoRegionsTwoWriters()
public void testTwoRegionsOneWriter()
public void testNotMoreMessagesSent()
public static void createClientCache1CommonWriter(String host, Integer port) throws Exception
Exceptionpublic static void createClientCache1CommonWriterTest3(String host, Integer port) throws Exception
Exceptionpublic static void createClientCache2CommonWriter(String host, Integer port) throws Exception
Exceptionpublic static void createClientCache2CommonWriterTest3(String host, Integer port) throws Exception
Exceptionpublic static void createClientCache1UniqueWriter(String host, Integer port) throws Exception
Exceptionpublic static void createClientCache2UniqueWriter(String host, Integer port) throws Exception
Exceptionpublic static void assertAllCountersZero()
public static void setAllCountersZero()
public static void setBridgeObserverForBeforeInterestRecovery()
public static void assertCounterSizes()
public static void assertCounterSizesLessThan200()
public static void waitForMarker()
public static void assertValue()
public static void assertConflationStatus()
public static Integer createServerCache() throws Exception
Exceptionpublic static void closeCache()
public static void registerInterest()
public static void unregisterInterest()
public static void create()
public static void put()
public static void createMarker()
public static void put200()
public static void getStatsOnServer()
public static void get()
public static void destroyRegion()
public static void destroy()
public static void destroyMarker()
public void tearDown2()
throws Exception
tearDown2 in class DistributedTestCaseExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.