Class HostName

java.lang.Object
org.wildfly.common.net.HostName

@Deprecated(forRemoval=true) public final class HostName extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Use HostName instead.
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.
Author:
David M. Lloyd
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use HostName.getHostName() instead.
    static String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use HostName.getNodeName() instead.
    static String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use HostName.getQualifiedHostName() instead.
    static void
    setNodeName(String nodeName)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use HostName.setNodeName(String) instead.
    static void
    setQualifiedHostName(String qualifiedHostName)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use HostName.setQualifiedHostName(String) instead.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HostName

      public HostName()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getHostName

      @Deprecated(forRemoval=true) public static String getHostName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use HostName.getHostName() instead.
      Get the detected host name.
      Returns:
      the detected host name
    • getQualifiedHostName

      @Deprecated(forRemoval=true) public static String getQualifiedHostName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use HostName.getQualifiedHostName() instead.
      Get the detected qualified host name.
      Returns:
      the detected qualified host name
    • getNodeName

      @Deprecated(forRemoval=true) public static String getNodeName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use HostName.getNodeName() instead.
      Get the node name.
      Returns:
      the node name
    • setQualifiedHostName

      @Deprecated(forRemoval=true) public static void setQualifiedHostName(String qualifiedHostName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use HostName.setQualifiedHostName(String) instead.
      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

      @Deprecated(forRemoval=true) public static void setNodeName(String nodeName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use HostName.setNodeName(String) instead.
      Set the node name.
      Parameters:
      nodeName - the node name