public class QueryMonitorDUnitTest extends CacheTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected CqQueryDUnitTest |
cqDUnitTest |
cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
QueryMonitorDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
BUG46770WORKAROUNDtestQueryMonitorRegionWithEviction()
Tests query execution from client to server (multiple server) with eviction to disk.
|
void |
configClient(VM client,
VM[] server) |
void |
configServer(VM server,
int queryMonitorTime,
String testName) |
void |
createPRRegion(VM vm) |
void |
createRegion(VM vm) |
void |
createRegion(VM vm,
boolean eviction,
String dirName) |
void |
setUp()
Sets up the test (noop).
|
protected 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 |
stopServer(VM server) |
void |
testCacheOpAfterQueryCancel()
Tests cache operation right after query cancellation.
|
void |
testCQWithDestroysAndInvalidates()
The following CQ test is added to make sure TEST_MAX_QUERY_EXECUTION_TIME is reset
and is not affecting other query related tests.
|
void |
testQueryExecutionLocally()
Tests query execution on local vm.
|
void |
testQueryExecutionLocallyAndCacheOp()
Tests query execution on local vm.
|
void |
testQueryMonitorClientServer()
Tests query execution from client to server (single server).
|
void |
testQueryMonitorMultiClientMultiServer()
Tests query execution from client to server (multi server).
|
void |
testQueryMonitorOnPR()
Tests query execution from client to server (multiple server) on Partition Region .
|
void |
testQueryMonitorRegionWithIndex()
Tests query execution on region with indexes.
|
void |
testQueryMonitorWithLocalQueryOnPR()
Tests query execution on Partition Region, executes query locally.
|
void |
validateQueryMonitorThreadCnt(VM vm,
int threadCount,
int waitTime) |
void |
verifyException(Exception e) |
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 CqQueryDUnitTest cqDUnitTest
public QueryMonitorDUnitTest(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic void createRegion(VM vm)
public void createPRRegion(VM vm)
public void stopServer(VM server)
public void verifyException(Exception e)
public void testQueryMonitorClientServer()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testQueryMonitorMultiClientMultiServer()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testQueryExecutionLocally()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testQueryExecutionLocallyAndCacheOp()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testQueryMonitorOnPR()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testQueryMonitorWithLocalQueryOnPR()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void BUG46770WORKAROUNDtestQueryMonitorRegionWithEviction()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testQueryMonitorRegionWithIndex()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testCQWithDestroysAndInvalidates()
throws Exception
Exceptionpublic void testCacheOpAfterQueryCancel()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void validateQueryMonitorThreadCnt(VM vm, int threadCount, int waitTime)
protected void startBridgeServer(int port,
boolean notifyBySubscription)
throws IOException
IOExceptionprotected void stopBridgeServer(com.gemstone.gemfire.cache.Cache cache)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.