public class SerialDiskRegTest extends DiskRegTest
| Modifier and Type | Field and Description |
|---|---|
protected long |
bytesPerEntry_keyOnly |
protected long |
bytesPerEntry_keyValue |
protected boolean |
checkLRU |
protected boolean |
isMemLRU |
protected long |
maxBytes |
protected long |
minEvictionBytes |
protected long |
numEntriesDeviation |
protected long |
perEntryOverhead |
protected java.lang.String |
sharedMapKey |
ADD_OPERATION, aRegion, attr, DESTROY_OPERATION, DISK_FOR_OVRFLW, DISK_FOR_OVRFLW_PERSIST, DISK_FOR_PERSIST, evictionLimit, INVALIDATE_OPERATION, isReplicated, KEY_LENGTH, LOCAL_DESTROY_OPERATION, LOCAL_INVALIDATE_OPERATION, lowerThreshold, lruKind, NO_DISK, numDiskDirs, numVMs, persistBackup, PUT_IF_ABSENT, randomValues, READ_OPERATION, REGION_NAME, regionConfig, regionKind, REMOVE, REPLACE, spaceKey, testInstance, UPDATE_OPERATION, upperThreshold| Constructor and Description |
|---|
SerialDiskRegTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkOverflowEviction()
Check that the least recently used entry was evicted as overflow.
|
protected void |
checkValue(boolean expectedValue,
boolean actualValue,
java.lang.String valueDescript)
Verify the boolean has the expected value.
|
protected void |
checkValue(int expectedValue,
int actualValue,
java.lang.String valueDescript)
Verify the int has the expected value.
|
protected void |
checkValue(long expectedValue,
long actualValue,
java.lang.String valueDescript)
Verify the long has the expected value.
|
protected void |
checkValue(java.lang.Object expectedObj,
java.lang.Object actualObj,
java.lang.String descript)
Verify the Object has the expected value.
|
protected void |
doAddNew()
Add a new entry to the region, and verify the add.
|
protected void |
doGetOld()
Do a get of a previously added key to see if we can find it in another cache.
|
static void |
HydraTask_addNew()
Hydra task for careful validation of disk regions.
|
static void |
HydraTask_getOld()
Hydra task for careful validation of disk regions.
|
static void |
HydraTask_initialize()
initialize fields in this class and its superclass
|
protected void |
initialize()
Initialize this test instance
|
java.lang.String |
toVerboseString()
Return a string describing this test instance.
|
protected void |
verifyAfterAdd(java.lang.Object key,
java.lang.Object value,
long beforeNumKeys,
long beforeNumInVM,
long beforeNumOnDisk,
long beforeNumOverflowOnDisk)
Verify the state of the region after an add.
|
addEntries, addEntry, checkForEventError, destroyEntry, doEntryOperations, getCacheLoader, getEventListener, getFixedLengthKeyForName, getNewKey, getNewValue, getOldOrRecentKey, getOperation, getPreviousKey, getUpdateObject, HydraTask_doEntryOperations, HydraTask_endTask, HydraTask_mirrorKeysEndTask, invalidateEntry, putIfAbsent, randomGet, readEntry, regionKindToString, remove, removeDiskRegionFiles, replace, setupForRecovery, updateEntry, useCacheLoaderprotected java.lang.String sharedMapKey
protected boolean checkLRU
protected boolean isMemLRU
protected long bytesPerEntry_keyValue
protected long bytesPerEntry_keyOnly
protected long minEvictionBytes
protected long maxBytes
protected long perEntryOverhead
protected long numEntriesDeviation
public static void HydraTask_initialize()
protected void initialize()
DiskRegTestinitialize in class DiskRegTestpublic static void HydraTask_addNew()
public static void HydraTask_getOld()
protected void doAddNew()
protected void doGetOld()
protected void verifyAfterAdd(java.lang.Object key,
java.lang.Object value,
long beforeNumKeys,
long beforeNumInVM,
long beforeNumOnDisk,
long beforeNumOverflowOnDisk)
TestException - if any problems were detected.protected void checkValue(long expectedValue,
long actualValue,
java.lang.String valueDescript)
TestException - if the expected is not equal to the actual.protected void checkValue(int expectedValue,
int actualValue,
java.lang.String valueDescript)
TestException - if the expected is not equal to the actual.protected void checkValue(boolean expectedValue,
boolean actualValue,
java.lang.String valueDescript)
TestException - if the expected is not equal to the actual.protected void checkValue(java.lang.Object expectedObj,
java.lang.Object actualObj,
java.lang.String descript)
TestException - if the expected is not equal to the actual.protected void checkOverflowEviction()
public java.lang.String toVerboseString()
toVerboseString in class DiskRegTestCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.