Class FlinkContainersSettings
java.lang.Object
org.apache.flink.connector.testframe.container.FlinkContainersSettings
The central configuration holder for Flink container-based test environments.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFlinkContainersConfigbuilder static inner class. -
Method Summary
Modifier and TypeMethodDescriptionstatic FlinkContainersSettingsbasedOn(org.apache.flink.configuration.Configuration config) FlinkContainersConfigbased on provided Flink configuration.builder()A new builder forFlinkContainersConfig.static FlinkContainersSettingsFlinkContainersConfigbased on defaults.Gets base image.Gets checkpoint path.static StringGets default checkpoint path.static StringGets default flink home.org.apache.flink.configuration.ConfigurationGets flink configuration.Gets flink dist location.Gets flink home.Gets HA storage path.Gets ha storage path uri.Gets jar paths.Gets job manager hostname.Gets logging properties.intGets number slots per task manager.intGets number of task managers.Gets task manager hostname prefix.Gets Zookeeper hostname.Returns whether to build from flink-dist or from an existing base container.Is zookeeper HA boolean.
-
Method Details
-
builder
A new builder forFlinkContainersConfig.- Returns:
- The builder.
-
defaultConfig
FlinkContainersConfigbased on defaults.- Returns:
- The Flink containers config.
-
basedOn
FlinkContainersConfigbased on provided Flink configuration.- Parameters:
config- The config.- Returns:
- The flink containers config.
-
getBaseImage
Gets base image.- Returns:
- The base image.
-
getNumTaskManagers
public int getNumTaskManagers()Gets number of task managers.- Returns:
- The number task managers.
-
getNumSlotsPerTaskManager
public int getNumSlotsPerTaskManager()Gets number slots per task manager.- Returns:
- The number slots per task manager.
-
getJarPaths
Gets jar paths.- Returns:
- The jar paths.
-
getFlinkConfig
public org.apache.flink.configuration.Configuration getFlinkConfig()Gets flink configuration.- Returns:
- The flink configuration.
-
getTaskManagerHostnamePrefix
Gets task manager hostname prefix.- Returns:
- The task manager hostname prefix.
-
getJobManagerHostname
Gets job manager hostname.- Returns:
- The job manager hostname.
-
isBuildFromFlinkDist
Returns whether to build from flink-dist or from an existing base container. Also see thebaseImageproperty. -
getFlinkDistLocation
Gets flink dist location.- Returns:
- The flink dist location.
-
getFlinkHome
Gets flink home.- Returns:
- The flink home path.
-
getCheckpointPath
Gets checkpoint path.- Returns:
- The checkpoint path.
-
getHaStoragePath
Gets HA storage path.- Returns:
- The ha storage path.
-
getHaStoragePathUri
Gets ha storage path uri.- Returns:
- The HA storage path as URI (prefixed with file://).
-
getDefaultFlinkHome
Gets default flink home.- Returns:
- The default flink home path.
-
getDefaultCheckpointPath
Gets default checkpoint path.- Returns:
- The default checkpoint path.
-
isZookeeperHA
Is zookeeper HA boolean. -
getZookeeperHostname
Gets Zookeeper hostname.- Returns:
- The Zookeeper hostname.
-
getLogProperties
Gets logging properties.- Returns:
- The logging properties.
-