kl0u commented on a change in pull request #11471: [FLINK-16692] flink 
joblistener can register from config
URL: https://github.com/apache/flink/pull/11471#discussion_r396289410
 
 

 ##########
 File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java
 ##########
 @@ -761,6 +768,20 @@ public void configure(ReadableConfig configuration, 
ClassLoader classLoader) {
                        });
                config.configure(configuration, classLoader);
                checkpointCfg.configure(configuration);
+               configuration.getOptional(ExecutionOptions.JOB_LISTENERS)
+                       .ifPresent(l -> {
+                               for (String listener : l) {
+                                       try {
 
 Review comment:
   You can use  the method `InstantiationUtil#instantiate(final String 
className, final Class<T> targetType, final ClassLoader classLoader)`.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to