public class InstanceConnectionInfo extends Object implements org.apache.flink.core.io.IOReadableWritable, Comparable<InstanceConnectionInfo>, Serializable
Constructor and Description |
---|
InstanceConnectionInfo()
Constructs an empty object.
|
InstanceConnectionInfo(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.
|
int |
compareTo(InstanceConnectionInfo 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.
|
String |
getInetAdress()
Gets the IP address where the TaskManager operates.
|
int |
hashCode() |
void |
read(org.apache.flink.core.memory.DataInputView in) |
String |
toString() |
void |
write(org.apache.flink.core.memory.DataOutputView out) |
public InstanceConnectionInfo(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 InstanceConnectionInfo()
public int dataPort()
public InetAddress address()
public String getFQDNHostname()
public String getHostname()
getFQDNHostname()
):
public String getInetAdress()
public void read(org.apache.flink.core.memory.DataInputView in) throws IOException
read
in interface org.apache.flink.core.io.IOReadableWritable
IOException
public void write(org.apache.flink.core.memory.DataOutputView out) throws IOException
write
in interface org.apache.flink.core.io.IOReadableWritable
IOException
public int compareTo(InstanceConnectionInfo o)
compareTo
in interface Comparable<InstanceConnectionInfo>
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.