public class ServerLauncherRemoteDUnitTest extends AbstractServerLauncherDUnitTestCase
AbstractLauncher,
ServerLauncher,
ServerLauncher.Builder,
ServerLauncher.ServerState,
AvailablePortHelper,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
ServerLauncherRemoteDUnitTest.ServerLauncherForkingProcess |
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Process |
process |
protected com.gemstone.gemfire.internal.process.ProcessStreamReader |
processErrReader |
protected com.gemstone.gemfire.internal.process.ProcessStreamReader |
processOutReader |
protected java.io.File |
workingDirectory |
cacheXmlFile, launcher, serverPortINTERVAL_MILLISECONDS, pidFile, socket, statusFile, statusRequestFile, stopRequestFile, TIMEOUT_MILLISECONDScachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
ServerLauncherRemoteDUnitTest(java.lang.String name) |
cleanupServerLauncher, overrideDefaultPort, restoreDefaultPort, subSetUp, subTearDown, waitForServerToStart, waitForServerToStart, waitForServerToStart, waitForServerToStartcreateCollectionListener, 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 java.lang.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 java.io.File workingDirectory
public ServerLauncherRemoteDUnitTest(java.lang.String name)
protected final void subSetUp1()
throws java.lang.Exception
AbstractServerLauncherDUnitTestCasesubSetUp1 in class AbstractServerLauncherDUnitTestCasejava.lang.Exceptionprotected final void subTearDown1()
throws java.lang.Exception
AbstractServerLauncherDUnitTestCasesubTearDown1 in class AbstractServerLauncherDUnitTestCasejava.lang.Exceptionprotected void subSetUp2()
throws java.lang.Exception
java.lang.Exceptionprotected void subTearDown2()
throws java.lang.Exception
java.lang.Exceptionprotected com.gemstone.gemfire.distributed.AbstractLauncher.Status getExpectedStopStatusForNotRunning()
public void testIsAttachAPIFound()
throws java.lang.Exception
java.lang.Exceptionpublic void broken_testRunningServerOutlivesForkingProcess()
throws java.lang.Throwable
java.lang.Throwablepublic void testStartCreatesPidFile()
throws java.lang.Throwable
java.lang.Throwablepublic void testStartDeletesStaleControlFiles()
throws java.lang.Throwable
java.lang.Throwablepublic void testStartOverwritesStalePidFile()
throws java.lang.Throwable
java.lang.Throwablepublic void testStartUsingDisableDefaultServerLeavesPortFree()
throws java.lang.Throwable
java.lang.Throwablepublic void testStartUsingDisableDefaultServerSkipsPortCheck()
throws java.lang.Throwable
java.lang.Throwablepublic void testStartUsingForceOverwritesExistingPidFile()
throws java.lang.Throwable
java.lang.Throwablepublic void testStartUsingServerPortInUseFails()
throws java.lang.Throwable
java.lang.Throwablepublic void testStartUsingServerPortOverridesCacheXml()
throws java.lang.Throwable
java.lang.Throwablepublic void testStartUsingServerPortUsedInsteadOfDefaultCacheXml()
throws java.lang.Throwable
java.lang.Throwablepublic void testStartWithDefaultPortInUseFails()
throws java.lang.Throwable
java.lang.Throwablepublic void testStartWithExistingPidFileFails()
throws java.lang.Throwable
java.lang.Throwablepublic void testStatusUsingPid()
throws java.lang.Throwable
java.lang.Throwablepublic void testStatusUsingWorkingDirectory()
throws java.lang.Throwable
java.lang.Throwablepublic void testStatusWithEmptyPidFile()
throws java.lang.Exception
java.lang.Exceptionpublic void testStatusWithNoPidFile()
throws java.lang.Exception
java.lang.Exceptionpublic void testStatusWithStalePidFile()
throws java.lang.Exception
java.lang.Exceptionpublic void testStopUsingPid()
throws java.lang.Throwable
java.lang.Throwablepublic void testStopUsingWorkingDirectory()
throws java.lang.Throwable
java.lang.Throwableprotected void waitForServerToStart()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.