StefanRRichter commented on a change in pull request #6743: [FLINK-10411] Make 
ClusterEntrypoint more compositional
URL: https://github.com/apache/flink/pull/6743#discussion_r220197869
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/entrypoint/ClusterEntrypoint.java
 ##########
 @@ -518,6 +498,34 @@ protected static Configuration 
loadConfiguration(EntrypointClusterConfiguration
                return configuration;
        }
 
+       // --------------------------------------------------
+       // Helper methods
+       // --------------------------------------------------
+
+       public static void runClusterEntrypoint(ClusterEntrypoint 
clusterEntrypoint) {
+
+               final String clusterEntrypointName = 
clusterEntrypoint.getClass().getSimpleName();
+               try {
+                       clusterEntrypoint.startCluster();
+               } catch (ClusterEntrypointException e) {
+                       LOG.error(String.format("Could not start cluster 
entrypoint %s.", clusterEntrypointName, e));
 
 Review comment:
   `LOG.error(String.format("Could not start cluster entrypoint %s.", 
clusterEntrypointName), e);`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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