Package io.aeron.test.driver
Class CTestMediaDriver
java.lang.Object
io.aeron.test.driver.CTestMediaDriver
- All Implemented Interfaces:
TestMediaDriver
,AutoCloseable
-
Field Summary
Fields inherited from interface io.aeron.test.driver.TestMediaDriver
AERONMD_PATH_PROP_NAME, ATS_LIBRARY_CONF_FILE_PROP_NAME, ATS_LIBRARY_CONF_PATH_PROP_NAME, ATS_LIBRARY_PATH_PROP_NAME, DRIVER_AGENT_PATH_PROP_NAME
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
void
close()
io.aeron.driver.MediaDriver.Context
context()
org.agrona.concurrent.status.CountersReader
counters()
static void
dontCoalesceNaksOnReceiverByDefault
(io.aeron.driver.MediaDriver.Context context) static void
enableFixedLossOnReceive
(io.aeron.driver.MediaDriver.Context context, int termId, int termOffset, int length) static void
enableMultiGapLossOnReceive
(io.aeron.driver.MediaDriver.Context context, int termId, int gapRadix, int gapLength, int totalGaps) static void
enableRandomLossOnReceive
(io.aeron.driver.MediaDriver.Context context, double rate, long seed, boolean loseDataMessages, boolean loseControlMessages) getAdditionalEnvVarsMap
(io.aeron.driver.MediaDriver.Context context) static CTestMediaDriver
launch
(io.aeron.driver.MediaDriver.Context context, boolean withAeronDir, DriverOutputConsumer driverOutputConsumer) org.agrona.concurrent.AgentInvoker
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceTestMediaDriver
-
cleanup
public void cleanup()- Specified by:
cleanup
in interfaceTestMediaDriver
-
counters
public org.agrona.concurrent.status.CountersReader counters()- Specified by:
counters
in interfaceTestMediaDriver
-
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 interfaceTestMediaDriver
-
aeronDirectoryName
- Specified by:
aeronDirectoryName
in interfaceTestMediaDriver
-
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
-