public class DestroyEntryPropagationDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static com.gemstone.gemfire.cache.Cache |
cache |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
DestroyEntryPropagationDUnitTest(String name)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
acquireConnectionsAndDestroyEntriesK1andK2() |
static void |
closeCache() |
static void |
createClientCache(String host,
Integer port1,
Integer port2) |
static void |
createEntriesK1andK2()
Creates entries on the server
|
static Integer |
createServerCache() |
static void |
destroyEntriesK1andK2()
destroy entry
|
static void |
killServer(Integer port) |
static void |
registerKey1() |
void |
setUp()
Sets up the test (noop).
|
static void |
startServer(Integer port) |
void |
tearDown2()
Tears down the test.
|
void |
testDestroyOnServerPropagation()
This tests whether the destroy happened directly on server are propagted or
not.
|
void |
testDestroyPropagation()
This tests whether the destroy are propagted or not according to interest registration.
|
void |
testVerifyDestroyNotReceivedBySender()
This tests whether the destroy are received by the sender or not if there
are situation of Interest List fail over
|
static void |
verifyEntriesAreDestroyed() |
static void |
verifyNoDestroyEntryInSender() |
static void |
verifyOnlyRegisteredEntriesAreDestroyed() |
static void |
waitForDestroyEvent(com.gemstone.gemfire.cache.Region r,
Object key) |
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 DestroyEntryPropagationDUnitTest(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic void testDestroyPropagation()
public void testDestroyOnServerPropagation()
public void testVerifyDestroyNotReceivedBySender()
public static void acquireConnectionsAndDestroyEntriesK1andK2()
public static void killServer(Integer port)
public static void startServer(Integer port)
public static void createEntriesK1andK2()
public static void destroyEntriesK1andK2()
public static void verifyNoDestroyEntryInSender()
public static void verifyEntriesAreDestroyed()
public static void verifyOnlyRegisteredEntriesAreDestroyed()
public static void waitForDestroyEvent(com.gemstone.gemfire.cache.Region r,
Object key)
public static void createClientCache(String host, Integer port1, Integer port2) throws Exception
Exceptionpublic static void registerKey1()
key - Key in which client is interestedpublic static void closeCache()
public void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class DistributedTestCaseExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.