public class ExecutionAndColocationTest extends KnownKeysTest
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DS_MEMBER_SET |
protected static String |
DS_SERVER_SET |
protected static String |
KEY_LIST |
protected static String |
PR_TOTAL_BUCKETS |
protected static String |
PR_TOTAL_DATASTORES |
DataStoreVmStr, diskFilesRecorded, distLockService, highAvailability, isBridgeConfiguration, isClientCache, isGatewayConfiguration, isGatewaySenderConfiguration, LOCK_NAME, LOCK_SERVICE_NAME, lockOperations, missingKeys, missingValues, parRegUtilInstance, verifyRegionContentsCompleted, verifyRegionContentsErrStr, verifyRegionContentsIndex, verifyRegionContentsSizeStr, verifyRegionSizeCompleted, verifyRegionSizeIndexADD_NEW_KEY, aRegion, createRegionDurationMS, DESTROY, FIRST_OP, GET, giiDurationMS, INVALIDATE, keyIntervals, LAST_OP, LOCAL_DESTROY, LOCAL_INVALIDATE, LOG_INTERVAL_MILLIS, numNewKeys, operations, PUTALL_NEW_KEY, randomValues, REGION_NAME, sc, sleepMSAfterOps, supportsConcurrentMap, testInstance, totalNumKeys, UPDATE_EXISTING_KEY| Constructor and Description |
|---|
ExecutionAndColocationTest() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addNewKeyFunction()
Add a new key to REGION_NAME.
|
protected boolean |
destroyFunction()
Destroy key to REGION_NAME.
|
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 |
executeFunctionAllBuckets()
Task to execute functions on all the buckets (No filter passed)
|
void |
executeFunctionAllKeys()
Task to execute functions on all keys
|
void |
executeFunctionMultipleNodes()
Task to execute functions on all keys on multiple nodes and validates that
the execution happens only on one node
|
void |
executeFunctionPrimaryBucketsAllBuckets()
Task to verify executeOnPrimaryBuckets in function execution (all buckets)
|
void |
executeFunctionPrimaryBucketsMultipleNodes()
Task to verify executeOnPrimaryBuckets in function execution (multiple
nodes)
|
void |
executeFunctionPrimaryBucketsSinlgeNode()
Task to verify executeOnPrimaryBuckets in function execution (Single node)
|
void |
executeMemberFunctionMemberArgs()
Task to verify execution with variable args for the members during function
execution
|
void |
executeRegionFunctionMemberArgs()
Task to verify execution with variable args for the members during function
execution
|
void |
executeServerFunctionMemberArgs()
Task to verify execution with variable args for the members during function
execution
|
protected boolean |
getFunction()
get the value of key in REGION_NAME.
|
static void |
HydraTask_accessorInitialize()
Initialize the single instance of this test class and an accessor
partitioned region.
|
static void |
HydraTask_dataStoreInitialize()
Initialize the single instance of this test class and a dataStore
partitioned region.
|
static void |
HydraTask_doFunctionExecution()
Hydra task to execute functions, then stop scheduling.
|
static void |
HydraTask_executeFunctionAllKeys()
Hydra task for executing functions on all keys
|
static void |
HydraTask_executeFunctionAllKeysHA()
Hydra task for executing functions on all keys for HA (so only on Region)
|
static void |
HydraTask_executeFunctionPrimaryBuckets()
Hydra task for verifying functions on primary buckets
|
static void |
HydraTask_HA_accessorInitialize() |
static void |
HydraTask_HA_dataStoreInitialize() |
static void |
HydraTask_initialize()
Initialize the single instance of this test class but not a region.
|
static void |
HydraTask_initializeWithAccessor()
Initialize the single instance of this test class but not a region.
|
static void |
HydraTask_initRegisterFunction()
For making the data stores do register function.
|
static void |
HydraTask_killVms()
Task for killing the vms
|
static void |
HydraTask_putKeySetInBB()
Task to put the PR key set in the BB so they can be used by the client vms
|
static void |
HydraTask_verifyCustomPartitioning()
Task to verify custom partitioning.
|
static void |
HydraTask_verifyOverflowToDisk()
Hydra task to verify PR overflow to disk
|
static void |
HydraTask_waitForEventsReceival() |
void |
initInstance(String regDescriptName)
Initialize this test instance
|
protected boolean |
invalidateFunction()
To invalidate a key to REGION_NAME.
|
static void |
killVms()
Task for HA peer to peer
|
protected boolean |
localDestroyFunction()
Locally destroy key in REGION_NAME.
|
protected boolean |
localInvalidateFunction()
To Locally invalidate a key to REGION_NAME.
|
protected boolean |
putAllNewKeyFunction()
Add a new key (using region.putAll(Map))to REGION_NAME.
|
void |
putKeySetInBB()
Task to put the key set in BB
|
void |
registerFunctions()
Task for the data stores to register functions.
|
protected boolean |
updateExistingKeyFunction()
Update existing key in REGION_NAME.
|
protected void |
verifyCustomPartition(Map map,
int bucketid) |
protected void |
verifyCustomPartitioning() |
protected void |
verifyOverflowToDisk()
Hydra task to verify PR overflow to disk
|
protected void |
verifyUniqueBucketForCustomPartioning(int bucketId)
Task to verify that there is only a single bucket id for a routing Object
|
void |
waitForEventsReceival() |
doOps, getDataStoreVms, HydraTask_createGatewaySenderIds, HydraTask_disconnect, HydraTask_doOps, HydraTask_doPrTxOps, HydraTask_loadRegion, HydraTask_logLocalSize, HydraTask_startGatewayHub, HydraTask_startNewWanComponents, HydraTask_stopStartVms, HydraTask_validatePR, HydraTask_verifyBucketCopiesBatched, HydraTask_verifyHDFSRegionContents, HydraTask_verifyHDFSRegionSize, HydraTask_verifyPrimaries, HydraTask_verifyPRMetaData, HydraTask_verifyRegionContents, HydraTask_verifyRegionSize, HydraTask_verifyUniqueHosts, HydraTask_waitForMyStartupRecovery, HydraTask_waitForSilence, HydraTask_waitForStartupRecovery, HydraTask_writeDiskDirsToBB, recordFailedOps, StartTask_initialize, stopStartVms, verifyHDFSRegionContents, verifyHDFSRegionSize, verifyRegionContents, verifyRegionSizeaddNewKey, blockedGetRegion, checkContainsKey, checkContainsValueForKey, checkUpdatedValue, checkValue, createObject, createObject, destroy, doGetInitImage, doNewKeyGets, doOpsPlusPuts, get, getCacheLoader, getCacheWriter, getOp, getRegionKeySet, getValueToAdd, hasLocalGiiCompleted, HydraTask_blockedGetRegion, HydraTask_doCacheWriterTest, HydraTask_doGetInitImage, HydraTask_doGetInitImageWithoutMonitor, HydraTask_doNewKeyGets, HydraTask_doPutAllNewKey, HydraTask_initCache, HydraTask_loadRegionWithGets, HydraTask_verifyCacheWriterTest, HydraTask_verifyEventCounters, HydraTask_verifyGII, HydraTask_verifyNonBlocking, initializeInstance, initializeRegion, initInstance, initRegion, invalidate, isAnyGiiInProgress, isLocalGiiInProgress, isLocalGiiInProgress, loadRegion, loadRegionWithGets, localDestroy, localInvalidate, putAllNewKey, updateExistingKey, verifyCacheWriterTest, verifyEventCounters, verifyNonBlocking, waitForAllGiiToComplete, waitForAnyGiiToBegin, waitForLocalGiiCompleted, waitForLocalGiiToBeginprotected static final String KEY_LIST
protected static final String PR_TOTAL_BUCKETS
protected static final String PR_TOTAL_DATASTORES
protected static final String DS_MEMBER_SET
protected static final String DS_SERVER_SET
public static void HydraTask_initialize()
public static void HydraTask_initializeWithAccessor()
public void initInstance(String regDescriptName)
initInstance in class KnownKeysTestpublic static void HydraTask_accessorInitialize()
public static void HydraTask_HA_accessorInitialize()
public static void HydraTask_dataStoreInitialize()
public static void HydraTask_HA_dataStoreInitialize()
public static void HydraTask_initRegisterFunction()
public static void HydraTask_doFunctionExecution()
public static void HydraTask_executeFunctionAllKeysHA()
public static void HydraTask_executeFunctionAllKeys()
public static void HydraTask_executeFunctionPrimaryBuckets()
public void registerFunctions()
public void doFunctionExecution(BitSet availableOps)
availableOps - -
Bits which are true correspond to the operations that should
be executed.public static void HydraTask_waitForEventsReceival()
protected boolean addNewKeyFunction()
protected boolean putAllNewKeyFunction()
protected boolean invalidateFunction()
protected boolean destroyFunction()
protected boolean updateExistingKeyFunction()
protected boolean getFunction()
protected boolean localInvalidateFunction()
protected boolean localDestroyFunction()
public static void HydraTask_verifyCustomPartitioning()
protected void verifyCustomPartitioning()
protected void verifyCustomPartition(Map map, int bucketid)
protected void verifyUniqueBucketForCustomPartioning(int bucketId)
public static void HydraTask_verifyOverflowToDisk()
protected void verifyOverflowToDisk()
public void executeFunctionAllKeys()
public void executeFunctionMultipleNodes()
public void executeFunctionAllBuckets()
public void executeFunctionPrimaryBucketsAllBuckets()
public void executeFunctionPrimaryBucketsMultipleNodes()
public void executeFunctionPrimaryBucketsSinlgeNode()
public void executeRegionFunctionMemberArgs()
public void executeMemberFunctionMemberArgs()
public void executeServerFunctionMemberArgs()
public void putKeySetInBB()
public void waitForEventsReceival()
public static void killVms()
public static void HydraTask_killVms()
public static void HydraTask_putKeySetInBB()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.