Class PerfPacketGenerator

  • All Implemented Interfaces:
    com.google.common.util.concurrent.Service

    public class PerfPacketGenerator
    extends com.google.common.util.concurrent.AbstractExecutionThreadService
    Generates packets for performance testing
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service

        com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
    • Constructor Summary

      Constructors 
      Constructor Description
      PerfPacketGenerator​(Simulator simulator, int numPackets, int packetSize, long interval)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void run()  
      • Methods inherited from class com.google.common.util.concurrent.AbstractExecutionThreadService

        addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, shutDown, startAsync, startUp, state, stopAsync, toString, triggerShutdown
    • Constructor Detail

      • PerfPacketGenerator

        public PerfPacketGenerator​(Simulator simulator,
                                   int numPackets,
                                   int packetSize,
                                   long interval)
    • Method Detail

      • run

        protected void run()
                    throws Exception
        Specified by:
        run in class com.google.common.util.concurrent.AbstractExecutionThreadService
        Throws:
        Exception