Class PerfPacketGenerator

java.lang.Object
com.google.common.util.concurrent.AbstractExecutionThreadService
org.yamcs.simulator.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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    PerfPacketGenerator(ColSimulator simulator, int numPackets, int packetSize, long interval, double changePercent)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    protected void
    run()
     

    Methods inherited from class com.google.common.util.concurrent.AbstractExecutionThreadService

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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • PerfPacketGenerator

      public PerfPacketGenerator(ColSimulator simulator, int numPackets, int packetSize, long interval, double changePercent)
  • Method Details

    • run

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

      public void pause()
    • resume

      public void resume()