public class PRFunctionExecutionDUnitTest extends PartitionedRegionDUnitTestCase
| Modifier and Type | Class and Description |
|---|---|
static class |
PRFunctionExecutionDUnitTest.TestFunctionException
Test function that only throws exception.
|
static class |
PRFunctionExecutionDUnitTest.TestResolver |
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2logPerTest, reconnect, system, testName| Constructor and Description |
|---|
PRFunctionExecutionDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
assertLocalEntrySet(Integer key,
Set entrySet) |
protected static void |
assertLocalKeySet(Integer key,
Set keySet) |
protected static void |
assertLocalValues(Integer value,
Collection values) |
static void |
bug41118() |
protected com.gemstone.gemfire.cache.RegionAttributes |
createColoRegionAttrs(int red,
int mem,
String coloRegion) |
static Object |
executeFunction() |
void |
testBug40714() |
void |
testBug41118()
This tests make sure that, in case of LonerDistributedSystem we dont get ClassCast Exception.
|
void |
testExecutionOnAllNodes_byInlineFunction()
Ensure that the execution of inline function is happening all the PR as a whole
|
void |
testExecutionOnAllNodes_byInstance()
Ensure that the execution is happening all the PR as a whole
|
void |
testExecutionOnAllNodes_byName()
Ensure that the execution is happening all the PR as a whole
|
void |
testExecutionOnAllNodes_LocalReadPR()
Ensure that the execution is happening on all the PR as a whole
with LocalReadPR as LocalDataSet
|
void |
testExecutionOnMultiNodes_LocalReadPR()
Ensure that the execution is happening on all the PR as a whole
with LocalReadPR as LocalDataSet
|
void |
testFunctionExecution()
Test to validate that the function execution is successful on PR with Loner Distributed System
|
void |
testFunctionExecutionException_41779() |
void |
testHAFunctionExecution() |
void |
testLocalDataContext()
Assert the
RegionFunctionContext yields the proper objects and works
in concert with the associated PartitionedRegionUtil methods. |
void |
testLocalDataContextWithColocation()
Assert the
RegionFunctionContext yields the proper objects and works
in concert with the associated PartitionedRegionUtil methods when
there are colocated regions. |
void |
testLocalMultiKeyExecution_BucketMoved() |
void |
testLocalMultiKeyExecution_byInstance()
Test ability to execute a multi-key function by a local data store
|
void |
testLocalMultiKeyExecution_byName()
Test ability to execute a multi-key function by a local data store
ResultCollector = DefaultResultCollector
haveResult = true
|
void |
testLocalSingleKeyExecution_byName_FunctionInvocationTargetException()
Test local execution by a datastore Function throws the
FunctionInvocationTargetException.
|
void |
testMultiKeyExecutionOnASingleBucket_byInstance()
Ensure that the execution is limited to a single bucket put another way,
that the routing logic works correctly such that there is not extra
execution
|
void |
testMultiKeyExecutionOnASingleBucket_byName()
Ensure that the execution is limited to a single bucket put another way,
that the routing logic works correctly such that there is not extra
execution
|
void |
testRemoteMultiKeyExecution_BucketMoved() |
void |
testRemoteMultiKeyExecution_byInlineFunction()
Test multi-key remote execution of inline function by a pure accessor
ResultCollector = DefaultResultCollector
haveResults = true;
|
void |
testRemoteMultiKeyExecution_byInstance()
Test multi-key remote execution by a pure accessor which doesn't have the
function factory present.
|
void |
testRemoteMultiKeyExecution_byName()
Test multi-key remote execution by a pure accessor which doesn't have the
function factory present.
|
void |
testRemoteMultiKeyExecution_timeout()
Test multi-key remote execution by a pure accessor which doesn't have the
function factory present.
|
void |
testRemoteMultiKeyExecutionHA_CacheClose() |
void |
testRemoteMultiKeyExecutionHA_Disconnect() |
void |
testRemoteMultiKeyExecutionNoResult_byName()
Test multi-key remote execution by a pure accessor which doesn't have the
function factory present.
|
void |
testRemoteMultiKeyExecutionWithCollector_byName()
Test multi-key remote execution by a pure accessor which doesn't have the
function factory present.
|
void |
testRemoteMultiKeyExecutionWithCollectorNoResult_byName()
Test multi-key remote execution by a pure accessor which doesn't have the
function factory present.
|
void |
testRemoteMultipleKeyExecution_byName_FunctionInvocationTargetException()
Test remote execution by a pure accessor which doesn't have the function
factory present.Function throws the FunctionInvocationTargetException.
|
void |
testRemoteSingleKeyExecution_byInlineFunction()
Test remote execution of inline function by a pure accessor
|
void |
testRemoteSingleKeyExecution_byInstance()
Test remote execution by a pure accessor which doesn't have the function
factory present.
|
void |
testRemoteSingleKeyExecution_byName_FunctionInvocationTargetException()
Test remote execution by a pure accessor which doesn't have the function
factory present.Function throws the FunctionInvocationTargetException.
|
void |
testRemoteSingleKeyExecution_byName()
Test remote execution by a pure accessor which doesn't have the function
factory present.
|
caseSetUp, caseTearDown, createMultiplePartitionRegion, createMultiplePartitionRegion, createRegionAttrsForPR, destroyInMultiplePartitionRegion, destroyRegionInMultiplePartitionRegion, disconnectVM, getCreateMultiplePRregion, getInMultiplePartitionRegion, getRemovedOrDestroyedInMultiplePartitionRegion, invalidatesInMultiplePartitionRegion, putAfterDestroyInMultiplePartitionedRegion, putInMultiplePartitionRegion, resetVMLogLevel, setLogLevel, setVMInfoLogLevel, tearDown2, validateMultiplePartitionRegionaddExceptionTag1, 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 PRFunctionExecutionDUnitTest(String name)
public void testFunctionExecution()
throws Exception
Exceptionpublic void testRemoteSingleKeyExecution_byName()
throws Exception
Exceptionpublic void testLocalSingleKeyExecution_byName_FunctionInvocationTargetException()
throws Exception
Exceptionpublic void testRemoteSingleKeyExecution_byName_FunctionInvocationTargetException()
throws Exception
Exceptionpublic void testRemoteSingleKeyExecution_byInstance()
throws Exception
Exceptionpublic void testRemoteSingleKeyExecution_byInlineFunction()
throws Exception
Exceptionpublic void testRemoteMultiKeyExecution_byName()
throws Exception
Exceptionpublic void testRemoteMultiKeyExecution_BucketMoved()
throws Exception
Exceptionpublic void testLocalMultiKeyExecution_BucketMoved()
throws Exception
Exceptionpublic void testRemoteMultipleKeyExecution_byName_FunctionInvocationTargetException()
throws Exception
Exceptionpublic void testRemoteMultiKeyExecutionHA_CacheClose()
throws Exception
Exceptionpublic void testRemoteMultiKeyExecutionHA_Disconnect()
throws Exception
Exceptionpublic static Object executeFunction()
public void testRemoteMultiKeyExecution_byInlineFunction()
throws Exception
Exceptionpublic void testRemoteMultiKeyExecutionWithCollector_byName()
throws Exception
Exceptionpublic void testRemoteMultiKeyExecutionNoResult_byName()
throws Exception
Exceptionpublic void testRemoteMultiKeyExecution_timeout()
throws Exception
Exceptionpublic void testRemoteMultiKeyExecutionWithCollectorNoResult_byName()
throws Exception
Exceptionpublic void testRemoteMultiKeyExecution_byInstance()
throws Exception
Exceptionpublic void testLocalMultiKeyExecution_byName()
throws Exception
Exceptionpublic void testLocalMultiKeyExecution_byInstance()
throws Exception
Exceptionpublic void testMultiKeyExecutionOnASingleBucket_byName()
throws Exception
Exceptionpublic void testMultiKeyExecutionOnASingleBucket_byInstance()
throws Exception
Exceptionpublic void testExecutionOnAllNodes_byName()
throws Exception
Exceptionpublic void testExecutionOnAllNodes_byInstance()
throws Exception
Exceptionpublic void testExecutionOnAllNodes_byInlineFunction()
throws Exception
Exceptionpublic void testExecutionOnAllNodes_LocalReadPR()
throws Exception
Exceptionpublic void testExecutionOnMultiNodes_LocalReadPR()
throws Exception
Exceptionpublic void testLocalDataContext()
throws Exception
RegionFunctionContext yields the proper objects and works
in concert with the associated PartitionedRegionUtil methods.Exceptionpublic void testLocalDataContextWithColocation()
throws Exception
RegionFunctionContext yields the proper objects and works
in concert with the associated PartitionedRegionUtil methods when
there are colocated regions.Exceptionpublic void testBug41118()
public static void bug41118()
public void testFunctionExecutionException_41779()
throws Exception
Exceptionprotected static void assertLocalValues(Integer value, Collection values)
protected com.gemstone.gemfire.cache.RegionAttributes createColoRegionAttrs(int red,
int mem,
String coloRegion)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.