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(java.lang.String name)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
acquirePoolConnection() |
static void |
closeCache() |
static void |
createClientCache(java.lang.String host,
java.lang.Integer port1,
java.lang.Integer port2) |
static void |
createEntriesK1andK2() |
static void |
createImpl()
subclass support
|
static java.lang.Integer |
createServerCache(java.lang.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(java.lang.String name)
public void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class DistributedTestCasejava.lang.Exceptionpublic static void createImpl()
public void testDirectPutOnServer()
public void testInterestListEndpoint()
public void testInterestListEndpointAfterFailover()
throws java.lang.Exception
java.lang.Exceptionpublic static boolean isVm0Primary()
throws java.lang.Exception
java.lang.Exceptionpublic static int getPrimaryPort()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdaterThreadIsAliveForFailedEndPoint()
public static void acquirePoolConnection()
public static void processException()
public static void verifyUpdaterThreadIsAlive()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic static void stopILEndpointServer()
public static void createEntriesK1andK2()
public static void createClientCache(java.lang.String host,
java.lang.Integer port1,
java.lang.Integer port2)
throws java.lang.Exception
java.lang.Exceptionprotected int getMaxThreads()
public static java.lang.Integer createServerCache(java.lang.Integer maxThreads)
throws java.lang.Exception
java.lang.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 java.lang.Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class DistributedTestCasejava.lang.ExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.