You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2020/07/11 04:37:44 UTC
[GitHub] [incubator-dolphinscheduler] CalvinKirs commented on a change in pull request #3186: [Feature-2574][Server]Specify Network Interface
CalvinKirs commented on a change in pull request #3186:
URL: https://github.com/apache/incubator-dolphinscheduler/pull/3186#discussion_r453154468
##########
File path: dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/NetUtils.java
##########
@@ -206,4 +215,8 @@ public static boolean ignoreNetworkInterface(NetworkInterface networkInterface)
|| !networkInterface.isUp();
}
+ public static boolean isSpecifyNetworkInterface(NetworkInterface networkInterface) {
+ String preferredNetworkInterface = System.getProperty(DOLPHIN_SCHEDULER_PREFERRED_NETWORK_INTERFACE);
+ return Objects.equals(networkInterface.getDisplayName(), preferredNetworkInterface);
+ }
Review comment:
- Hello, this is exclusive to net, other business is not involved, so I think it is better to achieve here,how do you think?
----------------------------------------------------------------
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:
users@infra.apache.org