public class UpgradeDiskStoreDUnitTest extends CacheTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
UpgradeDiskStoreDUnitTest(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected AsyncInvocation |
createPeerCache(VM server,
int mcastPort,
java.lang.String regionName,
boolean createPR,
java.lang.String member_dir,
java.lang.String diskStoreName) |
protected void |
createTestData(java.lang.String version,
boolean isPR) |
protected void |
do_negative(boolean isPR,
boolean upgradeVersionOnly) |
protected void |
do_normal(boolean isPR,
boolean upgradeVersionOnly,
boolean doRecoveryOnly) |
void |
doDR_RecoveryOnly() |
void |
doDRTest() |
void |
doPRTest() |
void |
doTestDR651() |
java.io.File[] |
getDiskDirsForMember(java.lang.String member_dir) |
static java.lang.String |
getGemfireLocation(java.lang.String version) |
void |
prepDR() |
void |
prepDR651() |
void |
prepPR() |
static void |
printDirectory(java.lang.String dirname,
java.lang.String testcasename) |
protected void |
recordPID(int pid) |
protected void |
removePID(int pid) |
void |
retryDRTest() |
void |
retryPRTest() |
protected int |
runScript(java.lang.String version,
java.lang.String diskdir,
boolean isPR,
boolean doOps,
boolean isSDA)
create and run following script:
java -cp $GEMFIRE/lib/gemfire.jar:$JTESTS
com.gemstone.gemfire.internal.cache.partitioned.UpgradeDiskStoreDUnitTest version
It will start a cache and do some operations to create a diskstore
|
void |
tearDown2()
Tears down the test.
|
void |
testDR651() |
void |
testDRCases() |
void |
testPRCases() |
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, toStringpublic UpgradeDiskStoreDUnitTest(java.lang.String name)
name - public void tearDown2()
throws java.lang.Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class CacheTestCasejava.lang.Exceptionpublic void testPRCases()
throws java.lang.Throwable
java.lang.Throwablepublic void prepPR()
throws java.lang.Throwable
java.lang.Throwablepublic void doPRTest()
throws java.lang.Throwable
java.lang.Throwablepublic void retryPRTest()
throws java.lang.Throwable
java.lang.Throwablepublic void testDRCases()
throws java.lang.Throwable
java.lang.Throwablepublic void prepDR()
throws java.lang.Throwable
java.lang.Throwablepublic void doDRTest()
throws java.lang.Throwable
java.lang.Throwablepublic void retryDRTest()
throws java.lang.Throwable
java.lang.Throwablepublic void doDR_RecoveryOnly()
throws java.lang.Throwable
java.lang.Throwablepublic void testDR651()
throws java.lang.Throwable
java.lang.Throwablepublic void prepDR651()
throws java.lang.Throwable
java.lang.Throwablepublic void doTestDR651()
throws java.lang.Throwable
java.lang.Throwableprotected void do_normal(boolean isPR,
boolean upgradeVersionOnly,
boolean doRecoveryOnly)
throws java.lang.Throwable
java.lang.Throwableprotected void do_negative(boolean isPR,
boolean upgradeVersionOnly)
throws java.lang.Throwable
java.lang.Throwablepublic java.io.File[] getDiskDirsForMember(java.lang.String member_dir)
protected void createTestData(java.lang.String version,
boolean isPR)
throws java.lang.Throwable
java.lang.Throwablepublic static java.lang.String getGemfireLocation(java.lang.String version)
protected int runScript(java.lang.String version,
java.lang.String diskdir,
boolean isPR,
boolean doOps,
boolean isSDA)
throws java.lang.Throwable
java.lang.Throwableprotected void recordPID(int pid)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionprotected void removePID(int pid)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionprotected AsyncInvocation createPeerCache(VM server, int mcastPort, java.lang.String regionName, boolean createPR, java.lang.String member_dir, java.lang.String diskStoreName)
public static void printDirectory(java.lang.String dirname,
java.lang.String testcasename)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.