public class TCPPerf extends MessagingPerf
| Modifier and Type | Class and Description |
|---|---|
static class |
TCPPerf.Prms
Configuration parameters for the the
TCPPerf test |
MessagingPerf.MessageDistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2logPerTest, reconnect, system, testName| Modifier and Type | Method and Description |
|---|---|
void |
testSendingMessages()
In VMs on separate machines, send messages back and forth over
TCP sockets.
|
protected static void |
work(int sendingPort,
int receivingPort,
String otherHost,
boolean sendFirstMessage)
"Ping pongs" messages back and forth between two machines over
two sockets.
|
setUp, tearDown2addExpectedException, 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 TCPPerf(String name)
protected static void work(int sendingPort,
int receivingPort,
String otherHost,
boolean sendFirstMessage)
throws IOException,
ClassNotFoundException
sendingPort - The port on which data is sentreceivingPort - The port on which data is receivedotherHost - The name of the other host to contactsendFirstMessage - Should this VM send the first message, or wait to receive
the first message? The VM that sends the first message is
the server.IOExceptionClassNotFoundExceptionpublic void testSendingMessages()
throws InterruptedException
testSendingMessages in class MessagingPerfInterruptedException - If interrupted while waiting for remote tests to finishCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.