public class DiskRegionTest extends CacheTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
DiskRegionTest(String name)
Creates a new
DiskRegionTest |
| Modifier and Type | Method and Description |
|---|---|
void |
assertArrayEquals(Object expected,
Object v) |
void |
fillUpOverflowRegion()
Tests that an
IllegalStateException is thrown when the
region is full of keys and entries. |
protected com.gemstone.gemfire.internal.cache.lru.LRUStatistics |
getLRUStats(com.gemstone.gemfire.cache.Region region)
Returns the
LRUStatistics for the given region |
void |
testBackup() |
void |
testBackupStatistics()
Tests that the disk region statistics are updated correctly for
persist backup regions.
|
void |
testCacheEvents()
Tests cache listeners in an overflow region are invoked and that
their events are reasonable.
|
void |
testDestroy()
Tests destroying entries in an overflow region
|
void |
testDiskRegionOverflow()
Tests that data overflows correctly to a disk region
|
void |
testDistributedInvalidate()
Tests that invalidates and updates received from different VMs
are handled appropriately by overflow regions.
|
void |
testEvictValueOnRegionWithEvictionAttributes()
Tests calling region.evictValue() on region with eviction-attribute set.
|
void |
testInvalidate()
Tests that once an overflowed entry is invalidated its value is gone.
|
void |
testLowLevelGetMethods()
Tests the
getValueInVM and
getValueOnDisk methods that
were added for testing. |
void |
testLRUCapacityController()
Tests disk overflow with an entry-based
LRUCapacityController. |
void |
testLRUCCSizeOne()
Tests a disk-based region with an
LRUCapacityController
with size 1 and an eviction action of "overflow". |
void |
testNoFaults()
Overflows a region and makes sure that gets of recently-used
objects do not cause faults.
|
void |
testOverflowMirror()
Tests overflow with mirrored regions.
|
void |
testOverflowUpdatedValue()
Tests that the updated value gets overflowed
|
void |
testPersistentReplicateB4NonPersistent() |
void |
testRegionEntryValues()
Tests getting the values of
region entries that have been overflowed.
|
void |
testRegionEvictValue()
Tests for region.evictValue().
|
void |
testRemoteUpdates()
Makes sure that updates from other VMs cause existing entries to
be written to disk.
|
void |
testRRProxyWithPersistentReplicates() |
void |
testTestHookStatistics()
Tests that the "test hook"
DiskRegionStats work as
advertised. |
void |
testValues()
Tests iterating over all of the values when some have been
overflowed.
|
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, sendUnorderedMessageToAll, tearDown2addExpectedException, 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, setUp, 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, toStringpublic DiskRegionTest(String name)
DiskRegionTestprotected com.gemstone.gemfire.internal.cache.lru.LRUStatistics getLRUStats(com.gemstone.gemfire.cache.Region region)
LRUStatistics for the given regionpublic void testDiskRegionOverflow()
throws Exception
Exceptionpublic void testRemoteUpdates()
throws Exception
Exceptionpublic void testNoFaults()
throws Exception
Exceptionpublic void testOverflowMirror()
throws Exception
byte array values in this test. Otherwise, the size
of the data in the "puter" VM would be different from the size of
the data in the receiver VM, thus cause the two VMs to have
different LRU eviction behavior.Exceptionpublic void testDestroy()
throws Exception
Exceptionpublic void testCacheEvents()
throws Exception
Exceptionpublic void fillUpOverflowRegion()
throws Exception
IllegalStateException is thrown when the
region is full of keys and entries.Exceptionpublic void testValues()
throws Exception
Exceptionpublic void testRegionEvictValue()
throws Exception
Exceptionpublic void testEvictValueOnRegionWithEvictionAttributes()
throws Exception
Exceptionpublic void testBackupStatistics()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void testRegionEntryValues()
throws Exception
Exceptionpublic void testInvalidate()
throws Exception
Exceptionpublic void testDistributedInvalidate()
throws Exception
Exceptionpublic void testOverflowUpdatedValue()
throws Exception
Exceptionpublic void testTestHookStatistics()
throws Exception
DiskRegionStats work as
advertised.Exceptionpublic void testLowLevelGetMethods()
throws Exception
getValueInVM and
getValueOnDisk methods that
were added for testing.Exceptionpublic void testLRUCapacityController()
throws com.gemstone.gemfire.cache.CacheException
LRUCapacityController.com.gemstone.gemfire.cache.CacheExceptionpublic void testLRUCCSizeOne()
throws com.gemstone.gemfire.cache.CacheException
LRUCapacityController
with size 1 and an eviction action of "overflow".com.gemstone.gemfire.cache.CacheExceptionpublic void testPersistentReplicateB4NonPersistent()
public void testRRProxyWithPersistentReplicates()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.