Class TaskManagerLocation.IpOnlyHostNameSupplier
- java.lang.Object
-
- org.apache.flink.runtime.taskmanager.TaskManagerLocation.IpOnlyHostNameSupplier
-
- All Implemented Interfaces:
Serializable
,TaskManagerLocation.HostNameSupplier
- Enclosing class:
- TaskManagerLocation
@VisibleForTesting public static class TaskManagerLocation.IpOnlyHostNameSupplier extends Object implements TaskManagerLocation.HostNameSupplier
This Supplier class returns the IP address of the given InetAddress directly, therefore no reverse DNS lookup is required.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IpOnlyHostNameSupplier(InetAddress inetAddress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFqdnHostName()
Returns the textual representation of the TaskManager's IP address as FQDN host name.String
getHostName()
Returns the textual representation of the TaskManager's IP address as host name.
-
-
-
Constructor Detail
-
IpOnlyHostNameSupplier
public IpOnlyHostNameSupplier(InetAddress inetAddress)
-
-
Method Detail
-
getHostName
public String getHostName()
Returns the textual representation of the TaskManager's IP address as host name.- Specified by:
getHostName
in interfaceTaskManagerLocation.HostNameSupplier
- Returns:
- The textual representation of the TaskManager's IP address.
-
getFqdnHostName
public String getFqdnHostName()
Returns the textual representation of the TaskManager's IP address as FQDN host name.- Specified by:
getFqdnHostName
in interfaceTaskManagerLocation.HostNameSupplier
- Returns:
- The textual representation of the TaskManager's IP address.
-
-