org.mpisws.p2p.testing.transportlayer
Class SRTest
java.lang.Object
org.mpisws.p2p.testing.transportlayer.TLTest<SourceRoute<MultiInetSocketAddress>>
org.mpisws.p2p.testing.transportlayer.SRTest
- Direct Known Subclasses:
- LivenessTest, SRTestBypassEpoch
public class SRTest
- extends TLTest<SourceRoute<MultiInetSocketAddress>>
Field Summary |
static byte[] |
GOOD_HDR
Goes to Alice/Bob |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GOOD_HDR
public static final byte[] GOOD_HDR
- Goes to Alice/Bob
SRTest
public SRTest()
getIdentifier
public SourceRoute getIdentifier(TransportLayer<SourceRoute<MultiInetSocketAddress>,java.nio.ByteBuffer> a,
TransportLayer<SourceRoute<MultiInetSocketAddress>,java.nio.ByteBuffer> b)
- Description copied from class:
TLTest
- A's view of b
- Overrides:
getIdentifier
in class TLTest<SourceRoute<MultiInetSocketAddress>>
- Returns:
- A's view of b
setUpBeforeClass
public static void setUpBeforeClass()
throws java.lang.Exception
- Throws:
java.lang.Exception
openTCP
public void openTCP()
throws java.lang.Exception
- Description copied from class:
TLTest
- 3 parts:
- Alice opens a TCP socket to Bob
- Alice sends to Bob
- Alice closes the Socket
- Overrides:
openTCP
in class TLTest<SourceRoute<MultiInetSocketAddress>>
- Throws:
java.lang.Exception
sendUDP
public void sendUDP()
throws java.lang.Exception
- Description copied from class:
TLTest
- Sends udp message from alice to bob.
- Overrides:
sendUDP
in class TLTest<SourceRoute<MultiInetSocketAddress>>
- Throws:
java.lang.Exception
getBogusIdentifier
public SourceRoute<MultiInetSocketAddress> getBogusIdentifier(SourceRoute<MultiInetSocketAddress> local)
throws java.io.IOException
- Description copied from class:
TLTest
- The identifer to a bogus node.
- Specified by:
getBogusIdentifier
in class TLTest<SourceRoute<MultiInetSocketAddress>>
- Returns:
-
- Throws:
java.io.IOException
Copyright © 2001-2005 - Rice Pastry.