public class TCPPerf extends MessagingPerf
messages between two machines using TCP
sockets.| 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| Constructor and Description |
|---|
TCPPerf(java.lang.String name) |
| 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,
java.lang.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, toStringprotected static void work(int sendingPort,
int receivingPort,
java.lang.String otherHost,
boolean sendFirstMessage)
throws java.io.IOException,
java.lang.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.java.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void testSendingMessages()
throws java.lang.InterruptedException
testSendingMessages in class MessagingPerfjava.lang.InterruptedException - If interrupted while waiting for remote tests to finishCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.