public class RMIBindSamePortDifferentNICDUnitTest extends DistributedTestCase
1. Get available NICs. Invoke this test only if there are at least two NICs
available.
2. Start agent1 & agent2 in (VM#2) & (VM#3) respectively from controller VM.
3. Use (VM#2) & (VM#3) for JMX Clients of agent1 & agent2 respectively.
4. From these JMX client VMs, check if agent can be accessed using Agent's
ObjectName
5. From these JMX client VMs, invoke connectToSystem on agent VM. Get
reference to distributed system MBean & check if it's non null.
6. Stop agent1 & agent2 from controller.
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2logPerTest, reconnect, system, testName| Constructor and Description |
|---|
RMIBindSamePortDifferentNICDUnitTest(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
static void |
connectJMXClient() |
void |
setUp()
Sets up the test (noop).
|
static void |
startAgent(java.net.InetAddress rmiBindAddress,
int port,
int pid) |
static void |
stopAgent() |
void |
tearDown2()
Tears down the test.
|
void |
testNICs() |
addExpectedException, addExpectedException, addHydraProperties, attachDebugger, checkBBFlag, cleanupAllVms, clearBBFlag, crashDistributedSystem, crashDistributedSystem, createLogWriter, disconnectAllFromDS, disconnectFromDS, 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 RMIBindSamePortDifferentNICDUnitTest(java.lang.String name)
public void testNICs()
public static void startAgent(java.net.InetAddress rmiBindAddress,
int port,
int pid)
throws com.gemstone.gemfire.admin.AdminException
com.gemstone.gemfire.admin.AdminExceptionpublic static void stopAgent()
throws com.gemstone.gemfire.admin.AdminException
com.gemstone.gemfire.admin.AdminExceptionpublic static void connectJMXClient()
throws java.lang.Exception
java.lang.Exceptionpublic void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class DistributedTestCasejava.lang.Exceptionpublic void tearDown2()
throws java.lang.Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class DistributedTestCasejava.lang.ExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.