public class InterestListEndpointDUnitTest 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 |
|---|
InterestListEndpointDUnitTest(String name)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
acquirePoolConnection() |
static void |
closeCache() |
static void |
createClientCache(String host,
Integer port1,
Integer port2) |
static void |
createEntriesK1andK2() |
static void |
createImpl()
subclass support
|
static Integer |
createServerCache(Integer maxThreads) |
protected com.gemstone.gemfire.cache.RegionAttributes |
createServerCacheAttributes() |
protected int |
getMaxThreads() |
static int |
getPrimaryPort() |
static boolean |
isVm0Primary() |
static void |
processException() |
static void |
put() |
static void |
registerKey1() |
void |
setUp()
Sets up the test (noop).
|
static void |
stopILEndpointServer() |
void |
tearDown2()
Tears down the test.
|
void |
testDirectPutOnServer()
tests wheteher upadets are sent to clients if put on server directly
|
void |
testInterestListEndpoint()
put on non interest list ep and verify updates
|
void |
testInterestListEndpointAfterFailover() |
void |
testUpdaterThreadIsAliveForFailedEndPoint() |
static void |
verifyIfNotInterestListEndpointAndThenPut() |
static void |
verifyPut() |
static void |
verifyUpdaterThreadIsAlive() |
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 InterestListEndpointDUnitTest(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic static void createImpl()
public void testDirectPutOnServer()
public void testInterestListEndpoint()
public void testInterestListEndpointAfterFailover()
throws Exception
Exceptionpublic void testUpdaterThreadIsAliveForFailedEndPoint()
public static void acquirePoolConnection()
public static void processException()
public static void verifyUpdaterThreadIsAlive()
throws InterruptedException
InterruptedExceptionpublic static void stopILEndpointServer()
public static void createEntriesK1andK2()
public static void createClientCache(String host, Integer port1, Integer port2) throws Exception
Exceptionprotected int getMaxThreads()
public static Integer createServerCache(Integer maxThreads) throws Exception
Exceptionprotected com.gemstone.gemfire.cache.RegionAttributes createServerCacheAttributes()
public static void put()
public static void verifyIfNotInterestListEndpointAndThenPut()
public static void registerKey1()
public static void verifyPut()
public 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.