Package org.wildfly.common.net
Class HostName
java.lang.Object
org.wildfly.common.net.HostName
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringGet the detected host name.static StringGet the node name.static StringGet the detected qualified host name.static voidsetNodeName(String nodeName) Set the node name.static voidsetQualifiedHostName(String qualifiedHostName) Set the host name.
-
Method Details
-
getHostName
Get the detected host name.- Returns:
- the detected host name
-
getQualifiedHostName
Get the detected qualified host name.- Returns:
- the detected qualified host name
-
getNodeName
Get the node name.- Returns:
- the node name
-
setQualifiedHostName
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
Set the node name.- Parameters:
nodeName- the node name
-