public class InstanceConnectionInfo extends Object implements 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(DataInputView in) |
String |
toString() |
void |
write(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(DataInputView in) throws IOException
read in interface IOReadableWritableIOExceptionpublic void write(DataOutputView out) throws IOException
write in interface IOReadableWritableIOExceptionpublic int compareTo(InstanceConnectionInfo o)
compareTo in interface Comparable<InstanceConnectionInfo>Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.