public class CacheStatisticsTest extends CacheTestCase
CacheStatistics that are maintained by a Region and a Region.Entry.DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static long |
lastAccessed
The last time an entry was accessed
|
protected static long |
lastModified |
protected static long |
lastModifiedLocal |
protected static long |
lastModifiedRemote |
cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
CacheStatisticsTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertInRange(long start,
long end,
long actual)
Asserts that two
longs are equal concerning a
delta. |
void |
testDisabledStatistics()
Tests that an attempt to get statistics when they are disabled
results in a
StatisticsDisabledException. |
void |
testDistributedStats()
Tests that distributed operations update the
last modified time, but not
the last accessed
time. |
void |
testHitMissCount()
Tests that the
hit count and
miss count are updated
properly for a local region and its entries. |
void |
testTimeStats()
Tests that the last access time and
last modified time are update appropriately for a local region
and its entries. |
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, toStringprotected static volatile long lastAccessed
protected static volatile long lastModified
protected static volatile long lastModifiedLocal
protected static volatile long lastModifiedRemote
public CacheStatisticsTest(String name)
public static void assertInRange(long start,
long end,
long actual)
longs are equal concerning a
delta.public void testHitMissCount()
throws com.gemstone.gemfire.cache.CacheException
hit count and
miss count are updated
properly for a local region and its entries.com.gemstone.gemfire.cache.CacheExceptionpublic void testTimeStats()
throws com.gemstone.gemfire.cache.CacheException,
InterruptedException
last modified time are update appropriately for a local region
and its entries. It also validates that the last modification
and last access times are propagated to parent regions.com.gemstone.gemfire.cache.CacheExceptionInterruptedExceptionpublic void testDistributedStats()
last modified time, but not
the last accessed
time. It also validates that distributed operations do not
affect the hit and miss counts in remote caches.public void testDisabledStatistics()
throws com.gemstone.gemfire.cache.CacheException
StatisticsDisabledException.com.gemstone.gemfire.cache.CacheExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.