net.i2p.router.tunnel
Class BatchedFragmentTest

java.lang.Object
  extended bynet.i2p.router.tunnel.FragmentTest
      extended bynet.i2p.router.tunnel.BatchedFragmentTest

public class BatchedFragmentTest
extends FragmentTest

Test the batching behavior of the preprocessor with one, two, or three messages of various sizes and settings.


Nested Class Summary
 
Nested classes inherited from class net.i2p.router.tunnel.FragmentTest
FragmentTest.DefragmentedReceiverImpl, FragmentTest.ReceiverImpl, FragmentTest.SenderImpl
 
Field Summary
 
Fields inherited from class net.i2p.router.tunnel.FragmentTest
_context, _log
 
Constructor Summary
BatchedFragmentTest()
           
 
Method Summary
protected  TunnelGateway.QueuePreprocessor createPreprocessor(I2PAppContext ctx)
           
static void main(java.lang.String[] args)
           
 void runBatched()
          Send a small message, wait a second, then send a large message, pushing the first one through immediately, with the rest of the large one passed after a brief delay.
 void runBatches()
          Send a small message, wait a second, then send a large message, pushing the first one through immediately, with the rest of the large one passed after a brief delay.
 void runTests()
           
 
Methods inherited from class net.i2p.router.tunnel.FragmentTest
createPending, runDelayed, runMultiple, runSingle, runVaried, runVaried
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchedFragmentTest

public BatchedFragmentTest()
Method Detail

createPreprocessor

protected TunnelGateway.QueuePreprocessor createPreprocessor(I2PAppContext ctx)
Overrides:
createPreprocessor in class FragmentTest

runBatched

public void runBatched()
Send a small message, wait a second, then send a large message, pushing the first one through immediately, with the rest of the large one passed after a brief delay.


runBatches

public void runBatches()
Send a small message, wait a second, then send a large message, pushing the first one through immediately, with the rest of the large one passed after a brief delay.


runTests

public void runTests()
Overrides:
runTests in class FragmentTest

main

public static void main(java.lang.String[] args)