public class FDInitImageTest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.gemstone.gemfire.cache.Region |
aRegion |
protected long |
createRegionDurationMS |
protected com.gemstone.gemfire.cache.Region |
FDRegion |
protected long |
giiDurationMS |
protected long |
LOG_INTERVAL_MILLIS |
protected int |
numKeys |
protected RandomValues |
randomValues |
protected static String |
REGION_NAME |
protected static FDInitImageTest |
testInstance |
protected static long |
verifyRegionContentsAccumulatedTime |
protected static boolean |
verifyRegionContentsCompleted |
protected static StringBuffer |
verifyRegionContentsErrStr |
protected static int |
verifyRegionContentsIndex |
| Constructor and Description |
|---|
FDInitImageTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
blockedGetRegion()
Wait for another thread in this VM to begin a getInitialImage, then get the region
REGION_NAME, which should block while somebody else has a getInitialImage in progress.
|
protected void |
checkContainsKey(Object key,
boolean expected)
Check that containsKey() called on the tests' region has the expected result.
|
protected void |
checkContainsValueForKey(Object key,
boolean expected)
Check that containsValueForKey() called on the tests' region has the expected result.
|
protected void |
checkValue(Object key,
Object value)
Check that the value of the given key is expected for this test.
|
protected void |
doGetInitImage()
Get the region REGION_NAME, which should do a getInitialImage.
|
protected Set |
getRegionKeySet(com.gemstone.gemfire.cache.Region aRegion) |
protected Object |
getValueToAdd(Object key)
Return a value to add to a region for the given key
|
protected static boolean |
hasLocalGiiCompleted()
Test whether the local GII has completed.
|
static void |
HydraTask_becomeDead()
Cause a forced disconnect in the current vm
|
static void |
HydraTask_blockedGetRegion()
Hydra task to wait until another thread does a getInitialImage, then this
get region should block.
|
static void |
HydraTask_createFDRegion() |
static void |
HydraTask_doGetInitImage()
Hydra task to do a get region, which does a getInitialImage.
|
static void |
HydraTask_initCache()
Hydra task to initialize the cache
|
static void |
HydraTask_initRegion()
Hydra task to initialize a region.
|
static void |
HydraTask_loadRegion()
Hydra batched task to load a region according to hydra param settings.
|
static void |
HydraTask_loadRegionWithGets()
Hydra batched task to load a region by getting values from another
distributed system using gets.
|
static void |
HydraTask_putFDRegion()
Do puts to help a forced disconnect to occur in another vm.
|
static void |
HydraTask_verifyPossiblePartialGII()
Task to verify a potentially partial gii.
|
static void |
HydraTask_verifyRegionContents()
Hydra task to verify the keys and values in a region
|
static void |
HydraTask_verifyRegionSize()
Verify the size of the region.
|
protected static void |
initializeInstance()
Initialize the single instance of this test class but not a region.
|
protected static void |
initializeRegion(com.gemstone.gemfire.cache.DataPolicy dataPolicy)
Initialize the single instance of this test class and a region.
|
protected void |
initInstance()
Initialize fields for this instance
|
protected void |
initRegion(com.gemstone.gemfire.cache.DataPolicy dataPolicy)
Initialize a region with the desired attributes.
|
protected static boolean |
isAnyGiiInProgress()
Test whether any GII is in progress.
|
protected static boolean |
isLocalGiiInProgress()
Test whether a local GII is in progress.
|
protected static boolean |
isLocalGiiInProgress(com.gemstone.gemfire.cache.Region aRegion)
Test whether a local GII is in progress.
|
void |
loadRegion()
Load a region with keys and values.
|
void |
loadRegionWithGets() |
static void |
StartTask_initialize()
Hydra start task to initialize dataPolicy on the blackboard.
|
protected void |
verifyPossiblePartialGII()
Verify a potentially partial gii.
|
void |
verifyRegionContents()
Verify the contents of the region.
|
protected static void |
waitForAllGiiToComplete()
Wait for getInitialImage in ALL vms to complete.
|
static void |
waitForAnyGiiToBegin()
Wait for a getInitialImage in ANY vm to be in progress.
|
static void |
waitForForcedDiscConditions(com.gemstone.gemfire.distributed.DistributedSystem ds,
com.gemstone.gemfire.cache.Cache theCache)
Wait for forced disconnect conditions
1) Cache.isClosed() should be true
2) DistributedSystem.isConnected() should be false
3) Notifier hooks for forced disconnect before and after should complete.
|
protected static void |
waitForLocalGiiCompleted()
Wait for stats to indicate that a getInitialImage has completed.
|
protected static void |
waitForLocalGiiToBegin()
Wait for stats to indicate that a getInitialImage is in progress.
|
protected static FDInitImageTest testInstance
protected static final String REGION_NAME
protected int numKeys
protected RandomValues randomValues
protected com.gemstone.gemfire.cache.Region aRegion
protected com.gemstone.gemfire.cache.Region FDRegion
protected long createRegionDurationMS
protected long giiDurationMS
protected final long LOG_INTERVAL_MILLIS
protected static int verifyRegionContentsIndex
protected static StringBuffer verifyRegionContentsErrStr
protected static boolean verifyRegionContentsCompleted
protected static long verifyRegionContentsAccumulatedTime
protected static void initializeRegion(com.gemstone.gemfire.cache.DataPolicy dataPolicy)
protected static void initializeInstance()
protected void initRegion(com.gemstone.gemfire.cache.DataPolicy dataPolicy)
protected void initInstance()
public static void StartTask_initialize()
public static void HydraTask_createFDRegion()
public static void HydraTask_verifyPossiblePartialGII()
protected void verifyPossiblePartialGII()
public static void HydraTask_verifyRegionSize()
public static void HydraTask_putFDRegion()
public static void HydraTask_becomeDead()
public static void HydraTask_initRegion()
public static void HydraTask_loadRegion()
public static void HydraTask_loadRegionWithGets()
public static void HydraTask_doGetInitImage()
public static void HydraTask_blockedGetRegion()
public static void HydraTask_verifyRegionContents()
public static void HydraTask_initCache()
protected void doGetInitImage()
protected void blockedGetRegion()
public void loadRegion()
public void loadRegionWithGets()
public void verifyRegionContents()
protected void checkContainsKey(Object key, boolean expected)
key - The key to check.expected - The expected result of containsKeylogStr - Used if throwing an error due to an unexpected value.protected void checkContainsValueForKey(Object key, boolean expected)
key - The key to check.expected - The expected result of containsValueForKeyprotected void checkValue(Object key, Object value)
key - The key to check.value - The value for the key.logStr - Used if throwing an error due to an unexpected value.protected Object getValueToAdd(Object key)
protected Set getRegionKeySet(com.gemstone.gemfire.cache.Region aRegion)
protected static boolean isLocalGiiInProgress()
protected static boolean isLocalGiiInProgress(com.gemstone.gemfire.cache.Region aRegion)
The - region that may be in a getInitialImageprotected static boolean hasLocalGiiCompleted()
protected static boolean isAnyGiiInProgress()
public static void waitForAnyGiiToBegin()
protected static void waitForAllGiiToComplete()
protected static void waitForLocalGiiToBegin()
protected static void waitForLocalGiiCompleted()
public static void waitForForcedDiscConditions(com.gemstone.gemfire.distributed.DistributedSystem ds,
com.gemstone.gemfire.cache.Cache theCache)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.