public class EvictionTestBase extends CacheTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static com.gemstone.gemfire.cache.Cache |
cache |
protected static VM |
dataStore1 |
protected static VM |
dataStore2 |
protected static VM |
dataStore3 |
protected static VM |
dataStore4 |
protected static com.gemstone.gemfire.cache.Region |
region |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
EvictionTestBase(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
bringVMBackToLife() |
static void |
close() |
void |
createCache() |
void |
createCacheInAllVms() |
static void |
createCacheInVm() |
void |
createDistRegion() |
static void |
createDistRegionWithMemEvictionAttr() |
void |
createDistributedRegion() |
void |
createPartitionedRegion(boolean setEvictionOn,
com.gemstone.gemfire.cache.EvictionAlgorithm evictionAlgorithm,
String regionName,
int totalNoOfBuckets,
int evictionAction,
int evictorInterval,
int maxEnteries) |
protected void |
createPartitionedRegionInAllVMS(boolean setEvictionOn,
com.gemstone.gemfire.cache.EvictionAlgorithm evictionAlgorithm,
String regionName,
int totalNoOfBuckets,
int evictionAction,
int evictorInterval,
int maxEntries) |
void |
fakeNotification() |
com.gemstone.gemfire.internal.cache.lru.HeapEvictor |
getEvictor() |
int |
getExpectedEvictionRatioOnVm(VM vm) |
boolean |
getOffHeapEnabled() |
int |
getPRSize(String string) |
com.gemstone.gemfire.internal.cache.control.InternalResourceManager.ResourceType |
getResourceType() |
ArrayList |
getTestTaskSetSizes() |
void |
killVm() |
void |
prepareScenario1(com.gemstone.gemfire.cache.EvictionAlgorithm evictionAlgorithm,
int maxEntries) |
void |
prepareScenario2(com.gemstone.gemfire.cache.EvictionAlgorithm evictionAlgorithm,
String partitionRegion1,
String partitionRegion2) |
static void |
print(String regionName) |
static void |
putData(String regionName,
int noOfElememts,
int sizeOfElement) |
static void |
putDataInDataStore3(String regionName,
int noOfElememts,
int sizeOfElement) |
static void |
putDataInDistributedRegion(int noOfElememts,
int sizeOfElement) |
void |
raiseFakeNotification(VM vm,
String prName,
int noOfExpectedEvictions) |
static int |
returnPRSize(String string) |
void |
sendFakeNotification() |
static void |
setTolerance() |
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
Tears down the test.
|
void |
validateNoOfEvictions(String regionName,
int noOfEvictions) |
void |
validateNoOfEvictionsInDataStore3N4(String regionName,
int noOfEvictions) |
void |
verifyThreadPoolTaskCount(int taskCountToBeVerified) |
addExceptionTag1, basicGetCache, beginCacheXml, cleanDiskDirs, closeAllCache, closeCache, createLonerCache, createMcastCache, createMcastCache, createRegion, createRegion, createRootRegion, createRootRegion, disconnectFromDS, finishCacheXml, finishCacheXml, getCache, getCache, getCache, getCache, getClientCache, getDiskDirs, getGemfireCache, getInternalRegionArguments, getRootRegion, getRootRegion, hasCache, remoteTearDown, removeExceptionTag1, sendSerialMessageToAll, sendUnorderedMessageToAlladdExpectedException, addExpectedException, addHydraProperties, attachDebugger, checkBBFlag, cleanupAllVms, clearBBFlag, crashDistributedSystem, crashDistributedSystem, createLogWriter, disconnectAllFromDS, dumpAllStacks, dumpMyThreads, dumpStack, dumpStack, dumpStack, dumpStackTrace, fail, getAllDistributedSystemProperties, getDistributedSystemProperties, getDUnitLocatorAddress, getDUnitLocatorPort, getDUnitLocatorString, getDUnitLogLevel, getIPLiteral, getLogWriter, getLonerSystem, getMcastSystem, getMcastSystem, getRepeatTimeoutMs, getServerHostName, getSystem, getSystem, getTestClass, getTestName, getUniqueName, getVMCount, incBBFlag, invokeInEveryVM, invokeInEveryVM, invokeInEveryVM, invokeInEveryVM, invokeInEveryVMRepeatingIfNecessary, invokeInLocator, invokeRepeatingIfNecessary, isConnectedToDS, join, noteTiming, pause, pause, perVMSetUp, realTearDown, setDiskStoreForGateway, setSystem, setTestName, staticPause, tearDown, unregisterAllDataSerializersFromAllVms, unregisterDataSerializerInThisVM, unregisterInstantiatorsInThisVM, waitForBBFlag, waitForCriterion, waitMutexassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toStringprotected static com.gemstone.gemfire.cache.Cache cache
protected static VM dataStore1
protected static VM dataStore2
protected static VM dataStore3
protected static VM dataStore4
protected static com.gemstone.gemfire.cache.Region region
public EvictionTestBase(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class CacheTestCaseExceptionpublic void prepareScenario1(com.gemstone.gemfire.cache.EvictionAlgorithm evictionAlgorithm,
int maxEntries)
public void raiseFakeNotification(VM vm, String prName, int noOfExpectedEvictions)
public void prepareScenario2(com.gemstone.gemfire.cache.EvictionAlgorithm evictionAlgorithm,
String partitionRegion1,
String partitionRegion2)
public void fakeNotification()
public void sendFakeNotification()
public static void setTolerance()
public void createDistributedRegion()
public void createDistRegion()
public static void createDistRegionWithMemEvictionAttr()
public void createCacheInAllVms()
public static void createCacheInVm()
public void createCache()
public ArrayList getTestTaskSetSizes()
protected void createPartitionedRegionInAllVMS(boolean setEvictionOn,
com.gemstone.gemfire.cache.EvictionAlgorithm evictionAlgorithm,
String regionName,
int totalNoOfBuckets,
int evictionAction,
int evictorInterval,
int maxEntries)
public void createPartitionedRegion(boolean setEvictionOn,
com.gemstone.gemfire.cache.EvictionAlgorithm evictionAlgorithm,
String regionName,
int totalNoOfBuckets,
int evictionAction,
int evictorInterval,
int maxEnteries)
public static void putData(String regionName, int noOfElememts, int sizeOfElement)
public static void putDataInDistributedRegion(int noOfElememts,
int sizeOfElement)
public void validateNoOfEvictions(String regionName, int noOfEvictions)
public void verifyThreadPoolTaskCount(int taskCountToBeVerified)
public static void putDataInDataStore3(String regionName, int noOfElememts, int sizeOfElement)
public static void print(String regionName)
public void validateNoOfEvictionsInDataStore3N4(String regionName, int noOfEvictions)
public void killVm()
public static void close()
public void bringVMBackToLife()
public int getPRSize(String string)
public static int returnPRSize(String string)
public boolean getOffHeapEnabled()
public com.gemstone.gemfire.internal.cache.lru.HeapEvictor getEvictor()
public int getExpectedEvictionRatioOnVm(VM vm)
public com.gemstone.gemfire.internal.cache.control.InternalResourceManager.ResourceType getResourceType()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.