public class ColocatedTxTest extends OperationsClient
PrTxPrms-useLocalKeySet,
PrTxPrms-numColocatedRegions| Modifier and Type | Field and Description |
|---|---|
protected static ColocatedTxTest |
testInstance |
createCallbackPrefix, destroyCallbackPrefix, distLockService, ENTRY_ADD_OPERATION, ENTRY_DESTROY_OPERATION, ENTRY_GET_NEW_OPERATION, ENTRY_GET_OPERATION, ENTRY_INVALIDATE_OPERATION, ENTRY_LOCAL_DESTROY_OPERATION, ENTRY_LOCAL_INVALIDATE_OPERATION, ENTRY_PUTALL_OPERATION, ENTRY_UPDATE_OPERATION, getCallbackPrefix, invalidateCallbackPrefix, LOCK_NAME, LOCK_SERVICE_NAME, lockOperations, lowerThreshold, minTaskGranularityMS, minTaskGranularitySec, numOpsPerTask, PUT_IF_ABSENT_OPERATION, randomValues, regionDestroyCallbackPrefix, regionInvalidateCallbackPrefix, REMOVE_OPERATION, REPLACE_OPERATION, updateCallbackPrefix, upperThreshold, useTransactions, VmIDStr| Constructor and Description |
|---|
ColocatedTxTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEntry(com.gemstone.gemfire.cache.Region aRegion)
Add a new entry to the given region.
|
protected void |
destroyEntry(com.gemstone.gemfire.cache.Region aRegion,
boolean isLocalDestroy)
Destroy an entry in the given region.
|
protected void |
destroyEntry(com.gemstone.gemfire.cache.Region aRegion,
Object key,
boolean isLocalDestroy)
Destroy an entry in the given region.
|
protected void |
doEntryOperations() |
protected void |
doEntryOperations(Object[] keySet)
Do random entry operations on the a key in the given keySet across all
colocated regions.
|
protected List |
executeGetAllMembersInDS() |
protected Object |
getExistingKey(com.gemstone.gemfire.cache.Region aRegion)
Return a random key currently in the given region.
|
protected List |
getExistingKeys(com.gemstone.gemfire.cache.Region aRegion,
int numKeysToGet) |
protected List |
getExistingKeys(com.gemstone.gemfire.cache.Region aRegion,
Object[] keySet,
int numKeysToGet) |
protected void |
getKey(com.gemstone.gemfire.cache.Region aRegion)
Get an existing key in the given region if one is available,
otherwise get a new key.
|
protected void |
getKey(com.gemstone.gemfire.cache.Region aRegion,
Object key)
Get an existing key in the given region if one is available,
otherwise get a new key.
|
protected KeySetResult |
getKeySet(com.gemstone.gemfire.cache.Region aRegion) |
protected void |
getNewKey(com.gemstone.gemfire.cache.Region aRegion)
Get a new key in the given region.
|
protected Object |
getNewKeyForRegion(com.gemstone.gemfire.cache.Region aRegion)
Return a new key, never before used in the test.
|
static void |
HydraTask_doEntryOperations()
Performs puts/gets on entries in TestRegion
|
static void |
HydraTask_initialize()
Create the cache and Region (for peers).
|
static void |
HydraTask_initializeBridgeClient() |
static void |
HydraTask_initializeBridgeServer() |
static void |
HydraTask_populateRegions() |
protected void |
initialize() |
protected void |
initializeBridgeClient() |
protected void |
initializeBridgeServer() |
protected void |
invalidateEntry(com.gemstone.gemfire.cache.Region aRegion,
boolean isLocalInvalidate)
Invalidate an entry in the given region.
|
protected void |
invalidateEntry(com.gemstone.gemfire.cache.Region aRegion,
Object key,
boolean isLocalInvalidate)
Invalidate an entry in the given region.
|
protected void |
populateRegions() |
protected void |
putAll(com.gemstone.gemfire.cache.Region r)
putall a map to the given region.
|
protected void |
putAll(com.gemstone.gemfire.cache.Region r,
Object[] keySet) |
protected void |
putIfAbsent(com.gemstone.gemfire.cache.Region aRegion)
Add a new entry to the given region using the ConcurrentMap putIfAbsent api
|
protected void |
putIfAbsent(com.gemstone.gemfire.cache.Region aRegion,
boolean logAddition)
ConcurrentMap API testing
|
protected void |
registerFunctions() |
protected void |
remove(com.gemstone.gemfire.cache.Region aRegion)
Remove an entry in the given region using the ConcurrentMap remove method.
|
protected void |
removeEntry(com.gemstone.gemfire.cache.Region aRegion,
Object key)
Destroy an entry in the given region using the ConcurrentMap remove API.
|
protected void |
replace(com.gemstone.gemfire.cache.Region aRegion)
Remove an existing entry in the given region.
|
protected void |
replaceEntry(com.gemstone.gemfire.cache.Region aRegion,
Object key)
Replace an existing entry in the given region using the ConcurrentMap API.
|
protected void |
updateEntry(com.gemstone.gemfire.cache.Region aRegion)
Update an existing entry in the given region.
|
protected void |
updateEntry(com.gemstone.gemfire.cache.Region aRegion,
Object key)
Update an existing entry in the given region.
|
createLocatorTask, doEntryOperations, getNewKey, getOperation, getRecentKey, getUpdateObject, getValueForKey, initializeOperationsClient, remove, replace, startAndConnectLocatorTask, stopLocatorTaskprotected static ColocatedTxTest testInstance
public static void HydraTask_initializeBridgeServer()
protected void initializeBridgeServer()
public static void HydraTask_initializeBridgeClient()
protected void initializeBridgeClient()
public static void HydraTask_initialize()
protected void initialize()
public static void HydraTask_populateRegions()
protected void populateRegions()
protected void registerFunctions()
public static void HydraTask_doEntryOperations()
protected void doEntryOperations()
protected KeySetResult getKeySet(com.gemstone.gemfire.cache.Region aRegion)
protected List executeGetAllMembersInDS()
protected void addEntry(com.gemstone.gemfire.cache.Region aRegion)
addEntry in class OperationsClientaRegion - The region to use for adding a new entry.protected void putIfAbsent(com.gemstone.gemfire.cache.Region aRegion)
aRegion - The region to use for adding a new entry.protected void putIfAbsent(com.gemstone.gemfire.cache.Region aRegion,
boolean logAddition)
OperationsClientputIfAbsent in class OperationsClientprotected void invalidateEntry(com.gemstone.gemfire.cache.Region aRegion,
boolean isLocalInvalidate)
invalidateEntry in class OperationsClientaRegion - The region to use for invalidating an entry.isLocalInvalidate - True if the invalidate should be local, false otherwise.protected void destroyEntry(com.gemstone.gemfire.cache.Region aRegion,
boolean isLocalDestroy)
destroyEntry in class OperationsClientaRegion - The region to use for destroying an entry.isLocalDestroy - True if the destroy should be local, false otherwise.protected void remove(com.gemstone.gemfire.cache.Region aRegion)
remove in class OperationsClientaRegion - The region to use for removing an entry.protected void updateEntry(com.gemstone.gemfire.cache.Region aRegion)
updateEntry in class OperationsClientaRegion - The region to use for updating an entry.protected void replace(com.gemstone.gemfire.cache.Region aRegion)
replace in class OperationsClientaRegion - The region to use for updating an entry.protected void getKey(com.gemstone.gemfire.cache.Region aRegion)
getKey in class OperationsClientaRegion - The region to use for getting an entry.protected void getNewKey(com.gemstone.gemfire.cache.Region aRegion)
getNewKey in class OperationsClientaRegion - The region to use for getting an entry.protected List getExistingKeys(com.gemstone.gemfire.cache.Region aRegion, int numKeysToGet)
getExistingKeys in class OperationsClientprotected Object getExistingKey(com.gemstone.gemfire.cache.Region aRegion)
getExistingKey in class OperationsClientaRegion - The region to use for getting an existing keyprotected Object getNewKeyForRegion(com.gemstone.gemfire.cache.Region aRegion)
protected void putAll(com.gemstone.gemfire.cache.Region r)
putAll in class OperationsClientaRegion - The region to use for putall a map.protected void putAll(com.gemstone.gemfire.cache.Region r,
Object[] keySet)
protected List getExistingKeys(com.gemstone.gemfire.cache.Region aRegion, Object[] keySet, int numKeysToGet)
protected void doEntryOperations(Object[] keySet)
- to target the same key across
multiple colocated regions.protected void invalidateEntry(com.gemstone.gemfire.cache.Region aRegion,
Object key,
boolean isLocalInvalidate)
aRegion - The region to use for invalidating an entry.key - The key to invalidateisLocalInvalidate - True if the invalidate should be local, false otherwise.protected void destroyEntry(com.gemstone.gemfire.cache.Region aRegion,
Object key,
boolean isLocalDestroy)
aRegion - The region to use for destroying an entry.isLocalDestroy - True if the destroy should be local, false otherwise.protected void removeEntry(com.gemstone.gemfire.cache.Region aRegion,
Object key)
aRegion - The region to use for destroying an entry.protected void updateEntry(com.gemstone.gemfire.cache.Region aRegion,
Object key)
aRegion - The region to use for updating an entry.protected void replaceEntry(com.gemstone.gemfire.cache.Region aRegion,
Object key)
aRegion - The region to use for updating an entry.protected void getKey(com.gemstone.gemfire.cache.Region aRegion,
Object key)
aRegion - The region to use for getting an entry.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.