liuyongvs 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_r396413590
 
 

 ##########
 File path: 
flink-streaming-java/src/test/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironmentComplexConfigurationTest.java
 ##########
 @@ -97,4 +105,47 @@ public void 
testNotOverridingCachedFilesFromConfiguration() {
                        Tuple2.of("file3", new 
DistributedCache.DistributedCacheEntry("/tmp3", true))
                )));
        }
+
+       @Test
+       public void testLoadingListenersFromConfiguration() {
+               StreamExecutionEnvironment envFromConfiguration = 
StreamExecutionEnvironment.getExecutionEnvironment();
+               List<Class> listenersClass = 
Arrays.asList(BasicJobSubmittedCounter.class, BasicJobExecutedCounter.class);
+
+               Configuration configuration = new Configuration();
+               configuration.setString("execution.job-listeners", 
listenersClass.stream().map(l -> l.getName()).collect(Collectors.joining(";")));
+
 
 Review comment:
   hi, i have already fixed

----------------------------------------------------------------
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