Class CTestMediaDriver

java.lang.Object
io.aeron.test.driver.CTestMediaDriver
All Implemented Interfaces:
TestMediaDriver, AutoCloseable

public final class CTestMediaDriver extends Object implements TestMediaDriver
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface TestMediaDriver
    • cleanup

      public void cleanup()
      Specified by:
      cleanup in interface TestMediaDriver
    • counters

      public org.agrona.concurrent.status.CountersReader counters()
      Specified by:
      counters in interface TestMediaDriver
    • launch

      public static CTestMediaDriver launch(io.aeron.driver.MediaDriver.Context context, boolean withAeronDir, DriverOutputConsumer driverOutputConsumer)
    • context

      public io.aeron.driver.MediaDriver.Context context()
      Specified by:
      context in interface TestMediaDriver
    • aeronDirectoryName

      public String aeronDirectoryName()
      Specified by:
      aeronDirectoryName in interface TestMediaDriver
    • sharedAgentInvoker

      public org.agrona.concurrent.AgentInvoker sharedAgentInvoker()
      Specified by:
      sharedAgentInvoker in interface TestMediaDriver
    • enableRandomLossOnReceive

      public static void enableRandomLossOnReceive(io.aeron.driver.MediaDriver.Context context, double rate, long seed, boolean loseDataMessages, boolean loseControlMessages)
    • enableFixedLossOnReceive

      public static void enableFixedLossOnReceive(io.aeron.driver.MediaDriver.Context context, int termId, int termOffset, int length)
    • enableMultiGapLossOnReceive

      public static void enableMultiGapLossOnReceive(io.aeron.driver.MediaDriver.Context context, int termId, int gapRadix, int gapLength, int totalGaps)
    • dontCoalesceNaksOnReceiverByDefault

      public static void dontCoalesceNaksOnReceiverByDefault(io.aeron.driver.MediaDriver.Context context)
    • getAdditionalEnvVarsMap

      public static Map<String,String> getAdditionalEnvVarsMap(io.aeron.driver.MediaDriver.Context context)