Class HostnameUtil
java.lang.Object
com.netflix.genie.common.internal.util.HostnameUtil
Static utility class to determine the local hostname.
- Since:
- 4.0.0
-
Method Summary
-
Method Details
-
getHostname
Get the local hostname string. This implementation actually return an IP address string.- Returns:
- a hostname string
- Throws:
UnknownHostException
- if hostname resolution fails
-