public class MultiPRHeapEvictionBehaviorTest extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ENTRY_SIZE_IN_BYTES |
protected static int |
evictionThresholdKeys |
protected static int |
extraKeysToBePopulatedInRegionBLastBucket |
static int |
MAX_KEYS_TO_BE_POPULATED |
protected static com.gemstone.gemfire.internal.cache.PartitionedRegion |
regionA |
protected static com.gemstone.gemfire.internal.cache.PartitionedRegion |
regionB |
static int |
START_OF_LAST_BUCKETS_ID |
protected static MultiPRHeapEvictionBehaviorTest |
testInstance |
protected static com.gemstone.gemfire.cache.Cache |
theCache |
protected static int |
totalEvictedEntries |
| Constructor and Description |
|---|
MultiPRHeapEvictionBehaviorTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
HydraTask_initialize()
Initialize the test and the regions
|
static void |
HydraTask_logRegionSize() |
static void |
HydraTask_printBucketAndDiskEntries() |
static void |
HydraTask_putExtraKeysWithSleep()
This task is done once the regions are populated till the eviction
threshold is reached.
|
static void |
HydraTask_putUnEvenlyTillThreshold()
Task to populate both the regions incrementally till it reaches the
threshold
|
static void |
HydraTask_verifyProportionateEviction()
Task to verify that even though the eviction is trigerred by one PR,
both the PRs evict and they do in proportion to the bucket sizes
|
protected void |
initialize(String regionDescriptName) |
protected void |
logRegionSize(com.gemstone.gemfire.internal.cache.PartitionedRegion aRegion) |
protected void |
populateSequentiallyAndIncrementally() |
protected void |
populateSpecificBucketofRegionWithSleep(com.gemstone.gemfire.internal.cache.PartitionedRegion aRegion,
int bucketId,
int numEntries) |
protected void |
populateSpecificBucketSpecificSize(int bucketId,
int maxEntriesPerBucket,
int totalNumBuckets) |
protected void |
printBucketAndDiskEntries(com.gemstone.gemfire.internal.cache.PartitionedRegion aRegion) |
protected void |
verifyNoEviction(com.gemstone.gemfire.internal.cache.PartitionedRegion aRegion)
Task to verify that no eviction happened in the region.
|
protected void |
verifyProportionateEviction(com.gemstone.gemfire.internal.cache.PartitionedRegion aRegion)
Verify that the eviction of buckets in a manner that fatter buckets evict more.
|
protected static MultiPRHeapEvictionBehaviorTest testInstance
protected static com.gemstone.gemfire.cache.Cache theCache
public static final int MAX_KEYS_TO_BE_POPULATED
public static final int ENTRY_SIZE_IN_BYTES
public static final int START_OF_LAST_BUCKETS_ID
protected static int totalEvictedEntries
protected static int evictionThresholdKeys
protected static int extraKeysToBePopulatedInRegionBLastBucket
protected static com.gemstone.gemfire.internal.cache.PartitionedRegion regionA
protected static com.gemstone.gemfire.internal.cache.PartitionedRegion regionB
public static void HydraTask_initialize()
protected void initialize(String regionDescriptName)
public static void HydraTask_putUnEvenlyTillThreshold()
public static void HydraTask_putExtraKeysWithSleep()
public static void HydraTask_logRegionSize()
public static void HydraTask_printBucketAndDiskEntries()
public static void HydraTask_verifyProportionateEviction()
protected void logRegionSize(com.gemstone.gemfire.internal.cache.PartitionedRegion aRegion)
protected void populateSequentiallyAndIncrementally()
protected void populateSpecificBucketSpecificSize(int bucketId,
int maxEntriesPerBucket,
int totalNumBuckets)
protected void populateSpecificBucketofRegionWithSleep(com.gemstone.gemfire.internal.cache.PartitionedRegion aRegion,
int bucketId,
int numEntries)
protected void printBucketAndDiskEntries(com.gemstone.gemfire.internal.cache.PartitionedRegion aRegion)
protected void verifyProportionateEviction(com.gemstone.gemfire.internal.cache.PartitionedRegion aRegion)
aRegion - protected void verifyNoEviction(com.gemstone.gemfire.internal.cache.PartitionedRegion aRegion)
aRegion - Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.