Interface PreStartConfig

All Known Implementing Classes:
DefaultPreStartConfig

public interface PreStartConfig
  • Field Details

    • DEFAULT_ENABLED

      static final boolean DEFAULT_ENABLED
      See Also:
    • DEFAULT_DIRECT_NETWORK_ATTACH_IF_POSSIBLE

      static final boolean DEFAULT_DIRECT_NETWORK_ATTACH_IF_POSSIBLE
      See Also:
    • DEFAULT_COORDINATOR_IDLE_CPU_PERCENT

      static final int DEFAULT_COORDINATOR_IDLE_CPU_PERCENT
      See Also:
    • DEFAULT_COORDINATOR_SCHEDULE_PERIOD_MS

      static final int DEFAULT_COORDINATOR_SCHEDULE_PERIOD_MS
      See Also:
    • DEFAULT_DETECT_ENDING_TESTS

      static final boolean DEFAULT_DETECT_ENDING_TESTS
      See Also:
  • Method Details

    • enabled

      default boolean enabled()
    • keepReady

      int keepReady(String preStartName)
      How many infrastructures s
    • maxStartSimultan

      int maxStartSimultan(String preStartName)
    • directNetworkAttachIfPossible

      default boolean directNetworkAttachIfPossible(String preStartName)
      Tries to directly attach the container to the network if possible.

      This speeds up overall time but (as no docker network connect is needed) but it's a different behavior then PreStarting (if implemented incorrectly may cause "random" problems)

      DEBUG-Option - default value should be fine.

    • coordinatorIdleCPUPercent

      default int coordinatorIdleCPUPercent()
      Amount of CPU that needs to be idle to allow PreStarting of containers.
    • coordinatorSchedulePeriodMs

      default int coordinatorSchedulePeriodMs()
      How often PreStarting should be tried (one factory per schedule!)
    • detectEndingTests

      default boolean detectEndingTests()
      Should PreStarting be stopped when tests are ending?

      DEBUG-Option - default value should be fine.

    • instance

      static PreStartConfig instance()