You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/01/22 14:01:58 UTC

[GitHub] [flink] aljoscha commented on a change in pull request #10925: [FLINK-15690][core][configuration] Enable configuring ExecutionConfig & CheckpointConfig from flink-conf.yaml

aljoscha commented on a change in pull request #10925:  [FLINK-15690][core][configuration] Enable configuring ExecutionConfig & CheckpointConfig from flink-conf.yaml
URL: https://github.com/apache/flink/pull/10925#discussion_r369572659
 
 

 ##########
 File path: flink-scala/src/main/scala/org/apache/flink/api/scala/ExecutionEnvironment.scala
 ##########
 @@ -192,6 +192,22 @@ class ExecutionEnvironment(javaEnv: JavaEnv) {
     javaEnv.registerType(typeClass)
   }
 
+  /**
+   * Sets all relevant options contained in the [[ReadableConfig]] such as e.g.
+   * [[org.apache.flink.configuration.PipelineOptions#CACHED_FILES]]. It will reconfigure
+   * [[ExecutionEnvironment]] and [[ExecutionConfig]].
+   *
+   * It will change the value of a setting only if a corresponding option was set in the
+   * `configuration`. If a key is not present, the current value of a field will remain
+   * untouched.
+   *
+   * @param configuration a configuration to read the values from
+   * @param classLoader   a class loader to use when loading classes
+   */
+  def configure(configuration: ReadableConfig, classLoader: ClassLoader): Unit = {
 
 Review comment:
   `PublicEvolving` annotation?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services