public class UpgradeDiskStoreDUnitTest extends CacheTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
UpgradeDiskStoreDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected AsyncInvocation |
createPeerCache(VM server,
int mcastPort,
String regionName,
boolean createPR,
String member_dir,
String diskStoreName) |
protected void |
createTestData(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() |
File[] |
getDiskDirsForMember(String member_dir) |
static String |
getGemfireLocation(String version) |
void |
prepDR() |
void |
prepDR651() |
void |
prepPR() |
static void |
printDirectory(String dirname,
String testcasename) |
protected void |
recordPID(int pid) |
protected void |
removePID(int pid) |
void |
retryDRTest() |
void |
retryPRTest() |
protected int |
runScript(String version,
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(String name)
name - public void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class CacheTestCaseExceptionprotected void do_normal(boolean isPR,
boolean upgradeVersionOnly,
boolean doRecoveryOnly)
throws Throwable
Throwableprotected void do_negative(boolean isPR,
boolean upgradeVersionOnly)
throws Throwable
Throwableprotected void createTestData(String version, boolean isPR) throws Throwable
Throwableprotected int runScript(String version, String diskdir, boolean isPR, boolean doOps, boolean isSDA) throws Throwable
Throwableprotected void recordPID(int pid)
throws RemoteException
RemoteExceptionprotected void removePID(int pid)
throws RemoteException
RemoteExceptionprotected AsyncInvocation createPeerCache(VM server, int mcastPort, String regionName, boolean createPR, String member_dir, String diskStoreName)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.