public class ExpirationTest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
IdleTODestroyIndex |
protected static int |
IdleTOInvalIndex |
protected static int |
IdleTOLocalDestroyIndex |
protected static int |
IdleTOLocalInvalIndex |
protected static int |
numRegions |
protected static String[] |
regionListenerClassNames |
protected static String[] |
regionNames |
protected static ExpirationTest |
testInstance |
protected static String[] |
threadGroupNames |
protected static int |
TTLDestroyIndex |
protected static int |
TTLInvalIndex |
protected static int |
TTLLocalDestroyIndex |
protected static int |
TTLLocalInvalIndex |
| Constructor and Description |
|---|
ExpirationTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkEntryEventsForDestroy(Blackboard bb,
int numEntries)
Check all event counters for expiration of destroy.
|
protected void |
checkEntryEventsForInvalidate(Blackboard bb,
int numEntries)
Check all event counters for expiration of invalidate.
|
protected void |
checkEntryEventsForLocalDestroy(Blackboard bb,
int numEntries)
Check all event counters for expiration of local destroy.
|
protected void |
checkEntryEventsForLocalInvalidate(Blackboard bb,
int numEntries)
Check all event counters for expiration of local invalidate.
|
protected void |
checkRegionEventsForDestroy(Blackboard bb)
Check all event counters for expiration of destroy.
|
protected void |
checkRegionEventsForInvalidate(Blackboard bb,
int numEntries)
Check all event counters for expiration of invalidate.
|
protected void |
checkRegionEventsForLocalDestroy(Blackboard bb)
Check all event counters for expiration of local destroy.
|
protected void |
checkRegionEventsForLocalInvalidate(Blackboard bb,
int numEntries)
Check all event counters for expiration of local invalidate.
|
void |
controlEntryIdleTODestroy()
Controls the thread that has an expiration action set
in the region IdleTODestroy
|
void |
controlEntryIdleTOInval()
Controls the thread that has an expiration action set
in the region IdleTOInval
|
void |
controlEntryIdleTOLocalDestroy()
Controls the thread that has an expiration action set
in the region IdleTOLocalDestroy
|
void |
controlEntryIdleTOLocalInval()
Controls the thread that has an expiration action set
in the region IdleTOLocalInval
|
void |
controlEntryTTLDestroy()
Controls the thread that has an expiration action set in the region
TTLDestroy.
|
void |
controlEntryTTLInval()
Controls the thread that has an expiration action set
in the region TTLInval
|
void |
controlEntryTTLLocalDestroy()
Controls the thread that has an expiration action set in the region
TTLLocalDestroy.
|
void |
controlEntryTTLLocalInval()
Controls the thread that has an expiration action set
in the region TTLLocalInval
|
void |
controlRegionIdleTODestroy()
Controls the thread that has an expiration action set
in the region IdleTODestroy
|
void |
controlRegionIdleTOInval()
Controls the thread that has an expiration action set
in the region IdleTOInval
|
void |
controlRegionIdleTOLocalDestroy()
Controls the thread that has an expiration action set
in the region IdleTOLocalDestroy
|
void |
controlRegionIdleTOLocalInval()
Controls the thread that has an expiration action set
in the region IdleTOLocalInval
|
void |
controlRegionTTLDestroy()
Controls the thread that has an expiration action set in the region
TTLDestroy.
|
void |
controlRegionTTLInval()
Controls the thread that has an expiration action set
in the region TTLInval
|
void |
controlRegionTTLLocalDestroy()
Controls the thread that has an expiration action set in the region
TTLLocalDestroy.
|
void |
controlRegionTTLLocalInval()
Controls the thread that has an expiration action set
in the region TTLLocalInval
|
static void |
HydraTask_controlEntryIdleTODestroy()
Hydra task to control the thread that has an expiration action set
in the region IdleTODestroy
|
static void |
HydraTask_controlEntryIdleTOInval()
Hydra task to control the thread that has an expiration action set
in the region IdleTOInval
|
static void |
HydraTask_controlEntryIdleTOLocalDestroy()
Hydra task to control the thread that has an expiration action set
in the region IdleTOLocalDestroy
|
static void |
HydraTask_controlEntryIdleTOLocalInval()
Hydra task to control the thread that has an expiration action set
in the region IdleTOLocalInval
|
static void |
HydraTask_controlEntryTTLDestroy()
Hydra task to control the thread that has an expiration action set
in the region TTLDestroy
|
static void |
HydraTask_controlEntryTTLInval()
Hydra task to control the thread that has an expiration action set
in the region TTLInval
|
static void |
HydraTask_controlEntryTTLLocalDestroy()
Hydra task to control the thread that has an expiration action set
in the region TTLLocalDestroy
|
static void |
HydraTask_controlEntryTTLLocalInval()
Hydra task to control the thread that has an expiration action set
in the region TTLLocalInval
|
static void |
HydraTask_controlRegionIdleTODestroy()
Hydra task to control the thread that has an expiration action set
in the region IdleTODestroy
|
static void |
HydraTask_controlRegionIdleTOInval()
Hydra task to control the thread that has an expiration action set
in the region IdleTOInval
|
static void |
HydraTask_controlRegionIdleTOLocalDestroy()
Hydra task to control the thread that has an expiration action set
in the region IdleTOLocalDestroy
|
static void |
HydraTask_controlRegionIdleTOLocalInval()
Hydra task to control the thread that has an expiration action set
in the region IdleTOLocalInval
|
static void |
HydraTask_controlRegionTTLDestroy()
Hydra task to control the thread that has an expiration action set
in the region TTLDestroy
|
static void |
HydraTask_controlRegionTTLInval()
Hydra task to control the thread that has an expiration action set
in the region TTLInval
|
static void |
HydraTask_controlRegionTTLLocalDestroy()
Hydra task to control the thread that has an expiration action set
in the region TTLLocalDestroy
|
static void |
HydraTask_controlRegionTTLLocalInval()
Hydra task to control the thread that has an expiration action set
in the region TTLLocalInval
|
static void |
HydraTask_initializeControlThread()
Creates and initializes the singleton instance of ExpirationTest.
|
static void |
HydraTask_initializeVerifyThread()
Creates and initializes the singleton instance of ExpirationTest.
|
static void |
HydraTask_logRegionContents() |
static void |
HydraTask_syncAndLog()
Task to wait for all control tasks to complete, then log the keys and values
that are in the region.
|
protected void |
initializeControlThread()
Create the regions specified in RegionDefPrms.regionSpecs.
|
protected void |
initializeVerifyThread()
Create the regions specified in RegionDefPrms.regionSpecs.
|
protected void |
logRegionContents(String regionName)
Log the region contents by showing which keys and values that were
orginally put into the region are still there.
|
protected int |
populateRegion(String regionName)
Populate a region with keys and values.
|
protected String |
regionContentsToString(com.gemstone.gemfire.cache.Region aRegion,
int numKeys)
Return a string showing the region contents by showing which keys and values
that were orginally put into the region are still there.
|
static void |
StartTask_initialize()
Initialize all 8 RegionDefintion instances for this run, and write
them to the blackboard.
|
protected void |
wrapUp()
Method to sync up with all other controller threads and display the
test regions existing keys and values.
|
protected static ExpirationTest testInstance
protected static String[] regionNames
protected static final int TTLDestroyIndex
protected static final int TTLLocalDestroyIndex
protected static final int TTLInvalIndex
protected static final int TTLLocalInvalIndex
protected static final int IdleTODestroyIndex
protected static final int IdleTOLocalDestroyIndex
protected static final int IdleTOInvalIndex
protected static final int IdleTOLocalInvalIndex
protected static final int numRegions
protected static String[] regionListenerClassNames
protected static String[] threadGroupNames
public static void HydraTask_initializeControlThread()
public static void StartTask_initialize()
protected void initializeControlThread()
public static void HydraTask_initializeVerifyThread()
protected void initializeVerifyThread()
public static void HydraTask_logRegionContents()
public static void HydraTask_syncAndLog()
public static void HydraTask_controlEntryTTLDestroy()
throws Throwable
Throwablepublic static void HydraTask_controlEntryTTLLocalDestroy()
throws Throwable
Throwablepublic static void HydraTask_controlEntryTTLInval()
throws Throwable
Throwablepublic static void HydraTask_controlEntryTTLLocalInval()
throws Throwable
Throwablepublic static void HydraTask_controlEntryIdleTODestroy()
throws Throwable
Throwablepublic static void HydraTask_controlEntryIdleTOLocalDestroy()
throws Throwable
Throwablepublic static void HydraTask_controlEntryIdleTOInval()
throws Throwable
Throwablepublic static void HydraTask_controlEntryIdleTOLocalInval()
throws Throwable
Throwablepublic static void HydraTask_controlRegionTTLDestroy()
throws Throwable
Throwablepublic static void HydraTask_controlRegionTTLLocalDestroy()
throws Throwable
Throwablepublic static void HydraTask_controlRegionTTLInval()
throws Throwable
Throwablepublic static void HydraTask_controlRegionTTLLocalInval()
throws Throwable
Throwablepublic static void HydraTask_controlRegionIdleTODestroy()
throws Throwable
Throwablepublic static void HydraTask_controlRegionIdleTOLocalDestroy()
throws Throwable
Throwablepublic static void HydraTask_controlRegionIdleTOInval()
throws Throwable
Throwablepublic static void HydraTask_controlRegionIdleTOLocalInval()
throws Throwable
Throwablepublic void controlEntryTTLDestroy()
public void controlEntryTTLLocalDestroy()
public void controlEntryTTLInval()
public void controlEntryTTLLocalInval()
public void controlEntryIdleTODestroy()
public void controlEntryIdleTOLocalDestroy()
public void controlEntryIdleTOInval()
public void controlEntryIdleTOLocalInval()
public void controlRegionTTLDestroy()
public void controlRegionTTLLocalDestroy()
public void controlRegionTTLInval()
public void controlRegionTTLLocalInval()
public void controlRegionIdleTODestroy()
public void controlRegionIdleTOLocalDestroy()
public void controlRegionIdleTOInval()
public void controlRegionIdleTOLocalInval()
protected int populateRegion(String regionName)
regionName - - the name of the region to populateprotected void checkEntryEventsForDestroy(Blackboard bb, int numEntries)
bb - - the blackboard containing the event counters.numEntries - - the number of entries that should have been
destroyed.protected void checkEntryEventsForLocalDestroy(Blackboard bb, int numEntries)
bb - - the blackboard containing the event counters.numEntries - - the number of entries that should have been
locally destroyed.protected void checkEntryEventsForInvalidate(Blackboard bb, int numEntries)
bb - - the blackboard containing the event counters.numEntries - - the number of entries that should have been
invalidated.protected void checkEntryEventsForLocalInvalidate(Blackboard bb, int numEntries)
bb - - the blackboard containing the event counters.numEntries - - the number of entries that should have been
locally invalidated.protected void checkRegionEventsForDestroy(Blackboard bb)
bb - - the blackboard containing the event counters.protected void checkRegionEventsForLocalDestroy(Blackboard bb)
bb - - the blackboard containing the event counters.protected void checkRegionEventsForInvalidate(Blackboard bb, int numEntries)
bb - - the blackboard containing the event counters.numEntries - - the number of entries that should have been
invalidated.protected void checkRegionEventsForLocalInvalidate(Blackboard bb, int numEntries)
bb - - the blackboard containing the event counters.numEntries - - the number of entries that should have been
locally invalidated.protected void logRegionContents(String regionName)
regionName - - the region to displayprotected String regionContentsToString(com.gemstone.gemfire.cache.Region aRegion, int numKeys)
aRegion - - the region to displaynumKeys - - the number of keys orginally put into the region. They might
have been destroyed or invalidated by now.protected void wrapUp()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.