public class KeyCallbackResolverTest extends FixedPartitioningTest
ALL_BUCKETS, DATASTORE_SEQUENCE_ID, dataStoreSequenceId, PRIMARY_BUCKETS, PRIMARY_PARTITIONS, rootRegion, SECONDARY_PARTITIONSARGS_FIRST_OP, ARGS_LAST_OP, BLOCKING_FIRST_OP, BLOCKING_LAST_OP, COLLECTOR_FIRST_OP, COLLECTOR_LAST_OP, DATASET_FIRST_OP, DATASET_LAST_OP, FUNC_ALLNODES, FUNC_ASYNCH, FUNC_HA_FIRST_OP, FUNC_HA_LAST_OP, FUNC_MULTIPLEKEY, FUNC_SINGLEKEY, FUNC_SYNCH, FUNC_WITH_ARGS, FUNC_WITH_CUSTOM_COLLECTOR, FUNC_WITH_MULTIPLE_DATASET, FUNC_WITH_SINGLE_DATASET, FUNC_WITHOUT_ARGS, FUNC_WITHOUT_COLLECTOR, funcArgs, funcDataSets, funcKeys, funcResultCollectors, funcSynch, KEYS_FIRST_OP, KEYS_LAST_OPADD_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 |
|---|
KeyCallbackResolverTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addNewKey(com.gemstone.gemfire.cache.Region aRegion,
Object keyName) |
protected void |
checkUpdatedValue(Object key,
Object value)
Check that the value of the given key is expected as an updated value.
|
protected void |
checkValue(Object key,
Object value)
Check that the value of the given key is expected for this test.
|
void |
destroy(com.gemstone.gemfire.cache.Region aRegion,
Object keyName) |
void |
executeWithCallBackFilter(com.gemstone.gemfire.cache.Region aRegion)
Method to do onRegion function executions with filter when callbackArg
implements FixedPartitionResolver
|
void |
get(com.gemstone.gemfire.cache.Region aRegion,
Object keyName) |
Object |
getCallBackWrapper(Object keyName)
Return the key wrapped in the wrapper to be used as region key in the test
|
Object |
getKeyWrapper(Object keyName)
Return the key wrapped in the wrapper to be used as region key in the test
|
static void |
HydraTask_executeFunctions()
Hydra task to do onRegion function executions with and without filter
|
static void |
HydraTask_HA_accessorInitialize()
Hydra task for initializing an accessor in HA tests
|
static void |
HydraTask_HA_dataStoreInitialize()
Hydra task for initializing a data store in HA tests
|
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
|
void |
invalidate(com.gemstone.gemfire.cache.Region aRegion,
Object keyName) |
void |
loadRegion(Object key,
Object value,
Month callBackArg)
Task to load region based on whether key or callback implements the
resolver
|
protected void |
loadRegions()
Task to load regions
|
void |
localDestroy(com.gemstone.gemfire.cache.Region aRegion,
Object keyName) |
void |
localInvalidate(com.gemstone.gemfire.cache.Region aRegion,
Object keyName) |
void |
updateExistingKey(com.gemstone.gemfire.cache.Region aRegion,
Object keyName) |
void |
verifyRegionContents(com.gemstone.gemfire.cache.Region aRegion)
Verify the contents of the region, taking into account the keys that were
destroyed, invalidted, etc (as specified in keyIntervals) Throw an error of
any problems are detected.
|
addNewKey, addNewKeyFunction, createCacheFromXml, createXmlFile, destroy, destroyFunction, doOnRegionFireAndForgetExecutions, doOnRegionsExecutions, executeFunctionPrimaryBucketsAllBuckets, executeFunctionPrimaryBucketsMultipleNodes, executeFunctionPrimaryBucketsSingleNode, get, getFunction, getPartitionNames, getPrimaryOwner, getTestRegions, HydraTask_doFireAndForgetExecutions, HydraTask_doOps, HydraTask_doRandomFuncExec, HydraTask_executeFunctionAllKeys, HydraTask_loadRegions, HydraTask_loadRegionsWithFuncExec, HydraTask_logLocalSize, HydraTask_onRegionFunctionPrimaryBuckets, HydraTask_putKeySetInBB, HydraTask_recycleClientAndValidateBehavior, HydraTask_registerInterest, HydraTask_stopStartVms, HydraTask_updateBBWithPartitionInfo, HydraTask_verifyBucketCopies, HydraTask_verifyFixedPartitioning, HydraTask_verifyFPRCoLocation, HydraTask_verifyOverflowToDisk, HydraTask_verifyPrimaries, HydraTask_verifyPRMetaData, HydraTask_verifyRebalanceBehavior, HydraTask_verifyRegionContents, HydraTask_verifyRegionSize, initialize, invalidate, invalidateFunction, isMemberEligibleToHostPrimary, loadRegionsWithFuncExec, localDestroy, localDestroyFunction, localInvalidate, localInvalidateFunction, printVmParitionInfo, queryFunction, recycleClientAndValidateBehavior, registerFunctions, setDataStoreSequenceId, StartTask_initialize, stopStartVms, Task_verifyRegionSize, updateBBWithPartitionInfo, updateExistingKey, updateExistingKeyFunction, verifyCoLocation, verifyFixedPartitioning, verifyFPRsDontRebalance, verifyNormalPRsRebalance, verifyOverflowToDisk, verifyPartitionNumBuckets, verifyPrimaryFixedPartitioning, verifyRebalanceBehavior, verifyRedundantCopiesSatisfied, verifySecondaryFixedPartitioningaddNewKeyFunction, destroyFunction, doFireAndForgetMemberExecutions, doFireAndForgetRegionExecutions, doFireAndForgetServerExecutions, doFunctionExecution, doOnRegionsExecutions, doOnRegionsExecutionsHA, doOnRegionsExecutionsHA, doRandomFunctionExecutions, doRandomFunctions, executeAndReturnResults, executeFunctionAllBuckets, executeFunctionAllKeys, executeFunctionFilterWithLocalDataSet, executeFunctionMultipleNodes, getArgs, getDataSets, getFunction, getKeySet, getResultCollectors, getSomeKeys, HydraTask_doFunctionExecution_HA, HydraTask_doFunctionExecution, HydraTask_doOnRegionsExecutions, HydraTask_doOnRegionsExecutionsHA, HydraTask_doRandomFunctionExecutions, HydraTask_doRandomMemberFunctionExecutions, HydraTask_doRandomMemberFunctionExecutionsWithServerGroup, HydraTask_HA_initDataStoreAndServerGroups, HydraTask_HA_initDataStoreWithServerGroups, HydraTask_initialize, HydraTask_initRegisterFunction, HydraTask_registerFunctions, HydraTask_storeServerDsToBB, HydraTask_varifyMetaDataRefreshCount, HydraTask_verifyClientPRMetadata, invalidateFunction, localDestroyFunction, localInvalidateFunction, memberExecutionArgsCollector, memberExecutionArgsWOCollector, memberExecutionWOArgsCollector, memberExecutionWOArgsWOCollector, queryFunction, randomFunctionExecution, serverExecutionArgsCollector, serverExecutionArgsWOCollector, serverExecutionOnServerGroup, serverExecutionWOArgsCollector, serverExecutionWOArgsWOCollector, updateFunction, validateFunctionResults, validatePrFuncNoFilterNoArgsNoRC, validatePrFuncNoFilterNoArgsWithRC, validatePrFuncNoFilterWithArgsNoRC, validatePrFuncNoFilterWithArgsWithRC, validatePrFunction, validatePrFuncWithFilterNoArgsNoRC, validatePrFuncWithFilterNoArgsWithRC, validatePrFuncWithFilterWithArgsNoRC, validatePrFuncWithFilterWithArgsWithRC, validateRandomFunctions, validateRegionCheckFunction, validateRegNoFilterWithArgsNoRC, validateRegNoFilterWithArgsWithRC, validateRegWithFilterWithArgsNoRC, validateRegWithFilterWithArgsWithRC, validateResultscheckContainsKey, checkContainsValueForKey, createRegions, createRegionsWithXml, doOps, getDataStoreVms, getOp, getValueToAdd, HydraTask_disconnect, HydraTask_incPR_TOTAL_DATASTORES, HydraTask_killVms, HydraTask_verifyColocatedRegions, HydraTask_verifyCoLocation, HydraTask_verifyCustomPartitioning, HydraTask_verifyPrimaryColocation, HydraTask_verifyPRListenerInvocation, HydraTask_waitForEventsReceival, initialize, putKeySetInBB, recordFailedOps, verifyBucketCoLocation, verifyBucketCopies, verifyCustomPartition, verifyCustomPartitioning, verifyPrimaries, verifyPrimaryBucketCoLocation, verifyPrimaryColocation, verifyPRListenerInvocation, verifyPRListenerInvocation, verifyPRMetaData, verifyRegionSize, verifyUniqueBucketForCustomPartioning, waitForEventsReceivalpublic static void HydraTask_p2p_dataStoreInitialize()
public static void HydraTask_p2p_accessorInitialize()
public static void HydraTask_HA_dataStoreInitialize()
public static void HydraTask_HA_accessorInitialize()
public static void HydraTask_executeFunctions()
protected void loadRegions()
loadRegions in class FixedPartitioningTestpublic void loadRegion(Object key, Object value, Month callBackArg)
key - value - callBackArg - public Object getKeyWrapper(Object keyName)
keyName - public Object getCallBackWrapper(Object keyName)
keyName - public void executeWithCallBackFilter(com.gemstone.gemfire.cache.Region aRegion)
aRegion - protected void addNewKey(com.gemstone.gemfire.cache.Region aRegion,
Object keyName)
addNewKey in class ParRegColocationpublic void invalidate(com.gemstone.gemfire.cache.Region aRegion,
Object keyName)
invalidate in class ParRegColocationpublic void destroy(com.gemstone.gemfire.cache.Region aRegion,
Object keyName)
destroy in class ParRegColocationpublic void updateExistingKey(com.gemstone.gemfire.cache.Region aRegion,
Object keyName)
updateExistingKey in class ParRegColocationpublic void get(com.gemstone.gemfire.cache.Region aRegion,
Object keyName)
get in class ParRegColocationpublic void localInvalidate(com.gemstone.gemfire.cache.Region aRegion,
Object keyName)
localInvalidate in class ParRegColocationpublic void localDestroy(com.gemstone.gemfire.cache.Region aRegion,
Object keyName)
localDestroy in class ParRegColocationpublic void verifyRegionContents(com.gemstone.gemfire.cache.Region aRegion)
verifyRegionContents in class ParRegColocationprotected void checkUpdatedValue(Object key, Object value)
checkUpdatedValue in class ParRegColocationkey - The key to check.value - The value for the key.logStr - Used if throwing an error due to an unexpected value.protected void checkValue(Object key, Object value)
checkValue in class ParRegColocationkey - The key to check.value - The value for the key.logStr - Used if throwing an error due to an unexpected value.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.