Class HostName

java.lang.Object
io.smallrye.common.net.HostName

public final class HostName extends Object
Methods for getting the system host name. The host name is detected from the environment, but may be overridden by use of the jboss.host.name and/or jboss.qualified.host.name system properties.
  • Method Details

    • getHostName

      public static String getHostName()
      Get the detected host name.
      Returns:
      the detected host name
    • getQualifiedHostName

      public static String getQualifiedHostName()
      Get the detected qualified host name.
      Returns:
      the detected qualified host name
    • getNodeName

      public static String getNodeName()
      Get the node name.
      Returns:
      the node name
    • setQualifiedHostName

      public static void setQualifiedHostName(String qualifiedHostName)
      Set the host name. The qualified host name is set directly from the given value; the unqualified host name is then re-derived from that value. The node name is not changed by this method.
      Parameters:
      qualifiedHostName - the host name
    • setNodeName

      public static void setNodeName(String nodeName)
      Set the node name.
      Parameters:
      nodeName - the node name