This is an automated email from the ASF dual-hosted git repository.
mblow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/asterixdb.git
The following commit(s) were added to refs/heads/master by this push:
new f103ff4 [NO ISSUE][HYR][NET] +=
NetworkUtil.toInetSocketAddress(HttpHost)
f103ff4 is described below
commit f103ff43ae33be61f458949cbf1131bcd7d3604c
Author: Michael Blow <[email protected]>
AuthorDate: Thu Nov 19 16:24:34 2020 -0500
[NO ISSUE][HYR][NET] += NetworkUtil.toInetSocketAddress(HttpHost)
Change-Id: I10533844bd65aa924ec137c6c7f849587856a262
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/8983
Reviewed-by: Michael Blow <[email protected]>
Reviewed-by: Hussain Towaileb <[email protected]>
Integration-Tests: Jenkins <[email protected]>
Tested-by: Jenkins <[email protected]>
---
.../src/main/java/org/apache/hyracks/util/NetworkUtil.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/NetworkUtil.java
b/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/NetworkUtil.java
index 8e770a7..1bab960 100644
---
a/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/NetworkUtil.java
+++
b/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/NetworkUtil.java
@@ -190,4 +190,8 @@ public class NetworkUtil {
}
return refreshed;
}
+
+ public static InetSocketAddress toInetSocketAddress(HttpHost httpHost) {
+ return new InetSocketAddress(httpHost.getAddress(),
httpHost.getPort());
+ }
}