public class ConcCQTest extends MapRegionTest
| Modifier and Type | Field and Description |
|---|---|
protected static int |
CLOSE_CQ |
protected static List |
cqList |
protected static int[] |
cqOperations |
protected static com.gemstone.gemfire.cache.query.QueryService |
cqService |
protected static boolean |
cqsOn |
protected static int |
DO_NOTHING |
protected static int |
EXCEUTE_CQ |
protected static int |
EXCEUTE_CQ_WITH_INITIAL_RESULTS |
protected static int |
STOP_CQ |
protected static ConcCQTest |
testInstance |
protected static boolean |
waitForEventsAlreadyPerformed |
attr, cache, CLEAR, CM_REMOVE, CONTAINSVALUE, DESTROY, DISK_FOR_OVRFLW, DISK_FOR_OVRFLW_PERSIST, DISK_FOR_PERSIST, evictionLimit, FORCE_ROLLING, INVALIDATE, isCarefulValidation, ISEMPTY, LOCAL_CLEAR, LOCAL_DESTROY, LOCAL_INVALIDATE, LOCAL_REGION_DESTROY, LOCAL_REGION_INVALIDATE, lowerThreshold, mapRegionTest, minTaskGranularityMS, minTaskGranularitySec, MIRROR_TYPE_AND_OPERATION_MISMATCH, NO_DISK, persistentReplicate, PUT, PUT_IF_ABSENT, PUT_PREVIOUS, PUTALL, region, REGION_DESTROY, REGION_INVALIDATE, regionType, REMOVE, REPLACE, SIZE, TRANSACTIONS, upperThreshold, WRITE_TO_DISK| Constructor and Description |
|---|
ConcCQTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkDackEvents(int expected,
int actual,
String cntrName,
String op,
String listenerEvent) |
static void |
checkNumberOfEvents(int expected,
int actual,
String cntrName,
String op,
String listenerEvent) |
static void |
checkTime(long startTime,
long endTime,
long limit,
String cqOperationName) |
static void |
Close_Task() |
protected void |
closeCQ(com.gemstone.gemfire.cache.query.CqQuery cq) |
static void |
doCQOperations()
TASK that can be invoked by a bridgeClient thread to execute random CQ
operations.
|
protected void |
executeCQ(com.gemstone.gemfire.cache.query.CqQuery cq) |
protected void |
executeWithInitialResultsCQ(com.gemstone.gemfire.cache.query.CqQuery cq) |
protected com.gemstone.gemfire.cache.query.CqQuery |
getCQForOp() |
protected com.gemstone.gemfire.cache.query.CqQuery |
getNextRandonCQ() |
static boolean |
initBlackboard()
A STARTTASK that initializes the blackboard to keep track of the last time
something was killed.
|
static void |
initServerRegion() |
static void |
initServerWithMultRegions() |
static void |
killServer()
This task to kill the server on periodically
|
static void |
monitorServerRegion() |
static void |
monitorServerRegions() |
protected void |
performCQOperations() |
static void |
performQuery() |
protected void |
registerAndExecuteCQs() |
protected void |
registerCQs() |
protected void |
reRegisterCQ(com.gemstone.gemfire.cache.query.CqQuery cq) |
protected void |
stopCQ(com.gemstone.gemfire.cache.query.CqQuery cq) |
protected void |
verifyBridgeCacheEvent()
to check if cache Listners are correctly invoked without register any CQs.
|
static void |
verifyCQListener() |
protected void |
verifyEvents()
verify if cq listeners miss any cq events by comparing logged expected cq
events from MapBB and cq events received from CQUtilBB
|
protected void |
verifyFromBBs(int numPuts,
int numDestroys,
int numInvalidates,
int numCloses,
int afterCreates,
int afterDestroys,
int afterInvalidates,
int afterUpdates,
int afterCloses,
int numListeners) |
protected void |
verifyWithRegionOpsFromBB(int numPuts,
int numDestroys,
int numInvalidates,
int numCloses,
int numClearRegions,
int numInvalidateRegions,
int afterCreates,
int afterDestroys,
int afterInvalidates,
int afterUpdates,
int afterCloses,
int afterClearRegions,
int afterInvalidateRegions,
int numListeners) |
static void |
waitForEvents() |
static void |
waitForServerHAQueuesToDrain()
Wait for all HA Queues to be drained.
|
clearRegion, closeCache, closeTask, concurrentMapRemove, containsValueMethod, createRegion, destroyLocalObject, destroyLocalRegion, destroyObject, destroyRegion, forceRollOplogs, getEntryOperation, getEntrySet, getExistingKey, getRegionOperation, getSize, HydraTask_closetask, HydraTask_endtask, HydraTask_initialize, HydraTask_performEntryOperations, HydraTask_performRegionOperations, initialize, invalidateLocalObject, invalidateLocalRegion, invalidateObject, invalidateRegion, isEmptyMethod, localClearRegion, logMirrorTypeAndOperationMismatch, performEntryOperations, performRegionOperations, putAllObjects, putGetPutAllDestroyTxn, putIfAbsent, putObject, putPrevious, putRemoveClearTxn, recoverRegion, removeObject, replace, sizeOfRegion, useTransactions, validate, writeToDiskprotected static com.gemstone.gemfire.cache.query.QueryService cqService
protected static ConcCQTest testInstance
protected static boolean waitForEventsAlreadyPerformed
protected static boolean cqsOn
protected static final int EXCEUTE_CQ
protected static final int EXCEUTE_CQ_WITH_INITIAL_RESULTS
protected static final int STOP_CQ
protected static final int CLOSE_CQ
protected static final int DO_NOTHING
protected static final int[] cqOperations
protected static List cqList
public static void initServerRegion()
public static void initServerWithMultRegions()
public static void waitForServerHAQueuesToDrain()
public static void performQuery()
public static void monitorServerRegion()
public static void monitorServerRegions()
public static void Close_Task()
public static void killServer()
public static boolean initBlackboard()
public static void doCQOperations()
protected com.gemstone.gemfire.cache.query.CqQuery getCQForOp()
protected com.gemstone.gemfire.cache.query.CqQuery getNextRandonCQ()
protected void performCQOperations()
protected void closeCQ(com.gemstone.gemfire.cache.query.CqQuery cq)
protected void executeCQ(com.gemstone.gemfire.cache.query.CqQuery cq)
protected void executeWithInitialResultsCQ(com.gemstone.gemfire.cache.query.CqQuery cq)
protected void stopCQ(com.gemstone.gemfire.cache.query.CqQuery cq)
protected void registerCQs()
protected void registerAndExecuteCQs()
protected void reRegisterCQ(com.gemstone.gemfire.cache.query.CqQuery cq)
public static void verifyCQListener()
protected void verifyBridgeCacheEvent()
protected void verifyFromBBs(int numPuts,
int numDestroys,
int numInvalidates,
int numCloses,
int afterCreates,
int afterDestroys,
int afterInvalidates,
int afterUpdates,
int afterCloses,
int numListeners)
protected void verifyWithRegionOpsFromBB(int numPuts,
int numDestroys,
int numInvalidates,
int numCloses,
int numClearRegions,
int numInvalidateRegions,
int afterCreates,
int afterDestroys,
int afterInvalidates,
int afterUpdates,
int afterCloses,
int afterClearRegions,
int afterInvalidateRegions,
int numListeners)
protected void verifyEvents()
public static void checkNumberOfEvents(int expected,
int actual,
String cntrName,
String op,
String listenerEvent)
public static void checkDackEvents(int expected,
int actual,
String cntrName,
String op,
String listenerEvent)
public static void checkTime(long startTime,
long endTime,
long limit,
String cqOperationName)
public static void waitForEvents()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.