public class DeltaToRegionRelationCQRegistrationDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2logPerTest, reconnect, system, testName| Constructor and Description |
|---|
DeltaToRegionRelationCQRegistrationDUnitTest(String name)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
closeCache() |
static void |
createClientCache(String host,
Integer port) |
static Integer |
createClientCache2(String host1,
String host2,
Integer port1,
Integer port2) |
static Integer |
createClientCache3(String host1,
String host2,
Integer port1,
Integer port2) |
static void |
createClientCacheWithNoRegion(String host,
Integer port) |
static Integer |
createServerCache() |
static com.gemstone.gemfire.internal.cache.tier.sockets.CacheClientProxy |
getClientProxy() |
void |
intialSetUp() |
void |
intialSetUpClientWithNoRegion() |
void |
intialSetUpForFailOver() |
void |
intialSetUpNoRegiononClientForFailOver() |
static void |
registerCq(String name,
String Cquery,
Boolean cqWithIR) |
static void |
registerCqThroughPool(String name,
String Cquery,
Boolean cqWithIR) |
void |
setUp()
Sets up the test (noop).
|
static void |
stopCacheServer() |
void |
tearDown2()
Tears down the test.
|
void |
tearDownForFailOver() |
void |
tearDownforSimpleCase() |
void |
testDeltaToRegionForRegisterCQ()
This test does the following for single cq registration(with out initial resultset):
1)Verifies create entry for region with data policy as Empty; in map stored in CacheCleintProxy 2)Verifies no create happens for region with data policy other then Empty; in map 3)Verifies multiple and different interest registration (key/list) should not create multiple entries in map |
void |
testDeltaToRegionForRegisterCQFailover()
This test does the following for cq registration when failover(cq registration):
1)Verifies when primary goes down, cq registration happen 2)Verifies create entry for region with data policy as Empty; in map stored in CacheCleintProxy 3)Verifies no create happens for region with data policy other then Empty; in map |
void |
testDeltaToRegionForRegisterCQIR()
This test does the following for single cq registration(with initial resultset):
1)Verifies create entry for region with data policy as Empty; in map stored in CacheCleintProxy 2)Verifies no create happens for region with data policy other then Empty; in map 3)Verifies multiple and different interest registration (key/list) should not create multiple entries in map |
void |
testDeltaToRegionForRegisterCQIRFaliover()
This test does the following for cq registration with initial result set when failover(cq registration):
1)Verifies when primary goes down, cq registration happen 2)Verifies create entry for region with data policy as Empty; in map stored in CacheCleintProxy 3)Verifies no create happens for region with data policy other then Empty; in map |
void |
testDeltaToRegionForRegisterCQIRFromPoolFaliover()
This test does the following for cq registration with initial result set through pool when failover(cq registration):
1)Verifies when primary goes down, cq registration happen 2)Verifies create entry for region in map stored in CacheCleintProxy |
void |
testDeltaToRegionForRegisterCQIRThroughPool()
This test does the following for single cq registration from pool (with initial resultset):
1)Verifies create entry for region in map stored in CacheCleintProxy 2)Verifies multiple and different interest registration (key/list) should not create multiple entries in map |
void |
validationForCQFiredFromPoolFailOver() |
void |
validationForFailOver() |
static void |
validationOnServer() |
static void |
validationOnServerForCqRegistrationFromPool() |
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 DeltaToRegionRelationCQRegistrationDUnitTest(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic void testDeltaToRegionForRegisterCQ()
public void testDeltaToRegionForRegisterCQIR()
public void testDeltaToRegionForRegisterCQIRThroughPool()
public void testDeltaToRegionForRegisterCQFailover()
public void testDeltaToRegionForRegisterCQIRFaliover()
public void testDeltaToRegionForRegisterCQIRFromPoolFaliover()
public static void registerCqThroughPool(String name, String Cquery, Boolean cqWithIR)
public static void validationOnServerForCqRegistrationFromPool()
throws Exception
Exceptionpublic static void createClientCache(String host, Integer port) throws Exception
Exceptionpublic static void createClientCacheWithNoRegion(String host, Integer port) throws Exception
Exceptionpublic static Integer createClientCache2(String host1, String host2, Integer port1, Integer port2) throws Exception
Exceptionpublic static Integer createClientCache3(String host1, String host2, Integer port1, Integer port2) throws Exception
Exceptionpublic void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class DistributedTestCaseExceptionpublic static void closeCache()
public static com.gemstone.gemfire.internal.cache.tier.sockets.CacheClientProxy getClientProxy()
public static void stopCacheServer()
public void intialSetUp()
public void intialSetUpClientWithNoRegion()
public void tearDownforSimpleCase()
public void intialSetUpForFailOver()
public void intialSetUpNoRegiononClientForFailOver()
public void validationForFailOver()
public void validationForCQFiredFromPoolFailOver()
public void tearDownForFailOver()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.