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)
Reads the object's internal data from the given data input view.
|
String |
toString() |
void |
write(DataOutputView out)
Writes the object's internal data to the given data output view.
|
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
IOReadableWritable
read
in interface IOReadableWritable
in
- the input view to read the data fromIOException
- thrown if any error occurs while reading from the input streampublic void write(DataOutputView out) throws IOException
IOReadableWritable
write
in interface IOReadableWritable
out
- the output view to receive the data.IOException
- thrown if any error occurs while writing to the output streampublic int compareTo(InstanceConnectionInfo o)
compareTo
in interface Comparable<InstanceConnectionInfo>
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.