Package org.wildfly.common.net
Class HostName
java.lang.Object
org.wildfly.common.net.HostName
Deprecated, for removal: This API element is subject to removal in a future version.
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
ConstructorsConstructorDescriptionHostName()Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringDeprecated, for removal: This API element is subject to removal in a future version.UseHostName.getHostName()instead.static StringDeprecated, for removal: This API element is subject to removal in a future version.UseHostName.getNodeName()instead.static StringDeprecated, for removal: This API element is subject to removal in a future version.UseHostName.getQualifiedHostName()instead.static voidsetNodeName(String nodeName) Deprecated, for removal: This API element is subject to removal in a future version.UseHostName.setNodeName(String)instead.static voidsetQualifiedHostName(String qualifiedHostName) Deprecated, for removal: This API element is subject to removal in a future version.UseHostName.setQualifiedHostName(String)instead.
-
Constructor Details
-
HostName
public HostName()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getHostName
Deprecated, for removal: This API element is subject to removal in a future version.UseHostName.getHostName()instead.Get the detected host name.- Returns:
- the detected host name
-
getQualifiedHostName
Deprecated, for removal: This API element is subject to removal in a future version.UseHostName.getQualifiedHostName()instead.Get the detected qualified host name.- Returns:
- the detected qualified host name
-
getNodeName
Deprecated, for removal: This API element is subject to removal in a future version.UseHostName.getNodeName()instead.Get the node name.- Returns:
- the node name
-
setQualifiedHostName
Deprecated, for removal: This API element is subject to removal in a future version.UseHostName.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, for removal: This API element is subject to removal in a future version.UseHostName.setNodeName(String)instead.Set the node name.- Parameters:
nodeName- the node name
-
HostNameinstead.