public abstract class DiskRegTest extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static int |
ADD_OPERATION |
protected com.gemstone.gemfire.cache.Region |
aRegion |
protected static com.gemstone.gemfire.cache.RegionAttributes |
attr |
protected static int |
DESTROY_OPERATION |
protected static int |
DISK_FOR_OVRFLW |
protected static int |
DISK_FOR_OVRFLW_PERSIST |
protected static int |
DISK_FOR_PERSIST |
protected int |
evictionLimit |
protected static int |
INVALIDATE_OPERATION |
protected boolean |
isReplicated |
protected static int |
KEY_LENGTH |
protected static int |
LOCAL_DESTROY_OPERATION |
protected static int |
LOCAL_INVALIDATE_OPERATION |
protected int |
lowerThreshold |
protected String |
lruKind |
protected static int |
NO_DISK |
protected long |
numDiskDirs |
protected int |
numVMs |
protected boolean |
persistBackup |
protected static int |
PUT_IF_ABSENT |
protected RandomValues |
randomValues |
protected static int |
READ_OPERATION |
protected static String |
REGION_NAME |
protected static String |
regionConfig |
protected int |
regionKind |
protected static int |
REMOVE |
protected static int |
REPLACE |
protected static String |
spaceKey |
static DiskRegTest |
testInstance |
protected static int |
UPDATE_OPERATION |
protected int |
upperThreshold |
| Constructor and Description |
|---|
DiskRegTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEntries()
Add multiple entries to the region
This adds new keys never added before.
|
protected Object[] |
addEntry()
Add an entry to the region
adds a new key, never added before.
|
protected static void |
checkForEventError() |
protected void |
destroyEntry(boolean isLocalDestroy)
destroy an entry
|
protected void |
doEntryOperations() |
protected com.gemstone.gemfire.cache.CacheLoader |
getCacheLoader() |
com.gemstone.gemfire.cache.CacheListener |
getEventListener() |
protected static String |
getFixedLengthKeyForName(String name) |
Object |
getNewKey() |
Object |
getNewValue(Object key) |
protected Object |
getOldOrRecentKey()
Get an existing key.
|
protected int |
getOperation(Long whichPrm) |
Object |
getPreviousKey(int range) |
protected Object |
getUpdateObject(String key) |
static void |
HydraTask_doEntryOperations() |
static void |
HydraTask_endTask() |
static void |
HydraTask_mirrorKeysEndTask() |
protected void |
initialize()
Initialize this test instance
|
protected void |
invalidateEntry(boolean isLocalInvalidate)
Invalidate an entry
|
protected Object[] |
putIfAbsent()
Add an entry to the region using the putIfAbsent API
adds a new key, never added before.
|
protected Object[] |
randomGet(int range)
Do a get in order to try to bring in entries from other distributed
caches.
|
protected void |
readEntry()
read an object
|
protected String |
regionKindToString(int kind)
Return a string describing the given regionKind.
|
protected void |
remove()
remove an entry
|
protected static void |
removeDiskRegionFiles()
Called to remove disk region files after a run.
|
protected void |
replace()
replace an entry
|
protected static com.gemstone.gemfire.cache.Region |
setupForRecovery(String regionName)
If there is a backup disk region from this test run, use it to create a
region with persist backup so it can be recovered.
|
String |
toVerboseString()
Return a string describing this test instance.
|
protected void |
updateEntry()
update an entry
|
boolean |
useCacheLoader() |
public static DiskRegTest testInstance
protected static com.gemstone.gemfire.cache.RegionAttributes attr
protected static String regionConfig
protected static final String REGION_NAME
protected static final int KEY_LENGTH
protected static final int NO_DISK
protected static final int DISK_FOR_OVRFLW
protected static final int DISK_FOR_PERSIST
protected static final int DISK_FOR_OVRFLW_PERSIST
protected static final int ADD_OPERATION
protected static final int UPDATE_OPERATION
protected static final int INVALIDATE_OPERATION
protected static final int DESTROY_OPERATION
protected static final int READ_OPERATION
protected static final int LOCAL_INVALIDATE_OPERATION
protected static final int LOCAL_DESTROY_OPERATION
protected static final int PUT_IF_ABSENT
protected static final int REPLACE
protected static final int REMOVE
protected int lowerThreshold
protected int upperThreshold
protected com.gemstone.gemfire.cache.Region aRegion
protected RandomValues randomValues
protected int regionKind
protected int numVMs
protected boolean persistBackup
protected int evictionLimit
protected long numDiskDirs
protected String lruKind
protected boolean isReplicated
protected static String spaceKey
protected void initialize()
public static void HydraTask_doEntryOperations()
protected void doEntryOperations()
protected void addEntries()
protected Object[] addEntry()
protected Object[] putIfAbsent()
protected void invalidateEntry(boolean isLocalInvalidate)
protected void destroyEntry(boolean isLocalDestroy)
protected void remove()
protected void updateEntry()
protected void replace()
protected void readEntry()
protected Object[] randomGet(int range)
range - How far back in previously created keys to look.public Object getNewKey()
public com.gemstone.gemfire.cache.CacheListener getEventListener()
public Object getPreviousKey(int range)
protected static void checkForEventError()
protected com.gemstone.gemfire.cache.CacheLoader getCacheLoader()
public String toVerboseString()
protected String regionKindToString(int kind)
protected int getOperation(Long whichPrm)
protected Object getOldOrRecentKey()
protected static void removeDiskRegionFiles()
public static void HydraTask_endTask()
protected static com.gemstone.gemfire.cache.Region setupForRecovery(String regionName)
public static void HydraTask_mirrorKeysEndTask()
public boolean useCacheLoader()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.