public class DeltaPropagationStatsDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static com.gemstone.gemfire.cache.Cache |
cache |
protected static com.gemstone.gemfire.cache.client.Pool |
pool |
static String |
REGION_NAME |
protected static VM |
vm0 |
protected static VM |
vm1 |
protected static VM |
vm2 |
protected static VM |
vm3 |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
DeltaPropagationStatsDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
_testC2SDeltaPropagationFailedStats2()
Simulates old value null, entry null
|
void |
_testP2PDeltaPropagationFailedStats2()
Simulates old value null, entry null
|
void |
_testS2CDeltaPropagationFailedStats2()
Simulates old value null, entry null, InvalidDeltaExeption
|
static void |
closeCache() |
static void |
createClientCache(String host,
Integer port) |
static Integer |
createServerCache(Boolean flag) |
static Integer |
createServerCache(Boolean flag,
com.gemstone.gemfire.cache.DataPolicy policy,
com.gemstone.gemfire.cache.Scope scope,
Boolean listener) |
static void |
putCleanDelta(Integer keys,
Long updates) |
static void |
putErrorDeltaForReceiver(Integer keys,
Long updates,
Long errors) |
static void |
putErrorDeltaForSender(Integer keys,
Long updates,
Long errors,
Boolean doCreate) |
static void |
putLastKey() |
static void |
resetLastKeyReceived() |
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
Tears down the test.
|
void |
testC2SDeltaPropagationCleanStats()
No error or resending of delta.
|
void |
testC2SDeltaPropagationFailedStats1()
Simulates error in fromDelta() and toDelta()
|
void |
testP2PDeltaPropagationCleanStats()
No error or resending of delta.
|
void |
testP2PDeltaPropagationFailedStats1()
Simulates error in fromDelta()
|
void |
testS2CDeltaPropagationCleanStats()
No error or resending of delta.
|
void |
testS2CDeltaPropagationFailedStats1()
Simulates error in fromDelta() and toDelta()
|
static void |
verifyDeltaReceiverStats(Integer path,
Long expectedDeltasProcessed,
Long expectedDeltaFailures) |
static void |
verifyDeltaSenderStats(Integer path,
Long expectedDeltasSent) |
static void |
waitForLastKey() |
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, toStringprotected static VM vm0
protected static VM vm1
protected static VM vm2
protected static VM vm3
protected static com.gemstone.gemfire.cache.Cache cache
protected static com.gemstone.gemfire.cache.client.Pool pool
public static String REGION_NAME
public DeltaPropagationStatsDUnitTest(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class DistributedTestCaseExceptionpublic static void resetLastKeyReceived()
public static void closeCache()
public void testS2CDeltaPropagationCleanStats()
throws Exception
Exceptionpublic void testS2CDeltaPropagationFailedStats1()
throws Exception
Exceptionpublic void _testS2CDeltaPropagationFailedStats2()
throws Exception
Exceptionpublic void testP2PDeltaPropagationCleanStats()
throws Exception
Exceptionpublic void testP2PDeltaPropagationFailedStats1()
throws Exception
Exceptionpublic void _testP2PDeltaPropagationFailedStats2()
throws Exception
Exceptionpublic void testC2SDeltaPropagationCleanStats()
throws Exception
Exceptionpublic void testC2SDeltaPropagationFailedStats1()
throws Exception
Exceptionpublic void _testC2SDeltaPropagationFailedStats2()
throws Exception
Exceptionpublic static void waitForLastKey()
public static void putErrorDeltaForReceiver(Integer keys, Long updates, Long errors)
public static void putErrorDeltaForSender(Integer keys, Long updates, Long errors, Boolean doCreate)
public static void putLastKey()
public static void verifyDeltaSenderStats(Integer path, Long expectedDeltasSent)
public static void verifyDeltaReceiverStats(Integer path, Long expectedDeltasProcessed, Long expectedDeltaFailures)
public static void createClientCache(String host, Integer port) throws Exception
Exceptionpublic static Integer createServerCache(Boolean flag) throws Exception
ExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.