public class MemoryThresholdsDUnitTest extends BridgeTestCase
ResourceManager| Modifier and Type | Class and Description |
|---|---|
static class |
MemoryThresholdsDUnitTest.Range |
BridgeTestCase.BridgeServerCacheLoaderDistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2AUTO_LOAD_BALANCE, BridgeServerKey, NON_EXISTENT_KEYcachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
MemoryThresholdsDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
static List<Integer> |
createRanges(int... startEnds)
Create a list of integers consisting of the ranges defined by the provided
argument e.g..
|
protected Properties |
getClientProps() |
protected Properties |
getServerProperties(int mcastPort) |
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
Tears down the test.
|
void |
testBug45513() |
void |
testCleanAdvisorClose() |
void |
testCriticalMemoryEventTolerance() |
void |
testDisabledThresholds()
test that disabling threshold does not cause remote event and
remote DISABLED events are delivered
|
void |
testDistributedRegionClientPutRejection() |
void |
testDistributedRegionRemoteClientPutRejection()
test that puts in a client are rejected when a remote VM crosses
critical threshold
|
void |
testDistributedRegionRemotePutRejectionBelowThreshold() |
void |
testDistributedRegionRemotePutRejectionCacheClose() |
void |
testDistributedRegionRemotePutRejectionLocalDestroy() |
void |
testDRFunctionExecutionRejection() |
void |
testDRLoadRejection()
Test that DistributedRegion cacheLoade and netLoad are passed through to the
calling thread if the local VM is in a critical state.
|
void |
testEventDelivery()
Make sure appropriate events are delivered when moving
between states.
|
void |
testEvictionMemoryEventTolerance() |
void |
testFunctionExecutionRejection() |
void |
testLocalStatListenerRegistration()
putting this test here because junit does not have host stat sampler enabled
|
void |
testLRLoadRejection()
Test that LocalRegion cache Loads are not stored in the Region
if the VM is in a critical state, then test that they are allowed
once the VM is no longer critical
|
void |
testPR_RemotePutRejection() |
void |
testPR_RemotePutRejectionCacheClose() |
void |
testPR_RemotePutRejectionCacheCloseWithTx() |
void |
testPR_RemotePutRejectionLocalDestroy() |
void |
testPR_RemotePutRejectionLocalDestroyWithTx() |
void |
testPR_RemotePutRejectionWithTx() |
void |
testPRClientPutRejection() |
void |
testPRFunctionExecutionRejection() |
void |
testPRLoadRejection()
Test that a Partitioned Region loader invocation is rejected
if the VM with the bucket is in a critical state.
|
void |
testTxCommitInCritical() |
caseSetUp, caseTearDown, configureConnectionPool, configureConnectionPool, configureConnectionPool, configureConnectionPool, configureConnectionPool, configureConnectionPool, configureConnectionPool, configureConnectionPoolWithName, configureConnectionPoolWithName, configureConnectionPoolWithNameAndFactory, configureConnectionPoolWithNameAndFactory, createBridgeClientConnection, createBridgeServer, createUniquePorts, getDistributedMember, getMaxThreads, getMemberId, getRegionAttributes, getSystemProperties, startBridgeServer, stopBridgeServersaddExceptionTag1, 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, toStringpublic MemoryThresholdsDUnitTest(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 testDistributedRegionClientPutRejection()
throws Exception
Exceptionpublic void testDistributedRegionRemotePutRejectionLocalDestroy()
throws Exception
Exceptionpublic void testDistributedRegionRemotePutRejectionCacheClose()
throws Exception
Exceptionpublic void testDistributedRegionRemotePutRejectionBelowThreshold()
throws Exception
Exceptionpublic void testBug45513()
public void testDistributedRegionRemoteClientPutRejection()
throws Exception
Exceptionpublic void testDisabledThresholds()
throws Exception
Exceptionpublic void testEventDelivery()
throws Exception
Exceptionpublic void testPR_RemotePutRejectionLocalDestroy()
throws Exception
Exceptionpublic void testPR_RemotePutRejectionCacheClose()
throws Exception
Exceptionpublic void testPR_RemotePutRejection()
throws Exception
Exceptionpublic void testPR_RemotePutRejectionLocalDestroyWithTx()
throws Exception
Exceptionpublic void testPR_RemotePutRejectionCacheCloseWithTx()
throws Exception
Exceptionpublic void testPR_RemotePutRejectionWithTx()
throws Exception
Exceptionpublic void testDRFunctionExecutionRejection()
throws Exception
Exceptionpublic void testPRFunctionExecutionRejection()
throws Exception
Exceptionpublic void testFunctionExecutionRejection()
throws Exception
Exceptionprotected Properties getClientProps()
protected Properties getServerProperties(int mcastPort)
public void testLocalStatListenerRegistration()
throws Exception
Exceptionpublic void testLRLoadRejection()
throws Exception
Exceptionpublic static List<Integer> createRanges(int... startEnds)
public void testDRLoadRejection()
throws Exception
Exceptionpublic void testPRLoadRejection()
throws Exception
Exceptionpublic void testCriticalMemoryEventTolerance()
public void testEvictionMemoryEventTolerance()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.