geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/AcceptorImpl.java
private static String calcBindHostName(Cache cache, String bindName) {
    if (bindName != null && !bindName.equals("")) {
      return bindName;
    }

    InternalDistributedSystem system = (InternalDistributedSystem) cache.getDistributedSystem();
    DistributionConfig config = system.getConfig();
    String hostName = null;

    // Get the server-bind-address. If it is not null, use it.
    // If it is null, get the bind-address. If it is not null, use it.
    // Otherwise set default.
    String serverBindAddress = config.getServerBindAddress();
    if (serverBindAddress != null && serverBindAddress.length() > 0) {
      hostName = serverBindAddress;
    } else {
      String bindAddress = config.getBindAddress();
      if (bindAddress != null && bindAddress.length() > 0) {
        hostName = bindAddress;
      }
    }
    return hostName;
  }
/**
   * @param bindName the ip address or host name that this acceptor should bind to. If null or ""
   *        then calculate it.
   * @return the ip address or host name this acceptor will listen on. An "" if all local addresses
   *         will be listened to.
   *
   * @since GemFire 5.7
   */
@param bindName the ip address or host name that this acceptor should bind to. If null or ""
then calculate it.
@return the ip address or host name this acceptor will listen on. An "" if all local addresses
will be listened to.


@param bindName the ip address or host name that this acceptor should bind to . If null or " " then calculate it . @return the ip address or host name this acceptor will listen on . An " " if all local addresses will be listened to .
private static String calcBindHostName(Cache cache, String bindName) {
    if (bindName != null && !bindName.equals("")) {
      return bindName;
    }
    InternalDistributedSystem system = (InternalDistributedSystem) cache.getDistributedSystem();
    DistributionConfig config = system.getConfig();
    String hostName = null;
    String serverBindAddress = config.getServerBindAddress();
    if (serverBindAddress != null && serverBindAddress.length() > 0) {
      hostName = serverBindAddress;
    } else {
      String bindAddress = config.getBindAddress();
      if (bindAddress != null && bindAddress.length() > 0) {
        hostName = bindAddress;
      }
    }
    return hostName;
  }
private static String calcBindHostName ( Cache cache , String bindName ) { if ( bindName != null && ! bindName . equals ( "" ) ) { return bindName ; } InternalDistributedSystem system = ( InternalDistributedSystem ) cache . getDistributedSystem ( ) ; DistributionConfig config = system . getConfig ( ) ; String hostName = null ; String serverBindAddress = config . getServerBindAddress ( ) ; if ( serverBindAddress != null && serverBindAddress . length ( ) > 0 ) { hostName = serverBindAddress ; } else { String bindAddress = config . getBindAddress ( ) ; if ( bindAddress != null && bindAddress . length ( ) > 0 ) { hostName = bindAddress ; } } return hostName ; }
@param bindName the ip address or host name that this acceptor should bind to.
@param bindName the ip address or host name that this acceptor should bind to .
// Get the server-bind-address. If it is not null, use it. // If it is null, get the bind-address. If it is not null, use it. // Otherwise set default.