public class SerialEntryEventTest extends EventTest
EventTask that performs operations
serially. It also validates the state of the cache after each
operation. Note that this test must be configured to use regions
whose scope is DISTRIBUTED_ACK or GLOBAL.checkEventCounters(boolean)ADD_OPERATION, CLEAR_OPERATION, createCallbackPrefix, DESTROY_OPERATION, destroyCallbackPrefix, distLockService, eventTest, INVALIDATE_OPERATION, invalidateCallbackPrefix, isCarefulValidation, isListenerTest, isMirrored, isSerialExecution, listenerInstalled, LOCAL_DESTROY_OPERATION, LOCAL_INVALIDATE_OPERATION, LOCK_NAME, LOCK_SERVICE_NAME, lowerThreshold, maxObjects, maxRegions, memberIdString, MILLIS_TO_WAIT, minTaskGranularityMS, minTaskGranularitySec, numVMs, PR_NAME_PREFIX, PUT_IF_ABSENT_OPERATION, PUTALL_OPERATION, rand, randomValues, READ_OPERATION, REGION_CLOSE_OPERATION, regionDestroyCallbackPrefix, regionInvalidateCallbackPrefix, regionName, REMOVE_OPERATION, REPLACE_OPERATION, UPDATE_OPERATION, updateCallbackPrefix, upperThreshold, useCounters, useEvictionController, useTransactions, VmIDStr| Constructor and Description |
|---|
SerialEntryEventTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addObject(com.gemstone.gemfire.cache.Region aRegion,
boolean aBoolean) |
protected void |
checkEventCounters()
Check all counters from EventCountersBB.
|
protected void |
checkEventCounters(boolean eventCountExact)
Check event counters.
|
static void |
createLocatorTask() |
protected void |
destroyObject(com.gemstone.gemfire.cache.Region aRegion,
boolean isLocalDestroy) |
protected int |
getNumVMsWithListeners() |
static void |
HydraTask_endTask() |
static void |
HydraTask_initialize() |
protected void |
invalidateObject(com.gemstone.gemfire.cache.Region aRegion,
boolean isLocalInvalidate) |
protected void |
putIfAbsent(com.gemstone.gemfire.cache.Region aRegion,
boolean aBoolean)
ConcurrentMap API testing
First round ...
|
protected void |
remove(com.gemstone.gemfire.cache.Region aRegion)
ConcurrentMap API testing
|
protected void |
replace(com.gemstone.gemfire.cache.Region aRegion)
Updates the "first" entry in a given region
|
static void |
startLocatorAndAdminDSTask() |
protected void |
updateObject(com.gemstone.gemfire.cache.Region aRegion)
Updates the "first" entry in a given region
|
addRegion, addRegion, addToRegion, clearRegion, clearRegion, closeRegion, closeRegion, createRootRegions, destroyRegion, destroyRegion, doEntryOperations, doRegionOperations, faultInNewRegions, faultInRegion, getCacheListener, getNumNames, getNumNonRootRegions, getObjectToAdd, getOperation, getPartitionAttributes, getRandomRegion, getUpdateObject, handleRegionDestroyedException, HydraTask_addToRegion, HydraTask_doEntryOperations, HydraTask_doRegionOperations, HydraTask_iterate, HydraTask_printBB, HydraTask_stopStartVMs, initialize, invalidateRegion, invalidateRegion, iterateRegion, logExecutionNumber, readObject, replace, updateAllObjects, updateObject, updateObjects, updateObjects, verifyObjectDestroyed, verifyObjectInvalidated, writeMyRegionNames, writeMyRegionNamespublic static void createLocatorTask()
public static void startLocatorAndAdminDSTask()
public static void HydraTask_initialize()
public static void HydraTask_endTask()
protected int getNumVMsWithListeners()
getNumVMsWithListeners in class EventTestprotected void addObject(com.gemstone.gemfire.cache.Region aRegion,
boolean aBoolean)
protected void invalidateObject(com.gemstone.gemfire.cache.Region aRegion,
boolean isLocalInvalidate)
invalidateObject in class EventTestprotected void destroyObject(com.gemstone.gemfire.cache.Region aRegion,
boolean isLocalDestroy)
destroyObject in class EventTestprotected void updateObject(com.gemstone.gemfire.cache.Region aRegion)
EventTestupdateObject in class EventTestprotected void putIfAbsent(com.gemstone.gemfire.cache.Region aRegion,
boolean aBoolean)
EventTestputIfAbsent in class EventTestprotected void replace(com.gemstone.gemfire.cache.Region aRegion)
EventTestprotected void remove(com.gemstone.gemfire.cache.Region aRegion)
EventTestprotected void checkEventCounters()
checkEventCounters in class EventTestcom.gemstone.gemfire.cache.InterestPolicy.ALLprotected void checkEventCounters(boolean eventCountExact)
eventCountExact - - True if the event counters must exactly
match the expected value, false if the event
counters must be no less than the expected counter.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.