public class ThresholdsTest extends ParRegTest
| Modifier and Type | Class and Description |
|---|---|
static class |
ThresholdsTest.CriticalState |
static class |
ThresholdsTest.EasyInspector |
static interface |
ThresholdsTest.Inspector |
static class |
ThresholdsTest.SternInspector |
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCESSOR_LOW_MEM_TIMESTAMP |
static String |
ACCESSOR_NO_LOW_MEM_TIMESTAMP |
ThresholdsTest.Inspector |
inspector |
static HydraThreadLocal |
localCriticalState |
static String |
LOW_MEMORY_STATE |
protected static com.gemstone.gemfire.cache.Region |
noEvictRegion |
resman.Indexable.ThresholdsTestStats |
testStats |
aRegion, bridgeOrderingWorkaround, cacheDef, cacheIsClosed, CLOSE_CACHE, CLOSE_REGION, concVerifyCoordinator, CREATE_INDEX_OPERATION, createCallbackPrefix, currentIntervalKeyIndex, currentValidateKeyIndex, cycleVMs_notChosenVMs, cycleVMs_targetVMs, destroyCallbackPrefix, destroyedKeys, DISCONNECT, disconnected, diskFilesRecorded, distLockService, ENTRY_ADD_OPERATION, ENTRY_DESTROY_OPERATION, ENTRY_DESTROY_PERCENT_OPERATION, ENTRY_GET_NEW_OPERATION, ENTRY_GET_OPERATION, ENTRY_INVALIDATE_OPERATION, ENTRY_LOCAL_DESTROY_OPERATION, ENTRY_LOCAL_DESTROY_PERCENT_OPERATION, ENTRY_LOCAL_INVALIDATE_OPERATION, ENTRY_PUT_IF_ABSENT_AS_CREATE_OPERATION, ENTRY_PUT_IF_ABSENT_AS_GET_OPERATION, ENTRY_PUT_IF_ABSENT_OPERATION, ENTRY_PUTALL_OPERATION, ENTRY_REMOVE_AS_NOOP_OPERATION, ENTRY_REMOVE_OPERATION, ENTRY_REPLACE_AS_NOOP_OPERATION, ENTRY_REPLACE_AS_UPDATE_OPERATION, ENTRY_REPLACE_NO_INVAL_OPERATION, ENTRY_REPLACE_OLD_AS_NOOP_OPERATION, ENTRY_REPLACE_OLD_AS_UPDATE_OPERATION, ENTRY_REPLACE_OLD_NO_INVAL_OPERATION, ENTRY_REPLACE_OLD_OPERATION, ENTRY_REPLACE_OPERATION, ENTRY_UPDATE_OPERATION, exceptionCount, expectOfflineExceptionKey, getCallbackPrefix, hasLRUEntryEviction, hasPRCacheLoader, highAvailability, invalidateCallbackPrefix, isBridgeClient, isBridgeConfiguration, isClientCache, isDataStore, isDataStoreKey, isEmptyClient, isSerialExecution, isThinClient, LOCAL_DESTROY, LOCK_NAME, LOCK_SERVICE_NAME, lockOperations, lowerThreshold, LRUEntryMax, MAX_CHOICES, MAX_CHOICES_FOR_CLIENT_SERVER, minTaskGranularityMS, minTaskGranularitySec, numOpsPerTask, numThreadsInClients, numThreadsInThisVM, numVMsToStop, offHeapVerifyTargetCount, QUERY_OPERATION, randomValues, RECENT_HISTORY, redundantCopies, regDef, regionDestroyCallbackPrefix, regionInvalidateCallbackPrefix, regionLocallyDestroyed, regionSnapshot, registerInterestCoordinator, REMOVE_INDEX_OPERATION, secondsToRun, shutDownAllInProgressKey, testInstance, thisVmRunningHAController, txDestroyedKeys, txRegionSnapshot, uniqueHostsOn, uniqueKeyIndex, uniqueKeys, updateCallbackPrefix, upperThreshold, VmIDStr| Modifier and Type | Method and Description |
|---|---|
protected Object |
addEntry(com.gemstone.gemfire.cache.Region r)
Add a new entry to the given region.
|
protected void |
clearBBCriticalState(List<ClientVmInfo> targetVMs)
Clear the critical state for the provided members
|
protected void |
createAsyncEventQueue()
Creates a async event queue using the
ConfigPrms.asyncEventQueueConfig. |
void |
createHeavyIndexes() |
void |
doPutsUntilCriticalThenWaitForRecovery(boolean useIndexable) |
long |
getBytesUsed() |
int |
getOffHeapVerifyTargetCount()
Return the number of threads across the entire test that call off-heap memory validation.
|
static void |
goBelowEviction(com.gemstone.gemfire.internal.cache.GemFireCacheImpl cache) |
static void |
goCritical(com.gemstone.gemfire.internal.cache.GemFireCacheImpl cache) |
static void |
HydraTask_createHeavyIndexes() |
static void |
HydraTask_CriticalBounce() |
static void |
HydraTask_criticalThenDie() |
static void |
HydraTask_doIndexablePutsUntilCriticalThenWaitForRecovery() |
static void |
HydraTask_doPutsUntilCriticalThenWaitForRecovery() |
static void |
HydraTask_dropIndexes() |
static void |
HydraTask_HA_initializeAccessor()
Creates and initializes the singleton instance of ParRegTest in this VM
for HA testing with a PR accessor.
|
static void |
HydraTask_HA_initializeDataStore()
Creates and initializes the singleton instance of ParRegTest in this VM
for HA testing with a PR data store.
|
static void |
HydraTask_HA_reinitializeAccessor()
Creates and initializes the singleton instance of ParRegTest in this VM
for HA testing.
|
static void |
HydraTask_HA_reinitializeDataStore()
Creates and initializes the singleton instance of ParRegTest in this VM
for HA testing.
|
static void |
HydraTask_InitFakeHeapThresholds() |
static void |
HydraTask_initializeBridgeServer()
Creates and initializes a data store PR in a bridge server.
|
static void |
HydraTask_initializeNewWanWBCL()
Create AsyncEventListener as defined by
ConfigPrms.asyncEventQueueConfig
Create cache & region as defined by ConfigPrms. |
static void |
HydraTask_initializeWithRegDef()
Creates and initializes the singleton instance of ParRegTest in this VM.
|
static void |
HydraTask_makeCriticalUsage() |
static void |
HydraTask_makeHighUsage() |
static void |
HydraTask_makeLowUsage() |
static void |
HydraTask_populate() |
static void |
HydraTask_populateGatewayQueue() |
static void |
HydraTask_turnOnEvictionLate() |
static void |
HydraTask_turnOnGatewayDraining() |
static void |
HydraTask_waitForCriticalness() |
static void |
HydraTask_waitForLowMemoryThenDrainGateways() |
static void |
HydraTask_waitForLowMemoryThenDropIndexes() |
static void |
HydraTask_waitForLowMemoryThenTurnOnEviction() |
static void |
HydraTask_waitForStartupRecovery()
If this vm has a startup delay, wait for it.
|
void |
initNoEvictRegion() |
void |
populate() |
void |
populateGateways() |
protected void |
putAll(com.gemstone.gemfire.cache.Region r)
putall a map to the given region.
|
static void |
setCriticalPercentage(float percentage) |
static void |
setEvictionPercentage(float percentage) |
void |
simpleDestroy(int i) |
void |
simpleIndexablePut(int i) |
void |
simpleIndexablePut(int i,
boolean useCompression) |
void |
simplePut(int i) |
void |
simplePut(int i,
boolean useCompression) |
protected void |
updateEntry(com.gemstone.gemfire.cache.Region r)
Update an existing entry in the given region.
|
static long |
waitForAccessorTimestamp(String key) |
checkForLastIteration, checkForLastIteration, concVerify, createObject, cycleVms, cycleVMsNoWait, deleteDir, deleteExistingDiskDirs, destroyEntry, destroyPercent, doConcOps, doConcOpsAndVerify, doEntryOperations, doIntervalOps, doRROpsAndVerify, doShutDownAllMembers, getCachePrmsName, getClientRegionConfigName, getIsDataStore, getKey, getNewKey, getNewKey, getOperation, getOperation, getRecentKey, getRegionConfigName, getUpdateObject, getValueForBB, getValueForKey, HA_reinitializeClientRegion, HA_reinitializeRegion, HA_reinitializeRegion, HAController, HADoEntryOps, handleException, HydraTask_assignBucketsToPartitions, HydraTask_disconnect, HydraTask_doConcOps, HydraTask_doConcOpsAndVerify, HydraTask_doEntryOps, HydraTask_doEntryOpsDataLoss, HydraTask_doIntervalOps, HydraTask_doRROpsAndVerify, HydraTask_HA_reinitializeWithClientCache, HydraTask_HAController, HydraTask_HADoEntryOps, HydraTask_initialize, HydraTask_initializeBridgeServerAccessor, HydraTask_initializeWithClientCache, HydraTask_loadToUpperThreshold, HydraTask_logLocalSize, HydraTask_prepareForRecovery, HydraTask_prepareForValidation, HydraTask_recoveryController, HydraTask_recoveryEntryOps, HydraTask_restoreBackups, HydraTask_shutDownAllHAController, HydraTask_shutDownAllHADoEntryOps, HydraTask_startVmAndRebalance, HydraTask_stopStartVMs, HydraTask_validateInternalPRState, HydraTask_validateIntervalOps, HydraTask_validatePR, HydraTask_validateRegionContents, HydraTask_verifyFromSnapshotAndSync, HydraTask_verifyRecoveredVMsFromSnapshotAndSync, HydraTask_waitForMyStartupRecovery, HydraTask_writeDiskDirsToBB, initForIntervalValidation, initializeClientRegion, initializeInstance, initializeRegion, initializeRegion, initializeWithRegDef, initPdxDiskStore, invalidateEntry, logExecutionNumber, loseAndRecreatePR, putIfAbsent, putIfAbsentAsCreate, putIfAbsentAsGet, recordFailedOps, recoveryController, recoveryEntryOps, registerInterest, remove, removeAccessors, removeAsNoop, replace, replaceAsNoop, replaceAsUpdate, replaceOld, replaceOldAsNoop, replaceOldAsUpdate, restoreRegionSnapshot, runRestoreScript, saveRegionSnapshot, setUniqueKeyIndex, shutDownAllHAController, shutDownAllHADoEntryOps, validateAfterRestore, validateIntervalOps, verifyFromSnapshot, verifyFromSnapshotOnly, verifyHDFSRegionFromSnapshot, verifyInternalPRState, verifyServerKeysFromSnapshot, verifyThinClientFromSnapshot, waitForRecoveryAfterCycleVMs, waitForSelfRecovery, writeHDFSRegionSnapshotToBBpublic static final String ACCESSOR_NO_LOW_MEM_TIMESTAMP
public static final String ACCESSOR_LOW_MEM_TIMESTAMP
protected static com.gemstone.gemfire.cache.Region noEvictRegion
public volatile resman.Indexable.ThresholdsTestStats testStats
public final ThresholdsTest.Inspector inspector
public static HydraThreadLocal localCriticalState
public static final String LOW_MEMORY_STATE
public static void HydraTask_initializeWithRegDef()
public static void HydraTask_initializeBridgeServer()
public static void HydraTask_HA_initializeAccessor()
public static void HydraTask_HA_initializeDataStore()
public static void HydraTask_initializeNewWanWBCL()
ConfigPrms.asyncEventQueueConfig
Create cache & region as defined by ConfigPrms.
Used in newWan WBCL tests to create a separate local wbcl regionpublic static void HydraTask_HA_reinitializeAccessor()
public static void HydraTask_HA_reinitializeDataStore()
public static void HydraTask_InitFakeHeapThresholds()
public static void HydraTask_CriticalBounce()
public static void goBelowEviction(com.gemstone.gemfire.internal.cache.GemFireCacheImpl cache)
public static void goCritical(com.gemstone.gemfire.internal.cache.GemFireCacheImpl cache)
protected void clearBBCriticalState(List<ClientVmInfo> targetVMs)
ParRegTestclearBBCriticalState in class ParRegTestpublic static void HydraTask_makeHighUsage()
throws Exception
Exceptionpublic static void HydraTask_makeCriticalUsage()
throws Exception
Exceptionpublic static void HydraTask_criticalThenDie()
throws Exception
Exceptionpublic static void HydraTask_makeLowUsage()
throws Exception
Exceptionpublic static void HydraTask_turnOnGatewayDraining()
throws TestException
TestExceptionprotected void createAsyncEventQueue()
ConfigPrms.asyncEventQueueConfig.public static void HydraTask_waitForStartupRecovery()
public static void setCriticalPercentage(float percentage)
public static void setEvictionPercentage(float percentage)
public static void HydraTask_turnOnEvictionLate()
throws TestException
TestExceptionpublic static void HydraTask_waitForCriticalness()
throws TestException
TestExceptionpublic void initNoEvictRegion()
public static long waitForAccessorTimestamp(String key) throws TestException
TestExceptionpublic static void HydraTask_waitForLowMemoryThenDrainGateways()
public static void HydraTask_waitForLowMemoryThenTurnOnEviction()
public static void HydraTask_waitForLowMemoryThenDropIndexes()
public static void HydraTask_dropIndexes()
throws TestException
TestExceptionpublic static void HydraTask_doIndexablePutsUntilCriticalThenWaitForRecovery()
throws TestException
TestExceptionpublic static void HydraTask_doPutsUntilCriticalThenWaitForRecovery()
throws TestException
TestExceptionpublic void doPutsUntilCriticalThenWaitForRecovery(boolean useIndexable)
throws TestException
TestExceptionpublic static void HydraTask_createHeavyIndexes()
public void createHeavyIndexes()
public static void HydraTask_populate()
public void populate()
public static void HydraTask_populateGatewayQueue()
public void populateGateways()
public void simpleIndexablePut(int i)
public void simpleIndexablePut(int i,
boolean useCompression)
public void simplePut(int i)
public void simplePut(int i,
boolean useCompression)
public void simpleDestroy(int i)
protected Object addEntry(com.gemstone.gemfire.cache.Region r)
ParRegTestaddEntry in class ParRegTestpublic long getBytesUsed()
protected void putAll(com.gemstone.gemfire.cache.Region r)
ParRegTestputAll in class ParRegTestprotected void updateEntry(com.gemstone.gemfire.cache.Region r)
ParRegTestupdateEntry in class ParRegTestpublic int getOffHeapVerifyTargetCount()
ParRegTestgetOffHeapVerifyTargetCount in class ParRegTestCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.