Java Host Name Get getLogHost()

Here you can find the source of getLogHost()

Description

get Log Host

License

Apache License

Declaration

public static String getLogHost() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.net.*;

public class Main {
    public static final String LOCALHOST = "127.0.0.1";
    private static volatile InetAddress LOCAL_ADDRESS = null;

    public static String getLogHost() {
        InetAddress address = LOCAL_ADDRESS;
        return address == null ? LOCALHOST : address.getHostAddress();
    }//  w  w  w .ja  v a  2 s  .  c o  m
}

Related

  1. getHtmlSource(final String host)
  2. getInetHost()
  3. getLedgerAllocatorPoolName(int serverRegionId, int shardId, boolean useHostname)
  4. getLocalCanonicalHostName()
  5. getLocalShortHostName()
  6. getMachineHostname()
  7. getMyHostname()
  8. getProxy(String host, String proxyType)
  9. getServerHost()