public class TaskManagerLocation extends Object implements Comparable<TaskManagerLocation>, Serializable
Constructor and Description |
---|
TaskManagerLocation(ResourceID resourceID,
InetAddress inetAddress,
int dataPort)
Constructs a new instance connection info object.
|
Modifier and Type | Method and Description |
---|---|
InetAddress |
address()
Returns the network address the instance's task manager binds its sockets to.
|
String |
addressString()
Gets the IP address where the TaskManager operates.
|
int |
compareTo(TaskManagerLocation o) |
int |
dataPort()
Returns the port instance's task manager expects to receive transfer envelopes on.
|
boolean |
equals(Object obj) |
String |
getFQDNHostname()
Returns the fully-qualified domain name the TaskManager.
|
String |
getHostname()
Gets the hostname of the TaskManager.
|
static String |
getHostName(InetAddress inetAddress)
Gets the hostname of the TaskManager based on the network address.
|
ResourceID |
getResourceID()
Gets the ID of the resource in which the TaskManager is started.
|
int |
hashCode() |
String |
toString() |
public TaskManagerLocation(ResourceID resourceID, InetAddress inetAddress, int dataPort)
inetAddress
- the network address the instance's task manager binds its sockets todataPort
- the port instance's task manager expects to receive transfer envelopes onpublic ResourceID getResourceID()
public int dataPort()
public InetAddress address()
public String addressString()
public String getFQDNHostname()
public String getHostname()
getFQDNHostname()
):
public static String getHostName(InetAddress inetAddress)
inetAddress
- the network address that the TaskManager binds its sockets topublic int compareTo(@Nonnull TaskManagerLocation o)
compareTo
in interface Comparable<TaskManagerLocation>
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.