public class SerialQueryAndEntryOpsTest extends QueryTest
QueryTask that performs operations
serially on partitioned region.QueryTest.QueryObserverImpl| Modifier and Type | Field and Description |
|---|---|
protected int |
maxId |
protected int |
numOfInitObjects |
protected int |
numOfQueryStrings |
protected static boolean |
serialExecution |
protected static int |
totalNumOfVmsToStop |
ADD_OPERATION, COUNT_QUERY_OPERATION, countQueryResults, CREATE_INDEX_OPERATION, createCallbackPrefix, DESTROY_OPERATION, destroyCallbackPrefix, distLockService, enumWhereClause1, enumWhereClause2, ID_COMPACT_RANGE_INDEX, ID_HASH_INDEX, ID_RANGE_INDEX, ignoreQueryExecTimeOutException, INVALIDATE_OPERATION, invalidateCallbackPrefix, isCarefulValidation, isMirrored, isSerialExecution, LOCAL_DESTROY_OPERATION, LOCAL_INVALIDATE_OPERATION, LOCK_NAME, LOCK_SERVICE_NAME, MAP_RANGE_INDEX_1, MAP_RANGE_INDEX_2, maxObjects, MILLIS_TO_WAIT, minTaskGranularityMS, minTaskGranularitySec, numOfRegions, numQueries, numVMs, origClassLoader, pdxReadSerialized, PDXSTRING_QUERY_OPERATION, pool, QUERY_OPERATION, queryLimit, queryTest, randomValues, READ_OPERATION, REGION_NAME, REGION_WITHOUT_INDEX, REMOVE_INDEX_OPERATION, statisticsWrittenToBB, STATUS_COMPACT_RANGE_INDEX, STATUS_HASH_INDEX, STATUS_RANGE_INDEX, UPDATE_OPERATION, updateCallbackPrefix, useEvictionController| Constructor and Description |
|---|
SerialQueryAndEntryOpsTest() |
| 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,
boolean logAddition,
boolean verifyQuery) |
protected void |
checkEventCounters()
Check all counters from EventCountersBB.
|
protected void |
checkEventCounters(boolean numCloseIsExact)
Check event counters.
|
protected boolean |
containsValue(Map dataFromBB,
com.gemstone.gemfire.cache.query.Struct aStruct)
Determine if aStruct is contained in dataFromBB on an equals basis.
|
protected void |
createAllIndex() |
protected void |
createIndex() |
protected void |
destroyObject(com.gemstone.gemfire.cache.Region aRegion,
boolean isLocalDestroy) |
protected void |
doEntryAndQueryOperations() |
protected void |
doStopStartVmAndQueryOperation() |
protected int |
getNumVMsWithListeners() |
protected Object |
getObjectToAdd(String name)
Creates a new object with the given
name to add to a region. |
protected Object |
getUpdateObject(String name)
Returns the "updated" value of the object with the given
name. |
static void |
HydraTask_createIndex() |
static void |
HydraTask_doStopStartVmAndQueryOperation() |
static void |
HydraTask_initialize() |
static void |
HydraTask_logRegions() |
static void |
HydraTask_populateRegion() |
static void |
HydraTask_reInitialize() |
static void |
HydraTask_validateCountStar() |
void |
initialize() |
protected void |
invalidateObject(com.gemstone.gemfire.cache.Region aRegion,
boolean isLocalInvalidate) |
protected void |
logResults(Map dataFromBB,
Object result,
com.gemstone.gemfire.cache.Region aRegion) |
protected void |
logStructResults(Map dataFromBB,
Object result) |
protected void |
populateRegion() |
protected void |
populateRegion(com.gemstone.gemfire.cache.Region aRegion) |
protected void |
readObject(com.gemstone.gemfire.cache.Region aRegion)
Fetches (reads) the value of a randomly selected entry in the given region.
|
protected void |
removeIndex() |
protected void |
updateObject(com.gemstone.gemfire.cache.Region aRegion)
Updates the "first" entry 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 |
validateQuery(com.gemstone.gemfire.cache.Region aRegion) |
protected void |
validateQuery(com.gemstone.gemfire.cache.Region aRegion,
int i)
To verify the results from query and from BB are same.
|
protected boolean |
verifyResult(Map dataFromBB,
Object result,
int i)
Verify the data meets the condintions from BB are the same as from queryResult.
|
protected void |
verifyResult(Map dataFromBB,
Object result,
int i,
com.gemstone.gemfire.cache.Region aRegion) |
protected boolean |
verifyStruct(Map dataFromBB,
Object result,
int i) |
compareQueryResultsBetweenIndexRegions, compareQueryResultsWithoutAndWithIndexes, createCacheFromXml, createIndex_task, createRootRegions, doCountQuery, doPdxStringQuery, doQuery, getCacheListener, getNumNames, getOperation, handleRegionDestroyedException, HydraTask_closeTask_writeQueryStats_To_Blackboard, HydraTask_compareQueryResultsBetweenIndexRegions, HydraTask_doEntryAndQueryOperations, HydraTask_endTask_verifyQueryStats_With_Blackboard, HydraTask_endTask, HydraTask_initialize_clientCache, HydraTask_initialize_withIndexTestHook, HydraTask_initialize_xml, HydraTask_iterate, HydraTask_load, HydraTask_populateRegions, HydraTask_printBB, initialize_clientCache, initialize, iterateRegion, logExecutionNumber, randRgn, validateQueryLimit, verifyCountQueryResults, verifyObjectDestroyed, verifyObjectInvalidatedprotected int numOfInitObjects
protected int maxId
protected int numOfQueryStrings
protected static int totalNumOfVmsToStop
protected static boolean serialExecution
public static void HydraTask_initialize()
public void initialize()
initialize in class QueryTestpublic static void HydraTask_logRegions()
public static void HydraTask_reInitialize()
public static void HydraTask_populateRegion()
public static void HydraTask_doStopStartVmAndQueryOperation()
public static void HydraTask_validateCountStar()
throws Throwable
Throwableprotected void populateRegion()
#HydraTask_getEntriesFromServerprotected void populateRegion(com.gemstone.gemfire.cache.Region aRegion)
public static void HydraTask_createIndex()
protected void doEntryAndQueryOperations()
doEntryAndQueryOperations in class QueryTest#HydraTask_doEntryOperationsprotected void doStopStartVmAndQueryOperation()
protected void createAllIndex()
protected void createIndex()
createIndex in class QueryTestprotected void removeIndex()
removeIndex in class QueryTestprotected int getNumVMsWithListeners()
getNumVMsWithListeners in class QueryTestprotected void addObject(com.gemstone.gemfire.cache.Region aRegion,
boolean logAddition)
protected void addObject(com.gemstone.gemfire.cache.Region aRegion,
boolean logAddition,
boolean verifyQuery)
protected void invalidateObject(com.gemstone.gemfire.cache.Region aRegion,
boolean isLocalInvalidate)
invalidateObject in class QueryTestprotected void destroyObject(com.gemstone.gemfire.cache.Region aRegion,
boolean isLocalDestroy)
destroyObject in class QueryTestprotected void updateObject(com.gemstone.gemfire.cache.Region aRegion)
QueryTestupdateObject in class QueryTestprotected void updateObject(com.gemstone.gemfire.cache.Region aRegion,
Object name)
name) in the
given region.updateObject in class QueryTestprotected void readObject(com.gemstone.gemfire.cache.Region aRegion)
QueryTestreadObject in class QueryTestprotected Object getObjectToAdd(String name)
QueryTestname to add to a region.getObjectToAdd in class QueryTestBaseValueHolder,
RandomValuesprotected Object getUpdateObject(String name)
QueryTestname.getUpdateObject in class QueryTestBaseValueHolder.getAlternateValueHolder(util.RandomValues)protected void validateQuery(com.gemstone.gemfire.cache.Region aRegion)
protected void validateQuery(com.gemstone.gemfire.cache.Region aRegion,
int i)
protected void verifyResult(Map dataFromBB, Object result, int i, com.gemstone.gemfire.cache.Region aRegion)
protected void logResults(Map dataFromBB, Object result, com.gemstone.gemfire.cache.Region aRegion)
protected boolean verifyResult(Map dataFromBB, Object result, int i)
protected boolean containsValue(Map dataFromBB, com.gemstone.gemfire.cache.query.Struct aStruct)
protected void checkEventCounters()
checkEventCounters in class QueryTestprotected void checkEventCounters(boolean numCloseIsExact)
numCloseIsExact - True if the numClose event counters must exactly
match the expected numClose value, false if the numClose event
counters must be no less than the expected numClose counter.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.