robertwb commented on a change in pull request #11048: [BEAM-9433] Create 
expansion service artifact for common Java IOs.
URL: https://github.com/apache/beam/pull/11048#discussion_r388758912
 
 

 ##########
 File path: 
sdks/java/expansion-service/src/main/java/org/apache/beam/sdk/expansion/service/ExpansionService.java
 ##########
 @@ -404,7 +408,11 @@ public void close() throws Exception {
   public static void main(String[] args) throws Exception {
     int port = Integer.parseInt(args[0]);
     System.out.println("Starting expansion service at localhost:" + port);
-    Server server = ServerBuilder.forPort(port).addService(new 
ExpansionService()).build();
+    ExpansionService service = new ExpansionService();
+    for (Map.Entry<String, TransformProvider> entry : 
service.registeredTransforms.entrySet()) {
+      System.out.println("\t" + entry.getKey() + ": " + entry.getValue());
 
 Review comment:
   I used stdout as this is the main entry point (similar to the statement 
above). 

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