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 Details

    • IpOnlyHostNameSupplier

      public IpOnlyHostNameSupplier(InetAddress inetAddress)
  • Method Details

    • getHostName

      public String getHostName()
      Returns the textual representation of the TaskManager's IP address as host name.
      Specified by:
      getHostName in interface TaskManagerLocation.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 interface TaskManagerLocation.HostNameSupplier
      Returns:
      The textual representation of the TaskManager's IP address.