public class ListenerTest extends CQEventTest
ListenerPrms,
ListenerBB| Modifier and Type | Field and Description |
|---|---|
protected static int |
ADD_LISTENER |
protected static int |
INIT_LISTENERS |
protected static int |
REMOVE_LISTENER |
static boolean |
targetVm |
aRegion, ENTRY_ADD_OPERATION, ENTRY_DESTROY_OPERATION, ENTRY_INVALIDATE_OPERATION, ENTRY_UPDATE_OPERATION, isBridgeClient, isSerialExecution, isVMotionEnabled, lowerThreshold, minTaskGranularityMS, minTaskGranularitySec, testInstance, upperThreshold, useTransactions, VmIDStr| Constructor and Description |
|---|
ListenerTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addListener(com.gemstone.gemfire.cache.query.CqQuery cq)
Adds a listener to the existing listener list
|
protected void |
clearInvokedListenerList(com.gemstone.gemfire.cache.query.CqQuery cq)
Clears the InvokedListener list in the BB (for the given CQ)
|
protected void |
compareListenerLists(com.gemstone.gemfire.cache.query.CqQuery cq)
Compares the Expected and Invoked Listener Lists in ListenerBB
for the given CQ
|
protected void |
exerciseListeners()
see HydraTask_exerciseListeners
|
protected String |
getCqListenerNames(com.gemstone.gemfire.cache.query.CqQuery cq)
Utility method to get a string containing the names of the listeners
(separated by ":") for the given region.
|
protected int |
getListenerOp()
Return a random operation to perform on the cacheListenerList.
|
protected com.gemstone.gemfire.cache.query.CqListener |
getNewListener()
Returns a new instance of MultiListener
|
protected int |
getNumCqListeners() |
static void |
HydraTask_exerciseListeners()
HydraTask method to perform listener operations (add, remove, set, init),
stores the expected list of listeners to be invoked in the BB and then
performs a random entry operation.
|
static void |
HydraTask_initialize()
Creates and initializes the singleton
instance of
ListenerTest in this VM. |
protected void |
initListener(com.gemstone.gemfire.cache.query.CqQuery cq)
Initializes the listener list with ListenerPrms.maxListeners entries
|
protected void |
removeListener(com.gemstone.gemfire.cache.query.CqQuery cq)
Removes a listener from the existing listener list
|
protected void |
writeExpectedListenerListToBB(com.gemstone.gemfire.cache.query.CqQuery cq)
Writes the listener lists for the given cq out to the BB
|
addEntry, checkCQ, destroyEntry, doDestroys, doEntryOperations, doInvalidates, doUpdates, doUpdatesSameValues, getAllEntries, getExistingKey, getOperation, HydraTask_checkCQ, HydraTask_doDestroys, HydraTask_doEntryOperations, HydraTask_doInvalidates, HydraTask_doOperations, HydraTask_doUpdates, HydraTask_doUpdatesSameValues, HydraTask_getAllEntries, HydraTask_initializeBridgeServer, HydraTask_initializeClient, HydraTask_initializeFeed, HydraTask_loadRegion, HydraTask_printEventCounts, initializeCQ, initializePrms, initializeRegion, invalidateEntry, loadRegion, updateEntryprotected static final int ADD_LISTENER
protected static final int REMOVE_LISTENER
protected static final int INIT_LISTENERS
public static boolean targetVm
public static void HydraTask_initialize()
throws com.gemstone.gemfire.cache.query.CqClosedException,
com.gemstone.gemfire.cache.query.RegionNotFoundException
ListenerTest in this VM.com.gemstone.gemfire.cache.query.CqClosedExceptioncom.gemstone.gemfire.cache.query.RegionNotFoundExceptionpublic static void HydraTask_exerciseListeners()
protected void exerciseListeners()
protected int getNumCqListeners()
protected int getListenerOp()
protected com.gemstone.gemfire.cache.query.CqListener getNewListener()
protected void addListener(com.gemstone.gemfire.cache.query.CqQuery cq)
protected void removeListener(com.gemstone.gemfire.cache.query.CqQuery cq)
protected void initListener(com.gemstone.gemfire.cache.query.CqQuery cq)
protected void writeExpectedListenerListToBB(com.gemstone.gemfire.cache.query.CqQuery cq)
ListenerBB.ExpectedListenersprotected void compareListenerLists(com.gemstone.gemfire.cache.query.CqQuery cq)
ListenerBB.ExpectedListeners,
ListenerBB.InvokedListenersprotected String getCqListenerNames(com.gemstone.gemfire.cache.query.CqQuery cq)
protected void clearInvokedListenerList(com.gemstone.gemfire.cache.query.CqQuery cq)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.