public class PrCqUsingPoolDUnitTest extends CacheTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
String[] |
cqs |
static String |
KEY |
static String[] |
regions |
cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
PrCqUsingPoolDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
createClient(VM client,
int[] serverPorts,
String serverHost,
String redundancyLevel) |
void |
createClient(VM client,
int serverPort,
String serverHost) |
void |
createCQ(VM vm,
String poolName,
String cqName,
String queryStr) |
void |
createPool(VM vm,
String poolName,
String[] servers,
int[] ports) |
void |
createPool(VM vm,
String poolName,
String[] servers,
int[] ports,
String redundancyLevel) |
void |
createPool(VM vm,
String poolName,
String server,
int port) |
void |
createServer(VM server)
create bridge server with default attributes for partitioned region.
|
void |
createServer(VM server,
boolean accessor)
create accessor vm if the given accessor parameter variable is true.
|
void |
createServer(VM server,
boolean accessor,
int redundantCopies)
create server with partitioned region with redundant copies.
|
void |
createServer(VM server,
int port,
boolean isAccessor,
int redundantCopies)
Create a bridge server with partitioned region.
|
void |
createValues(VM vm,
String regionName,
int size) |
void |
createValuesPutall(VM vm,
String regionName,
int size) |
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.
|
void |
testCQAndPartitionedRegion() |
void |
testCQsWithPutalls() |
void |
testCQsWithPutallsValidateStats() |
void |
testCQsWithPutallsWithTx() |
void |
testCQsWithPutallsWithTxValidateStats() |
void |
testEventsDuringQueryExecution()
Test for events created during the CQ query execution.
|
void |
testPartitionedCqOnAccessorBridgeServer()
test for registering cqs on a bridge server with local max memory zero.
|
void |
testPartitionedCqOnSingleBridgeServer()
test for registering cqs on single Bridge server hosting all the data.
|
void |
testPRCqOnSingleBridgeServerUpdatesOriginatingAtAccessor()
test for registering cqs on single Bridge server hosting all the data.
|
void |
testPRCqWithInvalidatesOnAccessorBridgeServer()
test cqs with invalidates on bridge server not hosting datastores.
|
void |
testPRCqWithInvalidatesOnBridgeServer()
test to check invalidates on bridge server hosting datastores as well.
|
void |
testPRCqWithMultipleRegionsOnServer()
test cqs on multiple partitioned region hosted by bridge servers.
|
void |
testPRCqWithUpdatesFromClients()
test cqs with create updates and destroys from client on bridge server
hosting datastores.
|
void |
testPRWithCQsAndProfileUpdates()
tests multiple cqs on partitioned region on bridge servers with profile update
for not requiring old values.
|
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, 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 static final String[] regions
public static final String KEY
public final String[] cqs
public PrCqUsingPoolDUnitTest(String name)
public void testCQAndPartitionedRegion()
throws Exception
Exceptionpublic void testPartitionedCqOnAccessorBridgeServer()
throws Exception
Exceptionpublic void testPartitionedCqOnSingleBridgeServer()
throws Exception
Exceptionpublic void testPRCqOnSingleBridgeServerUpdatesOriginatingAtAccessor()
throws Exception
Exceptionpublic void testPRCqWithInvalidatesOnBridgeServer()
public void testPRCqWithInvalidatesOnAccessorBridgeServer()
throws Exception
Exceptionpublic void testPRCqWithUpdatesFromClients()
throws Exception
Exceptionpublic void testPRCqWithMultipleRegionsOnServer()
throws Exception
Exceptionpublic void testPRWithCQsAndProfileUpdates()
throws Exception
Exceptionpublic void testEventsDuringQueryExecution()
throws Exception
Exceptionpublic void testCQsWithPutallsValidateStats()
throws Exception
Exceptionpublic void testCQsWithPutallsWithTxValidateStats()
throws Exception
Exceptionpublic void createServer(VM server)
public void createServer(VM server, boolean accessor)
server - VM to create bridge server.accessor - boolean if true creates an accessor bridge server.public void createServer(VM server, boolean accessor, int redundantCopies)
server - VM where to create the bridge server.accessor - boolean if true create partitioned region with local max memory zero.redundantCopies - number of redundant copies for a partitioned region.public void createServer(VM server, int port, boolean isAccessor, int redundantCopies)
server - VM where to create the bridge server.port - bridge server port.isAccessor - if true the under lying partitioned region will not host data on this vm.redundantCopies - number of redundant copies for the primary bucket.protected void startBridgeServer(int port,
boolean notifyBySubscription)
throws IOException
IOExceptionpublic void createPool(VM vm, String poolName, String[] servers, int[] ports, String redundancyLevel)
public void createClient(VM client, int[] serverPorts, String serverHost, String redundancyLevel)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.