public abstract class AbstractServerLauncherDUnitTestCase extends AbstractLauncherDUnitTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected File |
cacheXmlFile |
protected com.gemstone.gemfire.distributed.ServerLauncher |
launcher |
protected int |
serverPort |
INTERVAL_MILLISECONDS, pidFile, socket, statusFile, statusRequestFile, stopRequestFile, TIMEOUT_MILLISECONDScachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
AbstractServerLauncherDUnitTestCase(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanupServerLauncher() |
protected static void |
overrideDefaultPort(int port) |
protected static void |
restoreDefaultPort() |
void |
subSetUp()
To be overridden in subclass.
|
protected abstract void |
subSetUp1()
To be overridden in subclass.
|
void |
subTearDown()
To be overridden in subclass.
|
protected abstract void |
subTearDown1()
To be overridden in subclass.
|
protected void |
waitForServerToStart(com.gemstone.gemfire.distributed.ServerLauncher launcher) |
protected void |
waitForServerToStart(com.gemstone.gemfire.distributed.ServerLauncher launcher,
boolean throwOnTimeout) |
protected void |
waitForServerToStart(com.gemstone.gemfire.distributed.ServerLauncher launcher,
long timeout,
boolean throwOnTimeout) |
protected void |
waitForServerToStart(com.gemstone.gemfire.distributed.ServerLauncher launcher,
long timeout,
long interval,
boolean throwOnTimeout) |
createCollectionListener, 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 int serverPort
protected transient volatile com.gemstone.gemfire.distributed.ServerLauncher launcher
protected transient volatile File cacheXmlFile
public AbstractServerLauncherDUnitTestCase(String name)
public final void subSetUp()
throws Exception
AbstractLauncherDUnitTestCasesubSetUp in class AbstractLauncherDUnitTestCaseExceptionpublic final void subTearDown()
throws Exception
AbstractLauncherDUnitTestCasesubTearDown in class AbstractLauncherDUnitTestCaseExceptionprotected abstract void subSetUp1()
throws Exception
Exceptionprotected abstract void subTearDown1()
throws Exception
Exceptionprotected void cleanupServerLauncher()
protected void waitForServerToStart(com.gemstone.gemfire.distributed.ServerLauncher launcher,
long timeout,
long interval,
boolean throwOnTimeout)
protected void waitForServerToStart(com.gemstone.gemfire.distributed.ServerLauncher launcher,
boolean throwOnTimeout)
protected void waitForServerToStart(com.gemstone.gemfire.distributed.ServerLauncher launcher,
long timeout,
boolean throwOnTimeout)
protected void waitForServerToStart(com.gemstone.gemfire.distributed.ServerLauncher launcher)
protected static void overrideDefaultPort(int port)
protected static void restoreDefaultPort()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.