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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the textual representation of the TaskManager's IP address as FQDN host name.Returns the textual representation of the TaskManager's IP address as host name.
-
Constructor Details
-
IpOnlyHostNameSupplier
-
-
Method Details
-
getHostName
Returns the textual representation of the TaskManager's IP address as host name.- Specified by:
getHostNamein interfaceTaskManagerLocation.HostNameSupplier- Returns:
- The textual representation of the TaskManager's IP address.
-
getFqdnHostName
Returns the textual representation of the TaskManager's IP address as FQDN host name.- Specified by:
getFqdnHostNamein interfaceTaskManagerLocation.HostNameSupplier- Returns:
- The textual representation of the TaskManager's IP address.
-