public abstract class AbstractLauncherDUnitTestCase extends CacheTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static int |
INTERVAL_MILLISECONDS |
protected java.io.File |
pidFile |
protected java.net.ServerSocket |
socket |
protected java.io.File |
statusFile |
protected java.io.File |
statusRequestFile |
protected java.io.File |
stopRequestFile |
protected static int |
TIMEOUT_MILLISECONDS |
cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
AbstractLauncherDUnitTestCase(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected com.gemstone.gemfire.internal.process.ProcessStreamReader.InputListener |
createCollectionListener(java.lang.String name,
java.lang.String header,
java.util.List<java.lang.String> lines) |
protected com.gemstone.gemfire.internal.process.ProcessStreamReader.InputListener |
createExpectedListener(java.lang.String name,
java.lang.String header,
java.lang.String expected,
java.util.concurrent.atomic.AtomicBoolean atomic) |
protected com.gemstone.gemfire.internal.process.ProcessStreamReader.InputListener |
createLoggingListener(java.lang.String name,
java.lang.String header) |
protected void |
delete(java.io.File file) |
protected static int |
getPid() |
protected boolean |
isPidAlive(int pid) |
protected int |
readPid(java.io.File pidFile) |
void |
setUp()
Sets up the test (noop).
|
protected abstract void |
subSetUp()
To be overridden in subclass.
|
protected abstract void |
subTearDown()
To be overridden in subclass.
|
void |
tearDown2()
Tears down the test.
|
protected void |
waitForFileToDelete(java.io.File file) |
protected void |
waitForFileToDelete(java.io.File file,
boolean throwOnTimeout) |
protected void |
waitForFileToExist(java.io.File file) |
protected void |
waitForFileToExist(java.io.File file,
boolean throwOnTimeout) |
protected void |
waitForPidToStop(int pid) |
protected void |
waitForPidToStop(int pid,
boolean throwOnTimeout) |
protected void |
writeGemfireProperties(java.util.Properties gemfireProperties,
java.io.File gemfirePropertiesFile) |
protected void |
writePid(java.io.File pidFile,
int pid) |
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, 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 static final int TIMEOUT_MILLISECONDS
protected static final int INTERVAL_MILLISECONDS
protected transient volatile java.net.ServerSocket socket
protected transient volatile java.io.File pidFile
protected transient volatile java.io.File stopRequestFile
protected transient volatile java.io.File statusRequestFile
protected transient volatile java.io.File statusFile
public AbstractLauncherDUnitTestCase(java.lang.String name)
public final void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class DistributedTestCasejava.lang.Exceptionpublic final void tearDown2()
throws java.lang.Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class CacheTestCasejava.lang.Exceptionprotected abstract void subSetUp()
throws java.lang.Exception
java.lang.Exceptionprotected abstract void subTearDown()
throws java.lang.Exception
java.lang.Exceptionprotected void delete(java.io.File file)
protected boolean isPidAlive(int pid)
protected void waitForPidToStop(int pid,
boolean throwOnTimeout)
protected void waitForPidToStop(int pid)
protected void waitForFileToDelete(java.io.File file,
boolean throwOnTimeout)
protected void waitForFileToDelete(java.io.File file)
protected static int getPid()
throws com.gemstone.gemfire.internal.process.PidUnavailableException
com.gemstone.gemfire.internal.process.PidUnavailableExceptionprotected com.gemstone.gemfire.internal.process.ProcessStreamReader.InputListener createLoggingListener(java.lang.String name,
java.lang.String header)
protected com.gemstone.gemfire.internal.process.ProcessStreamReader.InputListener createCollectionListener(java.lang.String name,
java.lang.String header,
java.util.List<java.lang.String> lines)
protected com.gemstone.gemfire.internal.process.ProcessStreamReader.InputListener createExpectedListener(java.lang.String name,
java.lang.String header,
java.lang.String expected,
java.util.concurrent.atomic.AtomicBoolean atomic)
protected void writeGemfireProperties(java.util.Properties gemfireProperties,
java.io.File gemfirePropertiesFile)
throws java.io.IOException
java.io.IOExceptionprotected int readPid(java.io.File pidFile)
throws java.io.IOException
java.io.IOExceptionprotected void writePid(java.io.File pidFile,
int pid)
throws java.io.IOException
java.io.IOExceptionprotected void waitForFileToExist(java.io.File file,
boolean throwOnTimeout)
protected void waitForFileToExist(java.io.File file)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.