public class FunctionServiceTest extends ParRegColocation
| Modifier and Type | Field and Description |
|---|---|
protected static int |
ARGS_FIRST_OP |
protected static int |
ARGS_LAST_OP |
protected static int |
BLOCKING_FIRST_OP |
protected static int |
BLOCKING_LAST_OP |
protected static int |
COLLECTOR_FIRST_OP |
protected static int |
COLLECTOR_LAST_OP |
protected static int |
DATASET_FIRST_OP |
protected static int |
DATASET_LAST_OP |
protected static int |
FUNC_ALLNODES |
protected static int |
FUNC_ASYNCH |
protected static int |
FUNC_HA_FIRST_OP |
protected static int |
FUNC_HA_LAST_OP |
protected static int |
FUNC_MULTIPLEKEY |
protected static int |
FUNC_SINGLEKEY |
protected static int |
FUNC_SYNCH |
protected static int |
FUNC_WITH_ARGS |
protected static int |
FUNC_WITH_CUSTOM_COLLECTOR |
protected static int |
FUNC_WITH_MULTIPLE_DATASET |
protected static int |
FUNC_WITH_SINGLE_DATASET |
protected static int |
FUNC_WITHOUT_ARGS |
protected static int |
FUNC_WITHOUT_COLLECTOR |
protected static int[] |
funcArgs |
protected static int[] |
funcDataSets |
protected static int[] |
funcKeys |
protected static int[] |
funcResultCollectors |
protected static int[] |
funcSynch |
protected static int |
KEYS_FIRST_OP |
protected static int |
KEYS_LAST_OP |
ADD_NEW_KEY, bridgeRegionDescriptNames, DataStoreVmStr, DESTROY, destroyThreshold, ENTRIES_TO_PUT, FIRST_OP, GET, INVALIDATE, isBridgeClient, isBridgeConfiguration, isGatewaySenderConfiguration, KEY_LIST, keyIntervals, LAST_OP, LOCAL_DESTROY, LOCAL_INVALIDATE, LOG_INTERVAL_MILLIS, numNewKeys, operations, parRegUtilInstance, PR_TOTAL_BUCKETS, PR_TOTAL_DATASTORES, QUERY, randomValues, regionDescriptNames, sc, sleepMSAfterOps, testInstance, theCache, totalNumKeys, UPDATE_EXISTING_KEY, VmIDStr| Constructor and Description |
|---|
FunctionServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addNewKeyFunction()
Add a new key to REGION_NAME.
|
protected void |
addNewKeyFunction(com.gemstone.gemfire.cache.Region aRegion,
Object key) |
protected boolean |
destroyFunction()
Destroy key to REGION_NAME.
|
void |
destroyFunction(com.gemstone.gemfire.cache.Region aRegion,
Object key) |
static void |
doFireAndForgetMemberExecutions()
Task to do Fire and forget member execution
|
static void |
doFireAndForgetRegionExecutions()
Task to do fire and forget region function executions.
|
static void |
doFireAndForgetServerExecutions()
Task to do fire and forget server executions by client
|
void |
doFunctionExecution(BitSet availableOps)
Do function execution to do operations on the REGION_NAME's keys using
keyIntervals to specify which keys get which operations.
|
void |
doOnRegionsExecutions()
Task for doing onRegions() executions
|
protected void |
doOnRegionsExecutions(HashSet regionSet)
Task to execute onRegions functions
|
void |
doOnRegionsExecutionsHA()
Task for doing onRegions() executions with HA scenario
|
protected void |
doOnRegionsExecutionsHA(HashSet regionSet)
Task to execute onRegions functions
|
static void |
doRandomFunctionExecutions(com.gemstone.gemfire.cache.Region aRegion)
Task to execute Random region Functions
|
static void |
doRandomFunctions(HashSet keySet,
String args,
com.gemstone.gemfire.cache.execute.ResultCollector[] resultCollectors,
com.gemstone.gemfire.cache.execute.Execution[] dataSets)
Task that does random function execution with variable keyset,
args, result collectors and data sets
|
static ArrayList |
executeAndReturnResults(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc)
Task used to execute the different functions on the dataset with the
result collector.
|
void |
executeFunctionAllBuckets(com.gemstone.gemfire.cache.Region aRegion)
Task to execute functions on all keys on all buckets
|
void |
executeFunctionAllKeys(com.gemstone.gemfire.cache.Region aRegion)
Task to execute functions on all keys
|
void |
executeFunctionFilterWithLocalDataSet(com.gemstone.gemfire.cache.Region aRegion)
Task to execute functions where it is tested whether the function execution
happen on only those buckets for which filter is passed(on local data set).
|
void |
executeFunctionMultipleNodes(com.gemstone.gemfire.cache.Region aRegion)
Task to execute functions on all keys on multiple nodes and validates that
the execution happens only on one node
|
String |
getArgs(BitSet argsOptions) |
com.gemstone.gemfire.cache.execute.Execution[] |
getDataSets(BitSet dataSetOptions,
com.gemstone.gemfire.cache.Region aRegion)
Method to get different data sets for the random function execution
|
protected boolean |
getFunction()
get the value of key in REGION_NAME.
|
void |
getFunction(com.gemstone.gemfire.cache.Region aRegion,
Object key) |
HashSet |
getKeySet(BitSet keyOptions,
Set keys)
Method to get random key set for the random function execution
tests
|
com.gemstone.gemfire.cache.execute.ResultCollector[] |
getResultCollectors(BitSet resultCollectorOptions)
Method to get different result collectors for the random function execution
|
static Set |
getSomeKeys(com.gemstone.gemfire.cache.Region aRegion)
Task to get the keys from the region that is to be used for the function execution
on the region
|
static void |
HydraTask_doFireAndForgetExecutions()
Hydra task to execute fire and forget inline functions
|
static void |
HydraTask_doFunctionExecution_HA()
Hydra task to execute region functions, then stop scheduling (For HA).
|
static void |
HydraTask_doFunctionExecution()
Hydra task to execute region functions, then stop scheduling.
|
static void |
HydraTask_doOnRegionsExecutions()
Hydra task to execute onRegions execution
|
static void |
HydraTask_doOnRegionsExecutionsHA()
Hydra task to execute onRegions execution
|
static void |
HydraTask_doRandomFunctionExecutions()
Hydra task to execute Random region Functions
|
static void |
HydraTask_doRandomMemberFunctionExecutions()
Hydra task to execute member functions (not on server group)
|
static void |
HydraTask_doRandomMemberFunctionExecutionsWithServerGroup()
Hydra task to execute member functions (on server group as well)
|
static void |
HydraTask_executeFunctionAllKeys()
Hydra task for executing functions on all keys
|
static void |
HydraTask_HA_accessorInitialize()
Hydra task for initializing an accessor
|
static void |
HydraTask_HA_dataStoreInitialize()
Hydra task for initializing a data store
|
static void |
HydraTask_HA_initDataStoreAndServerGroups()
Hydra task for initializing a data store
|
static void |
HydraTask_HA_initDataStoreWithServerGroups()
Hydra task for initializing a data store based on hydra.BridgePrms-groups
|
static void |
HydraTask_initialize()
Initialize the single instance of this test class but not a region.
|
static void |
HydraTask_initRegisterFunction()
INITTASK registering function for random function execution test
|
static void |
HydraTask_p2p_accessorInitialize()
Hydra task for initializing an accessor in peer to peer configuration
|
static void |
HydraTask_p2p_dataStoreInitialize()
Hydra task for initializing a data store in peer to peer configuration
|
static void |
HydraTask_registerFunctions()
Task for the data stores to register functions
|
static void |
HydraTask_storeServerDsToBB()
Store server distributed system name in blackboard for client's future
reference.
|
static void |
HydraTask_varifyMetaDataRefreshCount()
Hydra task to verify metaDataRefreshCount.
|
static void |
HydraTask_verifyClientPRMetadata()
Hydra task to verify client PR meta data
|
protected boolean |
invalidateFunction()
To invalidate a key to REGION_NAME.
|
void |
invalidateFunction(com.gemstone.gemfire.cache.Region aRegion,
Object key) |
protected boolean |
localDestroyFunction()
Locally destroy key to REGION_NAME.
|
void |
localDestroyFunction(com.gemstone.gemfire.cache.Region aRegion,
Object key) |
protected boolean |
localInvalidateFunction()
To locally invalidate a key to REGION_NAME.
|
void |
localInvalidateFunction(com.gemstone.gemfire.cache.Region aRegion,
Object key) |
static void |
memberExecutionArgsCollector()
Task to execute function on member(peer to peer) with args and with result collector.
|
static void |
memberExecutionArgsWOCollector()
Task to execute function on member(peer to peer) with args but without result collector.
|
static void |
memberExecutionWOArgsCollector()
Task to execute function on member(peer to peer) without args but with result collector.
|
static void |
memberExecutionWOArgsWOCollector()
Task to execute function on member(peer to peer) without args and without result collector.
|
protected boolean |
queryFunction()
Task is doing a query on the key (executed on the same keys of get ops)
|
void |
queryFunction(com.gemstone.gemfire.cache.Region aRegion,
Object key) |
static com.gemstone.gemfire.cache.execute.ResultCollector |
randomFunctionExecution(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.FunctionAdapter function)
Task to execute functions
|
void |
registerFunctions()
Task that registers functions
|
static void |
serverExecutionArgsCollector()
Task to execute function on server(by client) without args and without result collector.
|
static void |
serverExecutionArgsWOCollector()
Task to execute function on server(by client) with args but without result
collector.
|
static void |
serverExecutionOnServerGroup()
Task to execute function on a specific server group (by client).
|
static void |
serverExecutionWOArgsCollector()
Task to execute function on server(by client) without args but with result
collector.
|
static void |
serverExecutionWOArgsWOCollector()
Task to execute function on server(by client) without args and without result collector.
|
protected boolean |
updateExistingKeyFunction()
Update existing key in REGION_NAME.
|
void |
updateFunction(com.gemstone.gemfire.cache.Region aRegion,
Object key) |
static void |
validateFunctionResults(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String function)
Task that validates the results of each result collector result for
the particular function
|
static void |
validatePrFuncNoFilterNoArgsNoRC(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String scenario) |
static void |
validatePrFuncNoFilterNoArgsWithRC(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String scenario) |
static void |
validatePrFuncNoFilterWithArgsNoRC(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String scenario) |
static void |
validatePrFuncNoFilterWithArgsWithRC(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String scenario) |
static void |
validatePrFunction(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc) |
static void |
validatePrFuncWithFilterNoArgsNoRC(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String scenario) |
static void |
validatePrFuncWithFilterNoArgsWithRC(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String scenario) |
static void |
validatePrFuncWithFilterWithArgsNoRC(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String scenario) |
static void |
validatePrFuncWithFilterWithArgsWithRC(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String scenario) |
static void |
validateRandomFunctions(HashMap map)
Task used to validate the results of the random function results
passed as result collectors through the map
|
static void |
validateRegionCheckFunction(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc) |
static void |
validateRegNoFilterWithArgsNoRC(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String scenario) |
static void |
validateRegNoFilterWithArgsWithRC(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String scenario) |
static void |
validateRegWithFilterWithArgsNoRC(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String scenario) |
static void |
validateRegWithFilterWithArgsWithRC(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String scenario) |
static void |
validateResults(com.gemstone.gemfire.cache.execute.Execution dataSet,
ArrayList list)
Task that validates the results of each data set function results
passed through the list of result collectors.
|
addNewKey, addNewKey, checkContainsKey, checkContainsValueForKey, checkUpdatedValue, checkValue, createRegions, createRegionsWithXml, destroy, destroy, doOps, get, get, getDataStoreVms, getOp, getValueToAdd, HydraTask_disconnect, HydraTask_doOps, HydraTask_incPR_TOTAL_DATASTORES, HydraTask_killVms, HydraTask_loadRegions, HydraTask_logLocalSize, HydraTask_putKeySetInBB, HydraTask_registerInterest, HydraTask_stopStartVms, HydraTask_verifyBucketCopies, HydraTask_verifyColocatedRegions, HydraTask_verifyCoLocation, HydraTask_verifyCustomPartitioning, HydraTask_verifyPrimaries, HydraTask_verifyPrimaryColocation, HydraTask_verifyPRListenerInvocation, HydraTask_verifyPRMetaData, HydraTask_verifyRegionContents, HydraTask_verifyRegionSize, HydraTask_waitForEventsReceival, initialize, initialize, invalidate, invalidate, loadRegions, localDestroy, localDestroy, localInvalidate, localInvalidate, putKeySetInBB, recordFailedOps, StartTask_initialize, stopStartVms, Task_verifyRegionSize, updateExistingKey, updateExistingKey, verifyBucketCoLocation, verifyBucketCopies, verifyCustomPartition, verifyCustomPartitioning, verifyPrimaries, verifyPrimaryBucketCoLocation, verifyPrimaryColocation, verifyPRListenerInvocation, verifyPRListenerInvocation, verifyPRMetaData, verifyRegionContents, verifyRegionSize, verifyUniqueBucketForCustomPartioning, waitForEventsReceivalprotected static final int FUNC_HA_FIRST_OP
protected static final int FUNC_HA_LAST_OP
protected static final int FUNC_SINGLEKEY
protected static final int FUNC_MULTIPLEKEY
protected static final int FUNC_ALLNODES
protected static final int[] funcKeys
protected static final int KEYS_FIRST_OP
protected static final int KEYS_LAST_OP
protected static final int FUNC_WITHOUT_ARGS
protected static final int FUNC_WITH_ARGS
protected static final int ARGS_FIRST_OP
protected static final int ARGS_LAST_OP
protected static final int[] funcArgs
protected static final int FUNC_WITHOUT_COLLECTOR
protected static final int FUNC_WITH_CUSTOM_COLLECTOR
protected static final int COLLECTOR_FIRST_OP
protected static final int COLLECTOR_LAST_OP
protected static final int[] funcResultCollectors
protected static final int FUNC_WITH_SINGLE_DATASET
protected static final int FUNC_WITH_MULTIPLE_DATASET
protected static final int DATASET_FIRST_OP
protected static final int DATASET_LAST_OP
protected static final int[] funcDataSets
protected static final int FUNC_SYNCH
protected static final int FUNC_ASYNCH
protected static final int BLOCKING_FIRST_OP
protected static final int BLOCKING_LAST_OP
protected static final int[] funcSynch
public static void HydraTask_initialize()
public static void HydraTask_HA_dataStoreInitialize()
public static void HydraTask_HA_initDataStoreAndServerGroups()
public static void HydraTask_HA_initDataStoreWithServerGroups()
public static void HydraTask_p2p_dataStoreInitialize()
public static void HydraTask_p2p_accessorInitialize()
public static void HydraTask_HA_accessorInitialize()
public static void HydraTask_registerFunctions()
public static void HydraTask_initRegisterFunction()
public static void HydraTask_doFunctionExecution()
public static void HydraTask_doFunctionExecution_HA()
public static void HydraTask_doFireAndForgetExecutions()
public static void HydraTask_doOnRegionsExecutions()
public static void HydraTask_doOnRegionsExecutionsHA()
public static void HydraTask_doRandomMemberFunctionExecutionsWithServerGroup()
public static void HydraTask_doRandomMemberFunctionExecutions()
public static void HydraTask_doRandomFunctionExecutions()
public static void HydraTask_executeFunctionAllKeys()
public static void doRandomFunctionExecutions(com.gemstone.gemfire.cache.Region aRegion)
public static Set getSomeKeys(com.gemstone.gemfire.cache.Region aRegion)
public void registerFunctions()
public static void doRandomFunctions(HashSet keySet, String args, com.gemstone.gemfire.cache.execute.ResultCollector[] resultCollectors, com.gemstone.gemfire.cache.execute.Execution[] dataSets)
public static void memberExecutionWOArgsWOCollector()
public static void memberExecutionArgsWOCollector()
public static void memberExecutionWOArgsCollector()
public static void memberExecutionArgsCollector()
public static void serverExecutionArgsCollector()
public static void serverExecutionWOArgsCollector()
public static void serverExecutionArgsWOCollector()
public static void serverExecutionWOArgsWOCollector()
public static void serverExecutionOnServerGroup()
public static void validateRandomFunctions(HashMap map)
public static void validateResults(com.gemstone.gemfire.cache.execute.Execution dataSet,
ArrayList list)
public static void validateFunctionResults(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String function)
public static void validatePrFunction(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc)
public static void validatePrFuncNoFilterWithArgsWithRC(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String scenario)
public static void validatePrFuncNoFilterNoArgsWithRC(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String scenario)
public static void validatePrFuncWithFilterNoArgsWithRC(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String scenario)
public static void validatePrFuncWithFilterWithArgsWithRC(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String scenario)
public static void validatePrFuncNoFilterWithArgsNoRC(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String scenario)
public static void validatePrFuncWithFilterWithArgsNoRC(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String scenario)
public static void validatePrFuncNoFilterNoArgsNoRC(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String scenario)
public static void validatePrFuncWithFilterNoArgsNoRC(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String scenario)
public static void validateRegionCheckFunction(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc)
public static void validateRegNoFilterWithArgsNoRC(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String scenario)
public static void validateRegWithFilterWithArgsNoRC(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String scenario)
public static void validateRegWithFilterWithArgsWithRC(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String scenario)
public static void validateRegNoFilterWithArgsWithRC(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.ResultCollector rc,
String scenario)
public static ArrayList executeAndReturnResults(com.gemstone.gemfire.cache.execute.Execution dataSet, com.gemstone.gemfire.cache.execute.ResultCollector rc)
public static com.gemstone.gemfire.cache.execute.ResultCollector randomFunctionExecution(com.gemstone.gemfire.cache.execute.Execution dataSet,
com.gemstone.gemfire.cache.execute.FunctionAdapter function)
public com.gemstone.gemfire.cache.execute.Execution[] getDataSets(BitSet dataSetOptions, com.gemstone.gemfire.cache.Region aRegion)
public com.gemstone.gemfire.cache.execute.ResultCollector[] getResultCollectors(BitSet resultCollectorOptions)
public HashSet getKeySet(BitSet keyOptions, Set keys)
public static void doFireAndForgetMemberExecutions()
public static void doFireAndForgetServerExecutions()
public static void doFireAndForgetRegionExecutions()
public void doOnRegionsExecutions()
public void doOnRegionsExecutionsHA()
public void doFunctionExecution(BitSet availableOps)
availableOps - -
Bits which are true correspond to the operations that should
be executed.protected boolean addNewKeyFunction()
protected void addNewKeyFunction(com.gemstone.gemfire.cache.Region aRegion,
Object key)
protected boolean invalidateFunction()
public void invalidateFunction(com.gemstone.gemfire.cache.Region aRegion,
Object key)
protected boolean localInvalidateFunction()
public void localInvalidateFunction(com.gemstone.gemfire.cache.Region aRegion,
Object key)
protected boolean destroyFunction()
public void destroyFunction(com.gemstone.gemfire.cache.Region aRegion,
Object key)
protected boolean localDestroyFunction()
public void localDestroyFunction(com.gemstone.gemfire.cache.Region aRegion,
Object key)
protected boolean updateExistingKeyFunction()
public void updateFunction(com.gemstone.gemfire.cache.Region aRegion,
Object key)
protected boolean getFunction()
public void getFunction(com.gemstone.gemfire.cache.Region aRegion,
Object key)
protected boolean queryFunction()
public void queryFunction(com.gemstone.gemfire.cache.Region aRegion,
Object key)
public void executeFunctionAllKeys(com.gemstone.gemfire.cache.Region aRegion)
public void executeFunctionMultipleNodes(com.gemstone.gemfire.cache.Region aRegion)
public void executeFunctionAllBuckets(com.gemstone.gemfire.cache.Region aRegion)
public void executeFunctionFilterWithLocalDataSet(com.gemstone.gemfire.cache.Region aRegion)
protected void doOnRegionsExecutions(HashSet regionSet)
regionSet - protected void doOnRegionsExecutionsHA(HashSet regionSet)
regionSet - public static void HydraTask_varifyMetaDataRefreshCount()
public static void HydraTask_verifyClientPRMetadata()
public static void HydraTask_storeServerDsToBB()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.