public class InstanceConnectionInfo extends Object implements IOReadableWritable, Comparable<InstanceConnectionInfo>, Serializable
| Constructor and Description |
|---|
InstanceConnectionInfo()
Constructs an empty object.
|
InstanceConnectionInfo(InetAddress inetAddress,
int ipcPort,
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 host name of the instance.
|
String |
getHostname() |
String |
getInetAdress() |
int |
hashCode() |
int |
ipcPort()
Returns the port instance's task manager runs its IPC service on.
|
void |
read(DataInputView in) |
String |
toString() |
void |
write(DataOutputView out) |
public InstanceConnectionInfo(InetAddress inetAddress, int ipcPort, int dataPort)
inetAddress - the network address the instance's task manager binds its sockets toipcPort - the port instance's task manager runs its IPC service ondataPort - the port instance's task manager expects to receive transfer envelopes onpublic InstanceConnectionInfo()
public int ipcPort()
public int dataPort()
public InetAddress address()
public String getFQDNHostname()
public String getHostname()
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 © 2015 The Apache Software Foundation. All rights reserved.