public class PrCqUsingPoolDUnitTest extends CacheTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
java.lang.String[] |
cqs |
static java.lang.String |
KEY |
static java.lang.String[] |
regions |
cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
PrCqUsingPoolDUnitTest(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
createClient(VM client,
int[] serverPorts,
java.lang.String serverHost,
java.lang.String redundancyLevel) |
void |
createClient(VM client,
int serverPort,
java.lang.String serverHost) |
void |
createCQ(VM vm,
java.lang.String poolName,
java.lang.String cqName,
java.lang.String queryStr) |
void |
createPool(VM vm,
java.lang.String poolName,
java.lang.String[] servers,
int[] ports) |
void |
createPool(VM vm,
java.lang.String poolName,
java.lang.String[] servers,
int[] ports,
java.lang.String redundancyLevel) |
void |
createPool(VM vm,
java.lang.String poolName,
java.lang.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,
java.lang.String regionName,
int size) |
void |
createValuesPutall(VM vm,
java.lang.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 java.lang.String[] regions
public static final java.lang.String KEY
public final java.lang.String[] cqs
public void testCQAndPartitionedRegion()
throws java.lang.Exception
java.lang.Exceptionpublic void testPartitionedCqOnAccessorBridgeServer()
throws java.lang.Exception
java.lang.Exceptionpublic void testPartitionedCqOnSingleBridgeServer()
throws java.lang.Exception
java.lang.Exceptionpublic void testPRCqOnSingleBridgeServerUpdatesOriginatingAtAccessor()
throws java.lang.Exception
java.lang.Exceptionpublic void testPRCqWithInvalidatesOnBridgeServer()
public void testPRCqWithInvalidatesOnAccessorBridgeServer()
throws java.lang.Exception
java.lang.Exceptionpublic void testPRCqWithUpdatesFromClients()
throws java.lang.Exception
java.lang.Exceptionpublic void testPRCqWithMultipleRegionsOnServer()
throws java.lang.Exception
java.lang.Exceptionpublic void testPRWithCQsAndProfileUpdates()
throws java.lang.Exception
java.lang.Exceptionpublic void testEventsDuringQueryExecution()
throws java.lang.Exception
java.lang.Exceptionpublic void testCQsWithPutalls()
throws java.lang.Exception
java.lang.Exceptionpublic void testCQsWithPutallsValidateStats()
throws java.lang.Exception
java.lang.Exceptionpublic void testCQsWithPutallsWithTx()
throws java.lang.Exception
java.lang.Exceptionpublic void testCQsWithPutallsWithTxValidateStats()
throws java.lang.Exception
java.lang.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 java.io.IOException
java.io.IOExceptionpublic void createPool(VM vm, java.lang.String poolName, java.lang.String server, int port)
public void createPool(VM vm, java.lang.String poolName, java.lang.String[] servers, int[] ports)
public void createPool(VM vm, java.lang.String poolName, java.lang.String[] servers, int[] ports, java.lang.String redundancyLevel)
public void createClient(VM client, int serverPort, java.lang.String serverHost)
public void createClient(VM client, int[] serverPorts, java.lang.String serverHost, java.lang.String redundancyLevel)
public void createCQ(VM vm, java.lang.String poolName, java.lang.String cqName, java.lang.String queryStr)
public void createValues(VM vm, java.lang.String regionName, int size)
public void createValuesPutall(VM vm, java.lang.String regionName, int size)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.