public class ParRegColocation extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
ADD_NEW_KEY |
protected static List |
bridgeRegionDescriptNames |
protected static String |
DataStoreVmStr |
protected static int |
DESTROY |
protected static int |
destroyThreshold |
protected static int |
ENTRIES_TO_PUT |
protected static int |
FIRST_OP |
protected static int |
GET |
protected static int |
INVALIDATE |
protected static boolean |
isBridgeClient |
protected static boolean |
isBridgeConfiguration |
protected static boolean |
isGatewaySenderConfiguration |
protected static String |
KEY_LIST |
protected KeyIntervals |
keyIntervals |
protected static int |
LAST_OP |
protected static int |
LOCAL_DESTROY |
protected static int |
LOCAL_INVALIDATE |
protected long |
LOG_INTERVAL_MILLIS |
protected int |
numNewKeys |
protected static int[] |
operations |
protected static ParRegUtil |
parRegUtilInstance |
protected static String |
PR_TOTAL_BUCKETS |
protected static String |
PR_TOTAL_DATASTORES |
protected static int |
QUERY |
protected RandomValues |
randomValues |
protected static List |
regionDescriptNames |
protected SharedCounters |
sc |
protected int |
sleepMSAfterOps |
protected static ParRegColocation |
testInstance |
protected static com.gemstone.gemfire.cache.Cache |
theCache |
protected int |
totalNumKeys |
protected static int |
UPDATE_EXISTING_KEY |
protected static String |
VmIDStr |
| Constructor and Description |
|---|
ParRegColocation() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addNewKey()
Add a new key to REGION_NAME.
|
protected void |
addNewKey(com.gemstone.gemfire.cache.Region aRegion,
Object key) |
protected void |
checkContainsKey(com.gemstone.gemfire.cache.Region aRegion,
Object key,
boolean expected,
String logStr)
Check that containsKey() called on the tests' region has the expected
result.
|
protected void |
checkContainsValueForKey(com.gemstone.gemfire.cache.Region aRegion,
Object key,
boolean expected,
String logStr)
Check that containsValueForKey() called on the tests' region has the
expected result.
|
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.
|
protected void |
createRegions()
Task to create regions one by one
|
protected void |
createRegionsWithXml()
Task to create cache and regions using xml.
|
protected boolean |
destroy()
Destroy a key in region REGION_NAME.
|
void |
destroy(com.gemstone.gemfire.cache.Region aRegion,
Object key) |
void |
doOps(BitSet availableOps)
Do operations on the REGION_NAME's keys using keyIntervals to specify which
keys get which operations.
|
protected boolean |
get()
get the value of key in REGION_NAME.
|
void |
get(com.gemstone.gemfire.cache.Region aRegion,
Object key) |
protected List |
getDataStoreVms()
Return a list of the ClientVmInfo for all data store VMs.
|
protected int |
getOp(BitSet bs,
int bsSize) |
protected Object |
getValueToAdd(Object key)
Return a value to add to a region for the given key
|
static void |
HydraTask_disconnect() |
static void |
HydraTask_doOps()
Hydra task to do region operations, then stop scheduling.
|
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_incPR_TOTAL_DATASTORES()
Task to allow for additional dataStores coming online (after putKeySetInBB)
See rebalance/randomFunctionExecutionWithRebalance.conf.
|
static void |
HydraTask_initialize()
Initialize the single instance of this test class but not a region.
|
static void |
HydraTask_killVms()
Dummy task for Failover tests.
|
static void |
HydraTask_loadRegions()
Hydra task to initialize a region and load it according to hydra param
settings.
|
static void |
HydraTask_logLocalSize()
Log the local size of the PR data store
|
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_putKeySetInBB()
Task to put the PR key set in the BB so they can be used by the client vms
|
static void |
HydraTask_registerInterest()
Task for clients to register interest in all regions
|
static void |
HydraTask_stopStartVms()
Hydra task to stop/start numVmsToStop at a time.
|
static void |
HydraTask_verifyBucketCopies()
Hydra task to verify bucket copies.
|
static void |
HydraTask_verifyColocatedRegions()
Hydra task that verifies custom partitioning and PR co-location
|
protected void |
HydraTask_verifyCoLocation()
Task to verify colocation
|
void |
HydraTask_verifyCustomPartitioning()
Task to verify custom partitioning.
|
static void |
HydraTask_verifyPrimaries()
Hydra task to verify primaries
|
static void |
HydraTask_verifyPrimaryColocation()
Hydra task that verifies custom partitioning and PR co-location
|
static void |
HydraTask_verifyPRListenerInvocation() |
static void |
HydraTask_verifyPRMetaData()
Hydra task to verify metadata
|
static void |
HydraTask_verifyRegionContents()
Hydra task to verify the contents of the region after all ops.
|
static void |
HydraTask_verifyRegionSize()
Hydra task to verify the size of the region after the load.
|
static void |
HydraTask_waitForEventsReceival() |
void |
initialize()
Initialize this test instance
|
void |
initialize(String regionDescription)
Initialize this test instance
|
protected boolean |
invalidate()
Invalidate a key in region REGION_NAME.
|
void |
invalidate(com.gemstone.gemfire.cache.Region aRegion,
Object key) |
protected void |
loadRegions() |
protected boolean |
localDestroy()
Locally destroy a key in region REGION_NAME.
|
void |
localDestroy(com.gemstone.gemfire.cache.Region aRegion,
Object key) |
protected boolean |
localInvalidate()
Locally invalidate a key in region REGION_NAME.
|
void |
localInvalidate(com.gemstone.gemfire.cache.Region aRegion,
Object key) |
boolean |
putKeySetInBB(com.gemstone.gemfire.cache.Region aRegion)
Task to put the key set in BB
|
protected void |
recordFailedOps(String sharedMapKey)
Use TxHelper.getClientTXOperations() to get the List of TransactionalOperations which failed due to
TransactionDataNodeHasDeparted and TransactionDataRebalancedExceptions (HA tests).
|
static void |
StartTask_initialize()
Initialize the known keys for this test
|
protected void |
stopStartVms()
Stop and start ParRegPrms.numVMsToStop.
|
void |
Task_verifyRegionSize()
Hydra task to verify the size of the region after the load.
|
protected boolean |
updateExistingKey()
Update an existing key in region REGION_NAME.
|
void |
updateExistingKey(com.gemstone.gemfire.cache.Region aRegion,
Object key) |
protected void |
verifyBucketCoLocation(com.gemstone.gemfire.internal.cache.PartitionedRegion aRegion)
Task to verify the colocation of the buckets
|
void |
verifyBucketCopies(com.gemstone.gemfire.cache.Region aRegion)
Hydra task to verify bucket copies.
|
protected void |
verifyCustomPartition(Map map,
int bucketid) |
protected void |
verifyCustomPartitioning(com.gemstone.gemfire.internal.cache.PartitionedRegion aRegion)
The actual task which tests the custom partitioning
|
static void |
verifyPrimaries(com.gemstone.gemfire.cache.Region aRegion)
Task that checks the primaries for the region
|
protected void |
verifyPrimaryBucketCoLocation(com.gemstone.gemfire.internal.cache.PartitionedRegion aRegion)
Task to verify the co-location of primary buckets
|
protected void |
verifyPrimaryColocation()
Task to verify colocation
|
protected void |
verifyPRListenerInvocation()
Task to verify listener invocation
|
protected void |
verifyPRListenerInvocation(com.gemstone.gemfire.internal.cache.PartitionedRegion aRegion) |
static void |
verifyPRMetaData(com.gemstone.gemfire.cache.Region aRegion)
Task to verify metadata
|
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.
|
protected void |
verifyRegionSize(com.gemstone.gemfire.cache.Region aRegion)
Task that does the verification of region size
|
protected void |
verifyUniqueBucketForCustomPartioning(int bucketId)
Task to verify that there is only a single bucket id for a routing Object
|
void |
waitForEventsReceival() |
protected static ParRegColocation testInstance
protected static List regionDescriptNames
protected static List bridgeRegionDescriptNames
protected static int destroyThreshold
protected static final int ENTRIES_TO_PUT
protected static com.gemstone.gemfire.cache.Cache theCache
protected static boolean isBridgeConfiguration
protected static boolean isBridgeClient
protected static boolean isGatewaySenderConfiguration
protected SharedCounters sc
protected RandomValues randomValues
protected int numNewKeys
protected KeyIntervals keyIntervals
protected int totalNumKeys
protected int sleepMSAfterOps
protected static final int INVALIDATE
protected static final int DESTROY
protected static final int UPDATE_EXISTING_KEY
protected static final int GET
protected static final int ADD_NEW_KEY
protected static final int QUERY
protected static final int LOCAL_INVALIDATE
protected static final int LOCAL_DESTROY
protected static final int FIRST_OP
protected static final int LAST_OP
protected static final int[] operations
protected final long LOG_INTERVAL_MILLIS
protected static ParRegUtil parRegUtilInstance
protected static String DataStoreVmStr
protected static final String KEY_LIST
protected static final String PR_TOTAL_BUCKETS
protected static final String PR_TOTAL_DATASTORES
protected static final String VmIDStr
public static void StartTask_initialize()
public static void HydraTask_initialize()
public static void HydraTask_HA_dataStoreInitialize()
public static void HydraTask_HA_initDataStoreAndServerGroups()
public static void HydraTask_p2p_dataStoreInitialize()
public static void HydraTask_p2p_accessorInitialize()
public static void HydraTask_HA_accessorInitialize()
public static void HydraTask_logLocalSize()
public static void HydraTask_registerInterest()
public void initialize()
public void initialize(String regionDescription)
protected void createRegionsWithXml()
protected void createRegions()
public static void HydraTask_loadRegions()
protected void loadRegions()
protected Object getValueToAdd(Object key)
public static void HydraTask_verifyPRMetaData()
public static void verifyPRMetaData(com.gemstone.gemfire.cache.Region aRegion)
public static void HydraTask_verifyRegionSize()
public void Task_verifyRegionSize()
protected void verifyRegionSize(com.gemstone.gemfire.cache.Region aRegion)
aRegion - Region whose size is to be verifiedpublic static void HydraTask_doOps()
public static void HydraTask_disconnect()
public void doOps(BitSet availableOps)
availableOps - -
Bits which are true correspond to the operations that should
be executed.protected void recordFailedOps(String sharedMapKey)
protected int getOp(BitSet bs, int bsSize)
protected void checkContainsValueForKey(com.gemstone.gemfire.cache.Region aRegion,
Object key,
boolean expected,
String logStr)
aRegion - Region where the check is to be donekey - The key to check.expected - The expected result of containsValueForKeylogStr - Used if throwing an error due to an unexpected value.protected void checkContainsKey(com.gemstone.gemfire.cache.Region aRegion,
Object key,
boolean expected,
String logStr)
aRegion - The Region in which the validation has to be donekey - The key to check.expected - The expected result of containsKeylogStr - Used if throwing an error due to an unexpected value.protected void checkValue(Object key, Object value)
key - The key to check.value - The value for the key.logStr - Used if throwing an error due to an unexpected value.protected void checkUpdatedValue(Object key, Object value)
key - The key to check.value - The value for the key.logStr - Used if throwing an error due to an unexpected value.protected boolean addNewKey()
protected void addNewKey(com.gemstone.gemfire.cache.Region aRegion,
Object key)
protected boolean invalidate()
public void invalidate(com.gemstone.gemfire.cache.Region aRegion,
Object key)
protected boolean localInvalidate()
public void localInvalidate(com.gemstone.gemfire.cache.Region aRegion,
Object key)
protected boolean destroy()
public void destroy(com.gemstone.gemfire.cache.Region aRegion,
Object key)
protected boolean localDestroy()
public void localDestroy(com.gemstone.gemfire.cache.Region aRegion,
Object key)
protected boolean updateExistingKey()
public void updateExistingKey(com.gemstone.gemfire.cache.Region aRegion,
Object key)
protected boolean get()
public void get(com.gemstone.gemfire.cache.Region aRegion,
Object key)
public static void HydraTask_verifyPrimaries()
public static void verifyPrimaries(com.gemstone.gemfire.cache.Region aRegion)
aRegion - Region whose primaries has to be checkedpublic static void HydraTask_verifyColocatedRegions()
protected void HydraTask_verifyCoLocation()
protected void verifyPrimaryBucketCoLocation(com.gemstone.gemfire.internal.cache.PartitionedRegion aRegion)
aRegion - Region whose co-location of primaries has to be checkedprotected void verifyBucketCoLocation(com.gemstone.gemfire.internal.cache.PartitionedRegion aRegion)
aRegion - Region whose bucket co-location to be checked with the
reference PRpublic void HydraTask_verifyCustomPartitioning()
protected void verifyCustomPartitioning(com.gemstone.gemfire.internal.cache.PartitionedRegion aRegion)
aRegion - Region whose custom partitioning of buckets to be verifiedprotected void verifyCustomPartition(Map map, int bucketid)
protected void verifyUniqueBucketForCustomPartioning(int bucketId)
public static void HydraTask_verifyRegionContents()
public void verifyRegionContents(com.gemstone.gemfire.cache.Region aRegion)
public static void HydraTask_verifyBucketCopies()
public void verifyBucketCopies(com.gemstone.gemfire.cache.Region aRegion)
public static void HydraTask_putKeySetInBB()
public boolean putKeySetInBB(com.gemstone.gemfire.cache.Region aRegion)
public static void HydraTask_incPR_TOTAL_DATASTORES()
public static void HydraTask_killVms()
public static void HydraTask_waitForEventsReceival()
public void waitForEventsReceival()
public static void HydraTask_stopStartVms()
protected void stopStartVms()
protected List getDataStoreVms()
public static void HydraTask_verifyPRListenerInvocation()
protected void verifyPRListenerInvocation()
protected void verifyPRListenerInvocation(com.gemstone.gemfire.internal.cache.PartitionedRegion aRegion)
public static void HydraTask_verifyPrimaryColocation()
protected void verifyPrimaryColocation()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.