public class CustomPartitionTest extends OperationsClient
CallbackListener,
ModRoutingObject,
PidRoutingObject,
ExecuteTx,
VerifyCustomPartitioningFunction,
GetAllMembersInDS| Modifier and Type | Field and Description |
|---|---|
protected static CustomPartitionTest |
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 |
|---|
CustomPartitionTest() |
| 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 |
doEntryOperations() |
protected void |
executeGetAllMembersInDS(com.gemstone.gemfire.cache.execute.Function f) |
protected void |
executeTx(com.gemstone.gemfire.cache.Region aRegion,
com.gemstone.gemfire.cache.execute.Function f) |
protected void |
executeVerifyCustomPartitioningFunction(com.gemstone.gemfire.internal.cache.PartitionedRegion pr,
com.gemstone.gemfire.cache.execute.Function f) |
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 Object |
getNewKey()
Return a new key, never before used in the test.
|
protected void |
getNewKey(com.gemstone.gemfire.cache.Region aRegion)
Get a new key in the given region.
|
protected BaseValueHolder |
getUpdateObject(com.gemstone.gemfire.cache.Region aRegion,
Object key)
Return an object to be used to update the given key.
|
BaseValueHolder |
getValueForKey(Object key)
Return a value for the given key
|
static void |
HydraTask_doEntryOperations()
Performs puts/gets on entries in TestRegion
|
static void |
HydraTask_executeGetAllMembersInDS()
Execute GetAllMembersInDS method
|
static void |
HydraTask_executeTx()
Performs random tx operations via functionExecution on each member in DS
|
static void |
HydraTask_executeVerifyCustomPartitioningFunction()
Execute VerifyCustomPartitioningFunction on all PRs
|
static void |
HydraTask_initialize()
Create the cache and Region.
|
static void |
HydraTask_populateRegions()
Populate regions with entries.
|
protected void |
initialize() |
protected void |
initializePrms() |
protected void |
invalidateEntry(com.gemstone.gemfire.cache.Region aRegion,
boolean isLocalInvalidate)
Invalidate an entry in the given region.
|
protected void |
populateRegion(com.gemstone.gemfire.cache.Region aRegion) |
protected void |
putIfAbsent(com.gemstone.gemfire.cache.Region aRegion,
boolean logAddition)
Add a new entry to the given region using the ConcurrentMap putIfAbsent method.
|
protected void |
registerFunctions() |
protected void |
remove(com.gemstone.gemfire.cache.Region aRegion)
Destroy an entry in the given region using the ConcurrentMap remove method.
|
protected void |
replace(com.gemstone.gemfire.cache.Region aRegion)
Replace an existing entry in the given region using the ConcurrentMap replace method.
|
protected void |
updateEntry(com.gemstone.gemfire.cache.Region aRegion)
Update an existing entry in the given region.
|
createLocatorTask, doEntryOperations, getExistingKey, getExistingKeys, getOperation, getRecentKey, initializeOperationsClient, putAll, remove, replace, startAndConnectLocatorTask, stopLocatorTaskprotected static CustomPartitionTest testInstance
public static void HydraTask_initialize()
protected void initialize()
protected void registerFunctions()
protected void initializePrms()
public static void HydraTask_populateRegions()
protected void populateRegion(com.gemstone.gemfire.cache.Region aRegion)
public static void HydraTask_doEntryOperations()
protected void doEntryOperations()
public static void HydraTask_executeTx()
protected void executeTx(com.gemstone.gemfire.cache.Region aRegion,
com.gemstone.gemfire.cache.execute.Function f)
public static void HydraTask_executeGetAllMembersInDS()
protected void executeGetAllMembersInDS(com.gemstone.gemfire.cache.execute.Function f)
public static void HydraTask_executeVerifyCustomPartitioningFunction()
protected void executeVerifyCustomPartitioningFunction(com.gemstone.gemfire.internal.cache.PartitionedRegion pr,
com.gemstone.gemfire.cache.execute.Function f)
protected Object getNewKey()
OperationsClientgetNewKey in class OperationsClientpublic BaseValueHolder getValueForKey(Object key)
OperationsClientgetValueForKey in class OperationsClientprotected 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,
boolean logAddition)
putIfAbsent in class OperationsClientaRegion - The region to use for adding a new entry.
Note: Cannot be used with CALLBACK_RESOLVER (callbacks not yet supported).
A TestException will be thrown in this case.protected 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 BaseValueHolder getUpdateObject(com.gemstone.gemfire.cache.Region aRegion, Object key)
OperationsClientgetUpdateObject in class OperationsClientaRegion - The region which possible contains key.key - The key to get a new value for.protected void replace(com.gemstone.gemfire.cache.Region aRegion)
replace in class OperationsClientaRegion - The region to use for updating an entry.
ConcurrentMap methods currently do not support callbacks, so this operation may
not be used for customResolverMethod.CALLBACK_RESOLVER. A TestException will
be thrown in this case.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.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.