public class PdxQueryDUnitTest extends CacheTestCase
| Modifier and Type | Class and Description |
|---|---|
static class |
PdxQueryDUnitTest.TestObject |
static class |
PdxQueryDUnitTest.TestObject2 |
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static com.gemstone.gemfire.compression.Compressor |
compressor |
cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
PdxQueryDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeClient(VM client) |
protected void |
configAndStartBridgeServer() |
protected void |
configAndStartBridgeServer(boolean isPr,
boolean isAccessor) |
protected void |
configAndStartBridgeServer(boolean isPr,
boolean isAccessor,
boolean asyncIndex,
com.gemstone.gemfire.compression.Compressor compressor) |
void |
createPool(VM vm,
String poolName,
String[] servers,
int[] ports,
boolean subscriptionEnabled) |
void |
createPool(VM vm,
String poolName,
String[] servers,
int[] ports,
boolean subscriptionEnabled,
int redundancy) |
void |
createPool(VM vm,
String poolName,
String server,
int port) |
void |
createPool(VM vm,
String poolName,
String server,
int port,
boolean subscriptionEnabled) |
void |
executeClientQueries(VM vm,
String poolName,
String queryStr)
Tests function calls in the query.
|
protected void |
executeCompiledQueries(String poolName,
Object[][] params) |
void |
printResults(com.gemstone.gemfire.cache.query.SelectResults results,
String message) |
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 |
startCacheServer(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 |
testClientServerCountQuery()
Tests client-server query on PdxInstance.
|
void |
testClientServerQuery()
Tests client-server query on PdxInstance.
|
void |
testClientServerQueryWithCompression()
Tests client-server query on compressed PdxInstance.
|
void |
testClientServerQueryWithProjections()
Tests client-server query on PdxInstance.
|
void |
testClientServerQueryWithRangeIndex()
Tests client-server query on PdxInstance.
|
void |
testCq()
Tests client-server query on PdxInstance.
|
void |
testDefaultValuesInPdxFieldTypes()
Test query execution when default values of
FieldType are used. |
void |
testIndex()
Tests index on PdxInstance.
|
void |
testLocalPRQuery()
Tests query on with PR.
|
void |
testPdxInstanceNoFieldNoMethod()
for #44436
Test to query a field that is not present in the Pdx object
Also the implicit method is absent in the class
|
void |
testPdxReadSerializedForPRQuery()
Tests query on with PR.
|
void |
testQueryOnPR()
Tests query on with PR.
|
void |
testRegionIterators()
Tests client-server query with region iterators.
|
void |
testServerQuery()
Tests client-server query on PdxInstance.
|
void |
testVersionedClass()
Tests client-server query on PdxInstance.
|
void |
testVersionedClientServerQuery()
Tests client-server query on PdxInstance.
|
void |
validateCq(VM vm,
String cqName,
int expectedEvents,
int createEvents,
int updateEvents)
Tests client-server query on PdxInstance.
|
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, 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 final com.gemstone.gemfire.compression.Compressor compressor
public PdxQueryDUnitTest(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic 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 createPool(VM vm, String poolName, String[] servers, int[] ports, boolean subscriptionEnabled, int redundancy)
public void testServerQuery()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testClientServerQueryWithProjections()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testClientServerQueryWithCompression()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testVersionedClass()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testClientServerQuery()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testClientServerQueryWithRangeIndex()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testClientServerCountQuery()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testVersionedClientServerQuery()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testQueryOnPR()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testLocalPRQuery()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testPdxReadSerializedForPRQuery()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testCq()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testIndex()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testRegionIterators()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void validateCq(VM vm, String cqName, int expectedEvents, int createEvents, int updateEvents)
public void executeClientQueries(VM vm, String poolName, String queryStr)
public void printResults(com.gemstone.gemfire.cache.query.SelectResults results,
String message)
protected void configAndStartBridgeServer()
protected void configAndStartBridgeServer(boolean isPr,
boolean isAccessor)
protected void configAndStartBridgeServer(boolean isPr,
boolean isAccessor,
boolean asyncIndex,
com.gemstone.gemfire.compression.Compressor compressor)
protected void startBridgeServer(int port,
boolean notifyBySubscription)
throws IOException
IOExceptionprotected void stopBridgeServer(com.gemstone.gemfire.cache.Cache cache)
public void closeClient(VM client)
public void testPdxInstanceNoFieldNoMethod()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testDefaultValuesInPdxFieldTypes()
throws Exception
FieldType are used.
This happens when one version of Pdx object does not have a field but other
version has.Exceptionprotected void startCacheServer(int port,
boolean notifyBySubscription)
throws IOException
IOExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.