public class LocatorLauncherRemoteDUnitTest extends AbstractLocatorLauncherDUnitTestCase
| Modifier and Type | Class and Description |
|---|---|
static class |
LocatorLauncherRemoteDUnitTest.LocatorLauncherForkingProcess |
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected Process |
process |
protected com.gemstone.gemfire.internal.process.ProcessStreamReader |
processErrReader |
protected com.gemstone.gemfire.internal.process.ProcessStreamReader |
processOutReader |
protected File |
workingDirectory |
launcher, locatorPortINTERVAL_MILLISECONDS, pidFile, socket, statusFile, statusRequestFile, stopRequestFile, TIMEOUT_MILLISECONDScachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
LocatorLauncherRemoteDUnitTest(String name) |
cleanupLocatorLauncher, overrideDefaultPort, restoreDefaultPort, subSetUp, subTearDown, waitForLocatorToStart, waitForLocatorToStart, waitForLocatorToStart, waitForLocatorToStart, waitForLocatorToStartcreateCollectionListener, createExpectedListener, createLoggingListener, delete, getPid, isPidAlive, readPid, setUp, tearDown2, waitForFileToDelete, waitForFileToDelete, waitForFileToExist, waitForFileToExist, waitForPidToStop, waitForPidToStop, writeGemfireProperties, writePidaddExceptionTag1, 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, toStringprotected transient volatile Process process
protected transient volatile com.gemstone.gemfire.internal.process.ProcessStreamReader processOutReader
protected transient volatile com.gemstone.gemfire.internal.process.ProcessStreamReader processErrReader
protected transient volatile File workingDirectory
public LocatorLauncherRemoteDUnitTest(String name)
protected void subSetUp1()
throws Exception
AbstractLocatorLauncherDUnitTestCasesubSetUp1 in class AbstractLocatorLauncherDUnitTestCaseExceptionprotected void subTearDown1()
throws Exception
AbstractLocatorLauncherDUnitTestCasesubTearDown1 in class AbstractLocatorLauncherDUnitTestCaseExceptionprotected void subSetUp2()
throws Exception
Exceptionprotected void subTearDown2()
throws Exception
Exceptionprotected com.gemstone.gemfire.distributed.AbstractLauncher.Status getExpectedStopStatusForNotRunning()
public void testRunningLocatorOutlivesForkingProcess()
throws InterruptedException,
IOException
InterruptedExceptionIOExceptionpublic void testStartDeletesStaleControlFiles()
throws Throwable
Throwablepublic void testStartOverwritesStalePidFile()
throws Throwable
Throwablepublic void testStartUsingForceOverwritesExistingPidFile()
throws Throwable
Throwablepublic void testStartUsingPortInUseFails()
throws Throwable
Throwablepublic void testStartWithDefaultPortInUseFails()
throws Throwable
Throwablepublic void testStartWithExistingPidFileFails()
throws Throwable
Throwablepublic void testStatusUsingWorkingDirectory()
throws Throwable
Throwablepublic void testStatusWithEmptyPidFile()
throws Exception
Exceptionpublic void testStatusWithStalePidFile()
throws Exception
ExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.