public class DiskRegionTest extends CacheTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
DiskRegionTest(java.lang.String name)
Creates a new
DiskRegionTest |
| Modifier and Type | Method and Description |
|---|---|
void |
assertArrayEquals(java.lang.Object expected,
java.lang.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(java.lang.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 java.lang.Exception
java.lang.Exceptionpublic void testRemoteUpdates()
throws java.lang.Exception
java.lang.Exceptionpublic void testNoFaults()
throws java.lang.Exception
java.lang.Exceptionpublic void testOverflowMirror()
throws java.lang.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.java.lang.Exceptionpublic void testDestroy()
throws java.lang.Exception
java.lang.Exceptionpublic void testCacheEvents()
throws java.lang.Exception
java.lang.Exceptionpublic void fillUpOverflowRegion()
throws java.lang.Exception
IllegalStateException is thrown when the
region is full of keys and entries.java.lang.Exceptionpublic void testValues()
throws java.lang.Exception
java.lang.Exceptionpublic void testRegionEvictValue()
throws java.lang.Exception
java.lang.Exceptionpublic void testEvictValueOnRegionWithEvictionAttributes()
throws java.lang.Exception
java.lang.Exceptionpublic void testBackupStatistics()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void assertArrayEquals(java.lang.Object expected,
java.lang.Object v)
public void testBackup()
throws java.lang.Exception
java.lang.Exceptionpublic void testRegionEntryValues()
throws java.lang.Exception
java.lang.Exceptionpublic void testInvalidate()
throws java.lang.Exception
java.lang.Exceptionpublic void testDistributedInvalidate()
throws java.lang.Exception
java.lang.Exceptionpublic void testOverflowUpdatedValue()
throws java.lang.Exception
java.lang.Exceptionpublic void testTestHookStatistics()
throws java.lang.Exception
DiskRegionStats work as
advertised.java.lang.Exceptionpublic void testLowLevelGetMethods()
throws java.lang.Exception
getValueInVM and
getValueOnDisk methods that
were added for testing.java.lang.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.