Class TestcontainersSettings.Builder
java.lang.Object
org.apache.flink.connector.testframe.container.TestcontainersSettings.Builder
- Enclosing class:
- TestcontainersSettings
The
TestContainersSettings builder.-
Method Summary
Modifier and TypeMethodDescriptionSets thebaseImageand returns a reference to this Builder enabling method chaining.build()Returns aTestContainersSettingsbuilt from the parameters previously set.dependsOn(org.testcontainers.containers.GenericContainer<?> container) Lets Flink cluster depending on another container, and bind the network of Flink cluster to the dependent one.environmentVariable(String name, String value) Sets an environment variable and returns a reference to this Builder enabling method chaining.logger(org.slf4j.Logger logger) Sets thebaseImageand returns a reference to this Builder enabling method chaining.network(org.testcontainers.containers.Network network) Sets thenetworkand returns a reference to this Builder enabling method chaining.
-
Method Details
-
environmentVariable
Sets an environment variable and returns a reference to this Builder enabling method chaining.- Parameters:
name- The name of the environment variable.value- The value of the environment variable.- Returns:
- A reference to this Builder.
-
dependsOn
public TestcontainersSettings.Builder dependsOn(org.testcontainers.containers.GenericContainer<?> container) Lets Flink cluster depending on another container, and bind the network of Flink cluster to the dependent one. -
network
Sets thenetworkand returns a reference to this Builder enabling method chaining.- Parameters:
network- Thenetworkto set.- Returns:
- A reference to this Builder.
-
baseImage
Sets thebaseImageand returns a reference to this Builder enabling method chaining.- Parameters:
baseImage- ThebaseImageto set.- Returns:
- A reference to this Builder.
-
logger
Sets thebaseImageand returns a reference to this Builder enabling method chaining.- Parameters:
logger- Theloggerto set.- Returns:
- A reference to this Builder.
-
build
Returns aTestContainersSettingsbuilt from the parameters previously set.- Returns:
- A
TestContainersSettingsbuilt with parameters of thisTestContainersSettings.Builder
-