public class BridgeNotify extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
ADD_OPERATION |
protected static BridgeNotify |
bridgeClient |
protected static int |
CACHE_CLOSE_OPERATION |
protected static int |
CLEAR_OPERATION |
protected static String |
createCallbackPrefix |
protected static int |
DESTROY_CREATE_OPERATION |
protected static int |
DESTROY_OPERATION |
protected static String |
destroyCallbackPrefix |
protected static int |
INVALIDATE_OPERATION |
protected static String |
invalidateCallbackPrefix |
boolean |
isCarefulValidation |
protected boolean |
isSerialExecution |
protected static boolean |
isVMotionEnabled |
protected static int |
KILL_VM_OPERATION |
protected static int |
LOCAL_DESTROY_OPERATION |
protected static int |
LOCAL_INVALIDATE_OPERATION |
protected long |
minTaskGranularityMS |
protected long |
minTaskGranularitySec |
protected int |
numKeysInTest |
protected ArrayList |
originalKeyList |
protected static int |
PUT_IF_ABSENT_OPERATION |
protected static int |
PUTALL_ADD_OPERATION |
protected static int |
PUTALL_UPDATE_OPERATION |
protected RandomValues |
randomValues |
protected static int |
READ_OPERATION |
protected static int |
REGION_CLOSE_OPERATION |
protected static String |
REGION_NAME |
protected static int |
REMOVE_OPERATION |
protected static int |
REPLACE_OPERATION |
protected static int |
UPDATE_OPERATION |
protected static String |
updateCallbackPrefix |
protected boolean |
useTransactions |
| Constructor and Description |
|---|
BridgeNotify() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addObject(com.gemstone.gemfire.cache.Region aRegion,
boolean logAddition) |
protected void |
addObject(com.gemstone.gemfire.cache.Region aRegion,
String name,
boolean logAddition) |
protected void |
addObjectViaPutAll(com.gemstone.gemfire.cache.Region aRegion,
boolean logAddition) |
protected void |
addObjectViaPutAll(com.gemstone.gemfire.cache.Region aRegion,
String name,
boolean logAddition) |
protected void |
checkEventCounters()
Must overridden in a subclass
|
static void |
clearEventCounters()
zeros out counters for event received by clients during
test initialization
|
protected void |
closeCache()
This function perform cacheclose() operation.
|
protected void |
closeRegion(com.gemstone.gemfire.cache.Region aRegion)
This function perform close() operation on the given region.
|
protected void |
createAllKeys(com.gemstone.gemfire.cache.Region aRegion) |
protected void |
createAllKeysViaPutAll(com.gemstone.gemfire.cache.Region aRegion) |
protected BaseValueHolder |
createObject(Object key,
RandomValues rdmVal) |
protected void |
destroyAllKeys(com.gemstone.gemfire.cache.Region aRegion) |
protected void |
destroyAndCreateObject(com.gemstone.gemfire.cache.Region aRegion,
boolean isLocalDestroy) |
protected void |
destroyObject(com.gemstone.gemfire.cache.Region aRegion,
boolean isLocalDestroy) |
protected void |
doEntryOperations(com.gemstone.gemfire.cache.Region aRegion) |
protected void |
getEntriesFromServer(com.gemstone.gemfire.cache.Region aRegion) |
protected int |
getNumVMsWithListeners() |
protected Object |
getObjectToAdd(String name)
Creates a new object with the given
name to add to a
region. |
protected int |
getOperation(Long whichPrm,
boolean disallowLocalEntryOps)
Return a random operation from the hydra parameter specified by whichPrm.
|
protected Object |
getUpdateObject(String name)
Returns the "updated" value of the object with the given
name. |
static void |
HydraTask_createAllKeys() |
static void |
HydraTask_createAllKeysViaPutAll() |
static void |
HydraTask_destroyAllKeys() |
static void |
HydraTask_doEntryOperations()
Perform random operation(s).
|
static void |
HydraTask_endTask() |
static void |
HydraTask_getEntriesFromServer()
bridgeClients with notifyBySubscription = false need to get all the
entries after the region has been created/populated
|
static void |
HydraTask_initialize()
Creates and initializes the singleton instance of BridgeNotify
in this VM.
|
static void |
HydraTask_populateRegion()
Put an initial set of values into the cache
|
static void |
HydraTask_printBB() |
static void |
HydraTask_recycleServer()
A Hydra TASK that will kill and restart random bridgeServers.
|
static void |
HydraTask_updateAllKeys() |
static void |
HydraTask_updateAllKeysViaPutAll() |
static void |
HydraTask_validateEventsReceived()
A Hydra ENDTASK to validate events (expected vs.
|
static void |
initBridgeServer()
Initializes a bridge server in this VM.
|
static void |
initBridgeServerWithXml()
Initializes a bridge server in this VM via XML.
|
void |
initialize() |
protected com.gemstone.gemfire.cache.Region |
initRegion() |
protected void |
invalidateObject(com.gemstone.gemfire.cache.Region aRegion,
boolean isLocalInvalidate) |
protected void |
killVM() |
protected static void |
logExecutionNumber() |
protected void |
populateRegion(com.gemstone.gemfire.cache.Region aRegion) |
protected void |
putIfAbsent(com.gemstone.gemfire.cache.Region aRegion,
boolean logAddition)
ConcurrentMap API testing
|
protected com.gemstone.gemfire.cache.query.SelectResults |
query(com.gemstone.gemfire.cache.Region aRegion,
Object key) |
protected void |
query(com.gemstone.gemfire.cache.Region aRegion,
Object key,
BaseValueHolder expectedValue) |
protected void |
readObject(com.gemstone.gemfire.cache.Region aRegion)
Fetches (reads) the value of a randomly selected entry in the
given region.
|
protected void |
registerInterest(com.gemstone.gemfire.cache.Region aRegion,
com.gemstone.gemfire.cache.CacheListener myListener,
ArrayList oddKeys,
ArrayList evenKeys) |
protected void |
releaseThreadLocal(com.gemstone.gemfire.cache.Region aRegion) |
protected void |
remove(com.gemstone.gemfire.cache.Region aRegion)
ConcurrentMap API testing
|
protected void |
replace(com.gemstone.gemfire.cache.Region aRegion)
Replaces the "first" entry in a given region
|
protected void |
replace(com.gemstone.gemfire.cache.Region aRegion,
Object name)
Replaces the entry with the given key (
name) in the
given region. |
static void |
stopBridgeServer()
Stops the bridge server in this VM.
|
protected void |
updateAllKeys(com.gemstone.gemfire.cache.Region aRegion) |
protected void |
updateAllKeysViaPutAll(com.gemstone.gemfire.cache.Region aRegion) |
protected void |
updateObject(com.gemstone.gemfire.cache.Region aRegion)
Updates the "first" entry w/a value in a given region
|
protected void |
updateObject(com.gemstone.gemfire.cache.Region aRegion,
Object name)
Updates the entry with the given key (
name) in the
given region. |
protected void |
updateObjectViaPutAll(com.gemstone.gemfire.cache.Region aRegion) |
protected void |
updateObjectViaPutAll(com.gemstone.gemfire.cache.Region aRegion,
Object name) |
protected void |
validateEventsReceived() |
protected void |
verifyObjectDestroyed(com.gemstone.gemfire.cache.Region aRegion,
Object key)
Verify that the given key in the given region is destroyed (has no key/value).
|
protected void |
verifyObjectInvalidated(com.gemstone.gemfire.cache.Region aRegion,
Object key)
Verify that the given key in the given region is invalid (has a null value).
|
protected static BridgeNotify bridgeClient
protected boolean isSerialExecution
protected boolean useTransactions
public boolean isCarefulValidation
protected int numKeysInTest
protected long minTaskGranularitySec
protected long minTaskGranularityMS
protected RandomValues randomValues
protected ArrayList originalKeyList
protected static boolean isVMotionEnabled
protected static final String REGION_NAME
protected static final int ADD_OPERATION
protected static final int UPDATE_OPERATION
protected static final int INVALIDATE_OPERATION
protected static final int DESTROY_OPERATION
protected static final int READ_OPERATION
protected static final int LOCAL_INVALIDATE_OPERATION
protected static final int LOCAL_DESTROY_OPERATION
protected static final int REGION_CLOSE_OPERATION
protected static final int CLEAR_OPERATION
protected static final int DESTROY_CREATE_OPERATION
protected static final int CACHE_CLOSE_OPERATION
protected static final int KILL_VM_OPERATION
protected static final int PUTALL_ADD_OPERATION
protected static final int PUTALL_UPDATE_OPERATION
protected static final int PUT_IF_ABSENT_OPERATION
protected static final int REMOVE_OPERATION
protected static final int REPLACE_OPERATION
protected static final String createCallbackPrefix
protected static final String updateCallbackPrefix
protected static final String invalidateCallbackPrefix
protected static final String destroyCallbackPrefix
public static void initBridgeServer()
public static void stopBridgeServer()
public static void initBridgeServerWithXml()
public static void HydraTask_initialize()
public static void clearEventCounters()
EventCountersBBpublic void initialize()
HydraTask_initializeprotected void registerInterest(com.gemstone.gemfire.cache.Region aRegion,
com.gemstone.gemfire.cache.CacheListener myListener,
ArrayList oddKeys,
ArrayList evenKeys)
public static void HydraTask_populateRegion()
protected void populateRegion(com.gemstone.gemfire.cache.Region aRegion)
HydraTask_getEntriesFromServer()public static void HydraTask_getEntriesFromServer()
HydraTask_populateRegionprotected void getEntriesFromServer(com.gemstone.gemfire.cache.Region aRegion)
public static void HydraTask_doEntryOperations()
protected void doEntryOperations(com.gemstone.gemfire.cache.Region aRegion)
HydraTask_doEntryOperations()protected void releaseThreadLocal(com.gemstone.gemfire.cache.Region aRegion)
protected void query(com.gemstone.gemfire.cache.Region aRegion,
Object key,
BaseValueHolder expectedValue)
protected com.gemstone.gemfire.cache.query.SelectResults query(com.gemstone.gemfire.cache.Region aRegion,
Object key)
protected void addObject(com.gemstone.gemfire.cache.Region aRegion,
boolean logAddition)
protected void addObjectViaPutAll(com.gemstone.gemfire.cache.Region aRegion,
boolean logAddition)
protected void addObject(com.gemstone.gemfire.cache.Region aRegion,
String name,
boolean logAddition)
protected void putIfAbsent(com.gemstone.gemfire.cache.Region aRegion,
boolean logAddition)
protected void addObjectViaPutAll(com.gemstone.gemfire.cache.Region aRegion,
String name,
boolean logAddition)
protected void invalidateObject(com.gemstone.gemfire.cache.Region aRegion,
boolean isLocalInvalidate)
protected void destroyObject(com.gemstone.gemfire.cache.Region aRegion,
boolean isLocalDestroy)
protected void remove(com.gemstone.gemfire.cache.Region aRegion)
protected void destroyAndCreateObject(com.gemstone.gemfire.cache.Region aRegion,
boolean isLocalDestroy)
protected void updateObject(com.gemstone.gemfire.cache.Region aRegion)
protected void replace(com.gemstone.gemfire.cache.Region aRegion)
protected void replace(com.gemstone.gemfire.cache.Region aRegion,
Object name)
name) in the
given region.protected void updateObjectViaPutAll(com.gemstone.gemfire.cache.Region aRegion)
protected void updateObject(com.gemstone.gemfire.cache.Region aRegion,
Object name)
name) in the
given region.protected void updateObjectViaPutAll(com.gemstone.gemfire.cache.Region aRegion,
Object name)
protected void readObject(com.gemstone.gemfire.cache.Region aRegion)
public static void HydraTask_createAllKeys()
public static void HydraTask_createAllKeysViaPutAll()
protected void createAllKeys(com.gemstone.gemfire.cache.Region aRegion)
protected void createAllKeysViaPutAll(com.gemstone.gemfire.cache.Region aRegion)
public static void HydraTask_updateAllKeys()
public static void HydraTask_updateAllKeysViaPutAll()
protected void updateAllKeys(com.gemstone.gemfire.cache.Region aRegion)
protected void updateAllKeysViaPutAll(com.gemstone.gemfire.cache.Region aRegion)
public static void HydraTask_destroyAllKeys()
protected void destroyAllKeys(com.gemstone.gemfire.cache.Region aRegion)
protected void checkEventCounters()
protected Object getObjectToAdd(String name)
name to add to a
region.BaseValueHolder,
RandomValuesprotected Object getUpdateObject(String name)
name.protected int getNumVMsWithListeners()
protected int getOperation(Long whichPrm, boolean disallowLocalEntryOps)
whichPrm - - the hydra parameter that is a list of operationsdisallowLocalEntryOps - - if true, then do not return localInvalidate
or localDestroy. This is used for regions that are mirrored, since
localInvalidate and localDestroy are disallowed for mirrored regions.protected static void logExecutionNumber()
protected void verifyObjectInvalidated(com.gemstone.gemfire.cache.Region aRegion,
Object key)
aRegion - The region containing keykey - The key that should have a null valueprotected void verifyObjectDestroyed(com.gemstone.gemfire.cache.Region aRegion,
Object key)
aRegion - The region contains the destroyed keykey - The destroyed keypublic static void HydraTask_validateEventsReceived()
protected void validateEventsReceived()
HydraTask_validateEventsReceivedpublic static void HydraTask_recycleServer()
throws ClientVmNotFoundException
ClientVmNotFoundExceptionprotected void closeRegion(com.gemstone.gemfire.cache.Region aRegion)
aRegion - protected void closeCache()
protected void killVM()
protected com.gemstone.gemfire.cache.Region initRegion()
protected BaseValueHolder createObject(Object key, RandomValues rdmVal)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.