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(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.Integer> |
createRanges(int... startEnds)
Create a list of integers consisting of the ranges defined by the provided
argument e.g..
|
protected java.util.Properties |
getClientProps() |
protected java.util.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(java.lang.String name)
public void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class DistributedTestCasejava.lang.Exceptionpublic void tearDown2()
throws java.lang.Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class CacheTestCasejava.lang.Exceptionpublic void testPRClientPutRejection()
throws java.lang.Exception
java.lang.Exceptionpublic void testDistributedRegionClientPutRejection()
throws java.lang.Exception
java.lang.Exceptionpublic void testDistributedRegionRemotePutRejectionLocalDestroy()
throws java.lang.Exception
java.lang.Exceptionpublic void testDistributedRegionRemotePutRejectionCacheClose()
throws java.lang.Exception
java.lang.Exceptionpublic void testDistributedRegionRemotePutRejectionBelowThreshold()
throws java.lang.Exception
java.lang.Exceptionpublic void testBug45513()
public void testDistributedRegionRemoteClientPutRejection()
throws java.lang.Exception
java.lang.Exceptionpublic void testDisabledThresholds()
throws java.lang.Exception
java.lang.Exceptionpublic void testEventDelivery()
throws java.lang.Exception
java.lang.Exceptionpublic void testCleanAdvisorClose()
throws java.lang.Exception
java.lang.Exceptionpublic void testPR_RemotePutRejectionLocalDestroy()
throws java.lang.Exception
java.lang.Exceptionpublic void testPR_RemotePutRejectionCacheClose()
throws java.lang.Exception
java.lang.Exceptionpublic void testPR_RemotePutRejection()
throws java.lang.Exception
java.lang.Exceptionpublic void testPR_RemotePutRejectionLocalDestroyWithTx()
throws java.lang.Exception
java.lang.Exceptionpublic void testPR_RemotePutRejectionCacheCloseWithTx()
throws java.lang.Exception
java.lang.Exceptionpublic void testPR_RemotePutRejectionWithTx()
throws java.lang.Exception
java.lang.Exceptionpublic void testTxCommitInCritical()
throws java.lang.Exception
java.lang.Exceptionpublic void testDRFunctionExecutionRejection()
throws java.lang.Exception
java.lang.Exceptionpublic void testPRFunctionExecutionRejection()
throws java.lang.Exception
java.lang.Exceptionpublic void testFunctionExecutionRejection()
throws java.lang.Exception
java.lang.Exceptionprotected java.util.Properties getClientProps()
protected java.util.Properties getServerProperties(int mcastPort)
public void testLocalStatListenerRegistration()
throws java.lang.Exception
java.lang.Exceptionpublic void testLRLoadRejection()
throws java.lang.Exception
java.lang.Exceptionpublic static java.util.List<java.lang.Integer> createRanges(int... startEnds)
public void testDRLoadRejection()
throws java.lang.Exception
java.lang.Exceptionpublic void testPRLoadRejection()
throws java.lang.Exception
java.lang.Exceptionpublic void testCriticalMemoryEventTolerance()
public void testEvictionMemoryEventTolerance()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.