public class LauncherLifecycleCommandsDUnitTest extends CliCommandTestBase
AbstractLauncher.Status,
LocatorLauncher,
LocatorLauncher.Builder,
LocatorLauncher.Command,
LocatorLauncher.LocatorState,
AvailablePortHelper,
Result,
CliCommandTestBase,
LauncherLifecycleCommands,
Serialized FormDistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2USE_HTTP_SYSTEM_PROPERTYcachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
LauncherLifecycleCommandsDUnitTest(String testName) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
assertStatus(com.gemstone.gemfire.distributed.LocatorLauncher.LocatorState expectedStatus,
com.gemstone.gemfire.distributed.LocatorLauncher.LocatorState actualStatus) |
void |
BUG46760WORKAROUNDtestStopLocatorUsingMemberId() |
void |
BUG46760WORKAROUNDtestStopLocatorUsingMemberName() |
protected static String |
getMemberId(int jmxManagerPort,
String memberName) |
protected static String |
getMemberId(String jmxManagerHost,
int jmxManagerPort,
String memberName) |
protected static String |
serviceStateStatusStringNormalized(com.gemstone.gemfire.distributed.AbstractLauncher.ServiceState state) |
protected static String |
serviceStateStatusStringNormalized(String locatorStatus) |
protected static com.gemstone.gemfire.distributed.AbstractLauncher.Status |
stopLocator(File workingDirectory) |
protected static com.gemstone.gemfire.distributed.AbstractLauncher.Status |
stopLocator(String workingDirectory) |
void |
testStartLocatorCapturesOutputOnError() |
void |
testStartLocatorWithRelativeDirectory() |
void |
testStatusLocatorUsingMemberId() |
void |
testStatusLocatorUsingMemberName() |
void |
testStatusLocatorUsingMemberNameIDWhenGfshIsNotConnected() |
void |
testStopLocatorUsingMemberNameIDWhenGfshIsNotConnected() |
protected static String |
toString(com.gemstone.gemfire.management.cli.Result result) |
protected static void |
writePid(File pidFile,
int pid) |
commandResultToString, countLinesInString, countMatchesInString, createDefaultSetup, createShell, debug, destroyDefaultSetup, error, error, executeCommand, executeCommand, executeCommandWithoutClear, executeCommandWithoutClear, extractCommandResult, getDefaultShell, getLineFromString, info, printResult, setUp, shellConnect, stringContainsLine, tearDown2addExceptionTag1, 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, toStringpublic LauncherLifecycleCommandsDUnitTest(String testName)
protected static String getMemberId(int jmxManagerPort, String memberName) throws Exception
Exceptionprotected static String getMemberId(String jmxManagerHost, int jmxManagerPort, String memberName) throws Exception
Exceptionprotected static void assertStatus(com.gemstone.gemfire.distributed.LocatorLauncher.LocatorState expectedStatus,
com.gemstone.gemfire.distributed.LocatorLauncher.LocatorState actualStatus)
protected static String serviceStateStatusStringNormalized(com.gemstone.gemfire.distributed.AbstractLauncher.ServiceState state)
protected static String serviceStateStatusStringNormalized(String locatorStatus)
protected static com.gemstone.gemfire.distributed.AbstractLauncher.Status stopLocator(File workingDirectory)
protected static com.gemstone.gemfire.distributed.AbstractLauncher.Status stopLocator(String workingDirectory)
protected static String toString(com.gemstone.gemfire.management.cli.Result result)
protected static void writePid(File pidFile, int pid) throws IOException
IOExceptionpublic void testStartLocatorCapturesOutputOnError()
throws IOException
IOExceptionpublic void testStartLocatorWithRelativeDirectory()
public void testStatusLocatorUsingMemberNameIDWhenGfshIsNotConnected()
public void testStatusLocatorUsingMemberName()
public void testStatusLocatorUsingMemberId()
throws Exception
Exceptionpublic void testStopLocatorUsingMemberNameIDWhenGfshIsNotConnected()
public void BUG46760WORKAROUNDtestStopLocatorUsingMemberName()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.