public class CQEventTest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.gemstone.gemfire.cache.Region |
aRegion |
protected static int |
ENTRY_ADD_OPERATION |
protected static int |
ENTRY_DESTROY_OPERATION |
protected static int |
ENTRY_INVALIDATE_OPERATION |
protected static int |
ENTRY_UPDATE_OPERATION |
protected boolean |
isBridgeClient |
protected boolean |
isSerialExecution |
protected static boolean |
isVMotionEnabled |
protected int |
lowerThreshold |
protected long |
minTaskGranularityMS |
protected long |
minTaskGranularitySec |
protected static CQEventTest |
testInstance |
protected int |
upperThreshold |
protected boolean |
useTransactions |
protected static String |
VmIDStr |
| Constructor and Description |
|---|
CQEventTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEntry(com.gemstone.gemfire.cache.Region aRegion)
Add a new entry to the given region.
|
void |
checkCQ() |
protected void |
destroyEntry(com.gemstone.gemfire.cache.Region aRegion)
Destroy an entry in the given region.
|
void |
doDestroys() |
protected void |
doEntryOperations(com.gemstone.gemfire.cache.Region aRegion)
Do random entry operations on the given region ending either with
minTaskGranularityMS.
|
void |
doInvalidates() |
void |
doUpdates() |
void |
doUpdatesSameValues() |
protected void |
getAllEntries(String regionConfig)
getAllEntries (from server)
|
static Object |
getExistingKey(com.gemstone.gemfire.cache.Region aRegion)
Return a random key currently in the given region.
|
protected int |
getOperation(Long whichPrm)
Get a random operation using the given hydra parameter.
|
static void |
HydraTask_checkCQ() |
static void |
HydraTask_doDestroys() |
static void |
HydraTask_doEntryOperations() |
static void |
HydraTask_doInvalidates() |
static void |
HydraTask_doOperations() |
static void |
HydraTask_doUpdates() |
static void |
HydraTask_doUpdatesSameValues() |
static void |
HydraTask_getAllEntries()
gets all entries from the server
|
static void |
HydraTask_initializeBridgeServer()
Creates and initializes an instance of a CQ in a bridgeServer
|
static void |
HydraTask_initializeClient()
Creates and initializes the singleton instance of a CQ in a bridgeClient
|
static void |
HydraTask_initializeFeed()
Creates and initializes a PR in a bridge server.
|
static void |
HydraTask_loadRegion() |
static void |
HydraTask_printEventCounts() |
protected void |
initializeCQ() |
protected void |
initializePrms() |
protected void |
initializeRegion(String regDescriptName)
Create a region with the given region description name.
|
protected void |
invalidateEntry(com.gemstone.gemfire.cache.Region aRegion)
Invalidate an entry in the given region.
|
void |
loadRegion() |
protected void |
updateEntry(com.gemstone.gemfire.cache.Region aRegion)
Update an existing entry in the given region.
|
protected static CQEventTest testInstance
protected static final String VmIDStr
protected boolean isBridgeClient
protected boolean isSerialExecution
protected boolean useTransactions
protected long minTaskGranularitySec
protected long minTaskGranularityMS
protected int upperThreshold
protected int lowerThreshold
protected com.gemstone.gemfire.cache.Region aRegion
protected static boolean isVMotionEnabled
protected static final int ENTRY_ADD_OPERATION
protected static final int ENTRY_DESTROY_OPERATION
protected static final int ENTRY_INVALIDATE_OPERATION
protected static final int ENTRY_UPDATE_OPERATION
public static void HydraTask_initializeClient()
throws com.gemstone.gemfire.cache.query.CqClosedException,
com.gemstone.gemfire.cache.query.RegionNotFoundException
com.gemstone.gemfire.cache.query.CqClosedExceptioncom.gemstone.gemfire.cache.query.RegionNotFoundExceptionprotected void initializePrms()
public static void HydraTask_initializeBridgeServer()
public static void HydraTask_initializeFeed()
public static void HydraTask_getAllEntries()
protected void initializeRegion(String regDescriptName)
regDescriptName - The name of a region description.protected void getAllEntries(String regionConfig)
protected void initializeCQ()
throws com.gemstone.gemfire.cache.query.CqClosedException,
com.gemstone.gemfire.cache.query.RegionNotFoundException
com.gemstone.gemfire.cache.query.CqClosedExceptioncom.gemstone.gemfire.cache.query.RegionNotFoundExceptionpublic static void HydraTask_loadRegion()
public void loadRegion()
public static void HydraTask_doUpdates()
public void doUpdates()
public static void HydraTask_doUpdatesSameValues()
public void doUpdatesSameValues()
public static void HydraTask_doDestroys()
public void doDestroys()
public static void HydraTask_doInvalidates()
public void doInvalidates()
public static void HydraTask_doOperations()
public static void HydraTask_doEntryOperations()
protected void doEntryOperations(com.gemstone.gemfire.cache.Region aRegion)
protected int getOperation(Long whichPrm)
whichPrm - A hydra parameter which specifies random operations.public static Object getExistingKey(com.gemstone.gemfire.cache.Region aRegion)
aRegion - The region to use for getting an existing key.protected void addEntry(com.gemstone.gemfire.cache.Region aRegion)
aRegion - The region to use for adding a new entry.protected void invalidateEntry(com.gemstone.gemfire.cache.Region aRegion)
aRegion - The region to use for invalidating an entry.protected void destroyEntry(com.gemstone.gemfire.cache.Region aRegion)
aRegion - The region to use for destroying an entry.protected void updateEntry(com.gemstone.gemfire.cache.Region aRegion)
aRegion - The region to use for updating an entry.public static void HydraTask_checkCQ()
throws com.gemstone.gemfire.cache.query.CqException
com.gemstone.gemfire.cache.query.CqExceptionpublic void checkCQ()
public static void HydraTask_printEventCounts()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.