public class EvictionObjectSizerDUnitTest extends CacheTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static com.gemstone.gemfire.cache.Cache |
cache |
protected static com.gemstone.gemfire.cache.Region |
region |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
EvictionObjectSizerDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
createCache() |
static void |
createPartitionedRegion(boolean setEvictionOn,
com.gemstone.gemfire.cache.EvictionAlgorithm evictionAlgorithm,
String regionName,
int totalNoOfBuckets,
int evictionAction,
int evictorInterval,
com.gemstone.gemfire.cache.util.ObjectSizer sizer) |
void |
prepareScenario(com.gemstone.gemfire.cache.EvictionAlgorithm evictionAlgorithm,
com.gemstone.gemfire.cache.util.ObjectSizer sizer) |
static int |
putData(String regionName,
int noOfElememts,
int sizeOfElement)
returns data size in bytes
|
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
Tears down the test.
|
void |
testObjectSizerForHeapLRU_CustomizedNonSizerObject()
With object sizer for customized value object implementing ObjectSizer .Key
-Integer Value TestNonSizerObject
|
void |
testObjectSizerForHeapLRU_CustomizedSizerObject()
With object sizer for customized value object implementing ObjectSizer .Key
-Integer Value TestObjectSizerImpl
|
void |
testObjectSizerForHeapLRU_CustomizedSizerObjects()
With object sizer for customized key and value objects.
|
void |
testObjectSizerForHeapLRU_StandardObjects()
With object sizer for standard objects.Key -Integer Value ByteArray
|
void |
testWithoutObjectSizerForHeapLRU()
Without object sizer
|
static void |
verifySize(String regionName,
int noOfElememts,
int entrySize) |
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 com.gemstone.gemfire.cache.Region region
public EvictionObjectSizerDUnitTest(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 testWithoutObjectSizerForHeapLRU()
public void testObjectSizerForHeapLRU_StandardObjects()
public void testObjectSizerForHeapLRU_CustomizedNonSizerObject()
public void testObjectSizerForHeapLRU_CustomizedSizerObject()
public void testObjectSizerForHeapLRU_CustomizedSizerObjects()
public void prepareScenario(com.gemstone.gemfire.cache.EvictionAlgorithm evictionAlgorithm,
com.gemstone.gemfire.cache.util.ObjectSizer sizer)
public void createCache()
public static void createPartitionedRegion(boolean setEvictionOn,
com.gemstone.gemfire.cache.EvictionAlgorithm evictionAlgorithm,
String regionName,
int totalNoOfBuckets,
int evictionAction,
int evictorInterval,
com.gemstone.gemfire.cache.util.ObjectSizer sizer)
public static int putData(String regionName, int noOfElememts, int sizeOfElement)
public static void verifySize(String regionName, int noOfElememts, int entrySize)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.