public class CqQueryDUnitTest extends CacheTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
String[] |
cqs |
static String |
KEY |
static long |
MAX_TIME |
static int |
noTest |
protected static int |
port |
protected static int |
port2 |
String[] |
regions |
cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
CqQueryDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCQListenerEvents(VM vm,
String cqName) |
void |
closeClient(VM client) |
void |
closeCQ(VM vm,
String cqName) |
void |
closeCrashServer(VM server) |
void |
closeServer(VM server) |
void |
crashServer(VM server) |
void |
createAndExecCQNoName(VM vm,
String queryStr) |
void |
createClient(VM client,
int[] serverPorts,
String serverHost,
String redundancyLevel) |
void |
createClient(VM client,
int serverPort,
String serverHost) |
void |
createClientWith2Pools(VM client,
int[] serverPorts1,
int[] serverPorts2,
String serverHost,
String redundancyLevel) |
void |
createCQ(VM vm,
String cqName,
String queryStr) |
void |
createCQ(VM vm,
String cqName,
String queryStr,
boolean isBridgeMemberTest) |
void |
createIndex(VM vm,
String indexName,
String indexedExpression,
String regionPath) |
void |
createServer(VM server) |
void |
createServer(VM server,
int p) |
void |
createServer(VM server,
int thePort,
boolean eviction) |
void |
createServer(VM server,
int thePort,
boolean eviction,
com.gemstone.gemfire.cache.MirrorType mirrorType) |
void |
createValues(VM vm,
String regionName,
int size) |
void |
createValuesAsPortfolios(VM vm,
String regionName,
int size) |
void |
createValuesAsPrimitives(VM vm,
String regionName,
int size) |
void |
createValuesWithShort(VM vm,
String regionName,
int size) |
void |
createValuesWithTime(VM vm,
String regionName,
int size) |
void |
deleteValues(VM vm,
String regionName,
int size) |
void |
executeAndCloseAndExecuteIRMultipleTimes(VM vm,
String cqName,
String queryStr) |
void |
executeCQ(VM vm,
String cqName,
boolean initialResults,
String expectedErr) |
protected com.gemstone.gemfire.cache.RegionAttributes |
getRegionAttributes()
Returns region attributes for a
LOCAL region |
void |
invalidateValues(VM vm,
String regionName,
int size)
support for invalidating values.
|
void |
restartBridgeServer(VM server,
int port) |
void |
setUp()
Sets up the test (noop).
|
void |
startBridgeServer(int port)
Starts a bridge server on the given port to serve up the given
region.
|
void |
startBridgeServer(int port,
boolean notifyBySubscription)
Starts a bridge server on the given port, using the given
deserializeValues and notifyBySubscription to serve up the
given region.
|
protected void |
stopBridgeServer(com.gemstone.gemfire.cache.Cache cache)
Stops the bridge server that serves up the given cache.
|
void |
stopCQ(VM vm,
String cqName) |
void |
testCQAllServersCrash() |
void |
testCQAllServersLeave() |
void |
testCQAllServersLeaveAndRejoin() |
void |
testCQAllServersLeaveMultiplePool() |
void |
testCQAttributesMutator()
Test for CQ Attributes Mutator functions
|
void |
testCqCloseAndExecuteWithInitialResults() |
void |
testCQCreateClose()
Test for CQ register and UnRegister.
|
void |
testCQEquals() |
void |
testCQEqualsWithIndex() |
void |
testCQEvents()
Test for CQ Listener events.
|
void |
testCQFailOver()
Test for CQ Fail over.
|
void |
testCQHA()
Test for CQ Fail over/HA with redundancy level set.
|
void |
testCQPrimaryLeaves() |
void |
testCQRemainsWhenServerGCs()
bug #47494 - CQs were destroyed when a server did a tombstone GC
|
void |
testCQResultSet()
Test for CQ ResultSet.
|
void |
testCQStopExecute()
Test for CQ register and UnRegister.
|
void |
testCQWhereCondOnShort() |
void |
testCQWithMultipleClients()
Test for CQ with multiple clients.
|
void |
testEnableDisableCQ()
Test for stopping and restarting CQs.
|
void |
testForSupportedRegionAttributes()
Tests execution of queries with NULL in where clause like where ID = NULL
etc.
|
void |
testGetCQsForARegionName()
Test getCQs for a regions
|
void |
testInterestListAndCQs()
Test for InterestList and CQ registered from same clients.
|
void |
testQuery()
Test for Complex queries.
|
void |
testQueryWithNULLInWhereClause()
Tests execution of queries with NULL in where clause like where ID = NULL
etc.
|
void |
testRegionDestroy()
This will test the events after region destory.
|
void |
testWithoutCQs()
Test without CQs.
|
void |
updateValuesAsPrimitives(VM vm,
String regionName,
int size) |
void |
validateCQ(VM vm,
String cqName,
int resultSize,
int creates,
int updates,
int deletes) |
void |
validateCQ(VM vm,
String cqName,
int resultSize,
int creates,
int updates,
int deletes,
int queryInserts,
int queryUpdates,
int queryDeletes,
int totalEvents) |
void |
validateCQCount(VM vm,
int cqCnt) |
void |
waitForClose(VM vm,
String cqName) |
void |
waitForCqState(VM vm,
String cqName,
int state)
Waits till the CQ state is same as the expected.
|
void |
waitForCreated(VM vm,
String cqName,
String key) |
void |
waitForDestroyed(VM vm,
String cqName,
String key) |
void |
waitForInvalidated(VM vm,
String cqName,
String key) |
void |
waitForRegionClear(VM vm,
String cqName) |
void |
waitForRegionInvalidate(VM vm,
String cqName) |
void |
waitForUpdated(VM vm,
String cqName,
String key) |
addExceptionTag1, basicGetCache, beginCacheXml, cleanDiskDirs, closeAllCache, closeCache, createLonerCache, createMcastCache, createMcastCache, createRegion, createRegion, createRootRegion, createRootRegion, disconnectFromDS, finishCacheXml, finishCacheXml, getCache, getCache, getCache, getCache, getClientCache, getDiskDirs, getGemfireCache, getInternalRegionArguments, getRootRegion, getRootRegion, hasCache, remoteTearDown, removeExceptionTag1, sendSerialMessageToAll, sendUnorderedMessageToAll, tearDown2addExpectedException, addExpectedException, addHydraProperties, attachDebugger, checkBBFlag, cleanupAllVms, clearBBFlag, crashDistributedSystem, crashDistributedSystem, createLogWriter, disconnectAllFromDS, 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 int port
protected static int port2
public static int noTest
public final String[] regions
public static final String KEY
public static final long MAX_TIME
public final String[] cqs
public CqQueryDUnitTest(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic void createServer(VM server)
public void createServer(VM server, int p)
public void createServer(VM server, int thePort, boolean eviction)
public void createServer(VM server, int thePort, boolean eviction, com.gemstone.gemfire.cache.MirrorType mirrorType)
public void closeServer(VM server)
public void crashServer(VM server)
public void closeCrashServer(VM server)
public void createClient(VM client, int[] serverPorts, String serverHost, String redundancyLevel)
public void createClientWith2Pools(VM client, int[] serverPorts1, int[] serverPorts2, String serverHost, String redundancyLevel)
public void closeClient(VM client)
public void createIndex(VM vm, String indexName, String indexedExpression, String regionPath)
public void invalidateValues(VM vm, String regionName, int size)
public void executeAndCloseAndExecuteIRMultipleTimes(VM vm, String cqName, String queryStr)
public void validateCQ(VM vm, String cqName, int resultSize, int creates, int updates, int deletes)
public void validateCQ(VM vm, String cqName, int resultSize, int creates, int updates, int deletes, int queryInserts, int queryUpdates, int queryDeletes, int totalEvents)
public void waitForCqState(VM vm, String cqName, int state)
public void testCQRemainsWhenServerGCs()
throws Exception
Exceptionpublic void testInterestListAndCQs()
throws Exception
Exceptionpublic void testCQStopExecute()
throws Exception
Exceptionpublic void testCQAttributesMutator()
throws Exception
Exceptionpublic void testCQCreateClose()
throws Exception
Exceptionpublic void testRegionDestroy()
throws Exception
Exceptionpublic void testCQWithMultipleClients()
throws Exception
Exceptionpublic void testCQResultSet()
throws Exception
Exceptionpublic void testCQEvents()
throws Exception
Exceptionpublic void testEnableDisableCQ()
throws Exception
Exceptionpublic void testCQFailOver()
throws Exception
Exceptionpublic void testCQHA()
throws Exception
Exceptionpublic void testWithoutCQs()
throws Exception
Exceptionpublic void testGetCQsForARegionName()
throws Exception
Exceptionpublic void testQueryWithNULLInWhereClause()
throws Exception
Exceptionpublic void testForSupportedRegionAttributes()
throws Exception
Exceptionpublic void testCQAllServersLeaveAndRejoin()
throws Exception
Exceptionpublic void testCQAllServersLeaveMultiplePool()
throws Exception
Exceptionpublic void testCqCloseAndExecuteWithInitialResults()
throws Exception
Exceptionpublic void restartBridgeServer(VM server, int port)
public void startBridgeServer(int port)
throws IOException
IOExceptionpublic void startBridgeServer(int port,
boolean notifyBySubscription)
throws IOException
IOExceptionprotected void stopBridgeServer(com.gemstone.gemfire.cache.Cache cache)
protected com.gemstone.gemfire.cache.RegionAttributes getRegionAttributes()
LOCAL regionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.