Interface PreStartConfig
- All Known Implementing Classes:
DefaultPreStartConfig
public interface PreStartConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final booleanstatic final booleanstatic final boolean -
Method Summary
Modifier and TypeMethodDescriptiondefault intAmount of CPU that needs to be idle to allow PreStarting of containers.default intHow often PreStarting should be tried (one factory per schedule!)default booleanShould PreStarting be stopped when tests are ending?default booleandirectNetworkAttachIfPossible(String preStartName) Tries to directly attach the container to the network if possible.default booleanenabled()static PreStartConfiginstance()intHow many infrastructures sintmaxStartSimultan(String preStartName)
-
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
How many infrastructures s -
maxStartSimultan
-
directNetworkAttachIfPossible
Tries to directly attach the container to the network if possible.This speeds up overall time but (as no
docker network connectis 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
-