Github user tillrohrmann commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4598#discussion_r139678977
  
    --- Diff: 
flink-runtime/src/main/java/org/apache/flink/runtime/rest/RestServerEndpoint.java
 ---
    @@ -147,40 +170,65 @@ public InetSocketAddress getServerAddress() {
        }
     
        /**
    +    * Returns the address of the REST server endpoint. Since the address 
is only known
    +    * after the endpoint is started, it is returned as a future which is 
completed
    +    * with the REST address at start up.
    +    *
    +    * @return REST address of this endpoint
    +    */
    +   public String getRestAddress() {
    --- End diff --
    
    This will return the fully qualified URL including protocol whereas 
`getServerAddress` only return the address of the server to which it is bound.


---

Reply via email to