public class SearchAndLoadTest extends CacheTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static TestCacheListener |
listener
A
CacheListener used by a test |
protected static TestCacheLoader |
loader
A
CacheLoader used by a test |
protected static TestCacheWriter |
writer
A
CacheWriter used by a test |
cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
SearchAndLoadTest(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
cleanup()
Clears fields used by a test
|
static java.lang.Boolean |
fetchRemoteLoaderInvoked() |
static java.lang.Integer |
fetchRemoteLoaderInvokedCount() |
protected com.gemstone.gemfire.cache.RegionAttributes |
getRegionAttributes()
Returns region attributes for a
GLOBAL region |
void |
tearDown2()
Tears down the test.
|
void |
testEmptyNetLoad()
Confirm that a netLoad that returns null will NOT allow other netLoad methods
to be called.
|
void |
testLocalLoad() |
void |
testNetLoad() |
void |
testNetLoadNoLoaders() |
void |
testNetSearch() |
void |
testNetWrite() |
void |
testOneHopNetWrite() |
void |
testOneHopNetWriteRemoteWriter()
same as the previous test but the cache writer is in a third, non-replicated, vm
|
static boolean |
vmRemoteLoaderInvoked(VM vm) |
static int |
vmRemoteLoaderInvokedCount(VM vm) |
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, 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, 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 TestCacheListener listener
CacheListener used by a testprotected static TestCacheLoader loader
CacheLoader used by a testprotected static TestCacheWriter writer
CacheWriter used by a testpublic void tearDown2()
throws java.lang.Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class CacheTestCasejava.lang.Exceptionprotected static void cleanup()
protected com.gemstone.gemfire.cache.RegionAttributes getRegionAttributes()
GLOBAL regionpublic void testNetSearch()
throws com.gemstone.gemfire.cache.CacheException,
java.lang.InterruptedException
com.gemstone.gemfire.cache.CacheExceptionjava.lang.InterruptedExceptionpublic void testNetLoadNoLoaders()
throws com.gemstone.gemfire.cache.CacheException,
java.lang.InterruptedException
com.gemstone.gemfire.cache.CacheExceptionjava.lang.InterruptedExceptionpublic void testNetLoad()
throws com.gemstone.gemfire.cache.CacheException,
java.lang.InterruptedException
com.gemstone.gemfire.cache.CacheExceptionjava.lang.InterruptedExceptionpublic void testEmptyNetLoad()
throws com.gemstone.gemfire.cache.CacheException,
java.lang.InterruptedException
com.gemstone.gemfire.cache.CacheExceptionjava.lang.InterruptedExceptionpublic static boolean vmRemoteLoaderInvoked(VM vm)
public static int vmRemoteLoaderInvokedCount(VM vm)
public static java.lang.Boolean fetchRemoteLoaderInvoked()
public static java.lang.Integer fetchRemoteLoaderInvokedCount()
public void testLocalLoad()
throws com.gemstone.gemfire.cache.CacheException,
java.lang.InterruptedException
com.gemstone.gemfire.cache.CacheExceptionjava.lang.InterruptedExceptionpublic void testNetWrite()
throws com.gemstone.gemfire.cache.CacheException,
java.lang.InterruptedException
com.gemstone.gemfire.cache.CacheExceptionjava.lang.InterruptedExceptionpublic void testOneHopNetWrite()
throws com.gemstone.gemfire.cache.CacheException,
java.lang.InterruptedException
com.gemstone.gemfire.cache.CacheExceptionjava.lang.InterruptedExceptionpublic void testOneHopNetWriteRemoteWriter()
throws com.gemstone.gemfire.cache.CacheException,
java.lang.InterruptedException
com.gemstone.gemfire.cache.CacheExceptionjava.lang.InterruptedExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.