public class QueryUsingPoolDUnitTest extends CacheTestCase
| Modifier and Type | Class and Description |
|---|---|
static class |
QueryUsingPoolDUnitTest.IdComparator |
static class |
QueryUsingPoolDUnitTest.IdValueComparator |
static class |
QueryUsingPoolDUnitTest.StructIdComparator |
static class |
QueryUsingPoolDUnitTest.TestObject |
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
QueryUsingPoolDUnitTest(String name)
Creates a new
GemFireMemberStatusDUnitTest |
| Modifier and Type | Method and Description |
|---|---|
void |
__testRemoteComplexQueries()
Tests remote complex query execution.
|
static void |
caseSetUp() |
void |
closeClient(VM client) |
protected void |
configAndStartBridgeServer() |
void |
createPool(VM vm,
String poolName,
String[] servers,
int[] ports,
boolean subscriptionEnabled) |
void |
createPool(VM vm,
String poolName,
String server,
int port) |
void |
createPool(VM vm,
String poolName,
String server,
int port,
boolean subscriptionEnabled) |
protected void |
executeCompiledQueries(String poolName,
Object[][] params) |
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 |
tearDown2()
Tears down the test.
|
void |
testBindParamsWithMulitipleClients()
Tests client-server query using parameters (compiled queries).
|
void |
testBug36969()
This the dunit test for the bug no : 36969
|
void |
testClientServerCompiledQueryCleanup()
Tests client-server compiled query register and cleanup.
|
void |
testClientServerCompiledQueryRegisterAndCleanup()
Tests client-server compiled query register and cleanup.
|
void |
testClientServerCompiledQueryTimeBasedCleanup()
Tests client-server compiled query register and cleanup.
|
void |
testClientServerQueriesWithParams()
Tests client-server query using parameters (compiled queries).
|
void |
testMulitipleClientServerQueriesWithParams()
Tests client-server query using parameters (compiled queries).
|
void |
testRemoteBridgeClientQueries()
Tests remote query execution using a BridgeClient as the CacheWriter
and CacheLoader.
|
void |
testRemoteFullRegionQueries()
Tests remote full region query execution.
|
void |
testRemoteImportQueries()
Tests remote import query execution.
|
void |
testRemoteJoinRegionQueries()
Tests remote join query execution.
|
void |
testRemoteSortQueriesUsingIndex()
Tests remote full region query execution.
|
void |
testRemoteStructQueries()
Tests remote struct query execution.
|
void |
testUnSupportedOps() |
void |
validateCompiledQuery(VM vm,
long compiledQueryCount) |
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, sendUnorderedMessageToAlladdExpectedException, 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, setUp, 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 QueryUsingPoolDUnitTest(String name)
GemFireMemberStatusDUnitTestpublic void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class CacheTestCaseExceptionpublic void createPool(VM vm, String poolName, String server, int port, boolean subscriptionEnabled)
public void createPool(VM vm, String poolName, String[] servers, int[] ports, boolean subscriptionEnabled)
public void validateCompiledQuery(VM vm, long compiledQueryCount)
public void testRemoteImportQueries()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testRemoteStructQueries()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void __testRemoteComplexQueries()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testRemoteFullRegionQueries()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testClientServerQueriesWithParams()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testMulitipleClientServerQueriesWithParams()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testClientServerCompiledQueryRegisterAndCleanup()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testClientServerCompiledQueryTimeBasedCleanup()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testClientServerCompiledQueryCleanup()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testBindParamsWithMulitipleClients()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testRemoteJoinRegionQueries()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testRemoteBridgeClientQueries()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testBug36969()
throws Exception
Exceptionpublic void testRemoteSortQueriesUsingIndex()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionprotected void configAndStartBridgeServer()
protected void startBridgeServer(int port,
boolean notifyBySubscription)
throws IOException
IOExceptionprotected void stopBridgeServer(com.gemstone.gemfire.cache.Cache cache)
public void closeClient(VM client)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.