public class InstanceConnectionInfo extends Object implements IOReadableWritable, Comparable<InstanceConnectionInfo>
| Constructor and Description |
|---|
InstanceConnectionInfo()
Constructs an empty
InstanceConnectionInfo object. |
InstanceConnectionInfo(InetAddress inetAddress,
int ipcPort,
int dataPort)
Constructs a new instance connection info object.
|
InstanceConnectionInfo(InetAddress inetAddress,
String hostName,
String domainName,
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.
|
String |
domainName()
Returns the domain name of the instance.
|
boolean |
equals(Object obj) |
String |
getInetAdress() |
int |
hashCode() |
String |
hostname()
Returns the host name of the instance.
|
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(InetAddress inetAddress, String hostName, String domainName, int ipcPort, int dataPort)
inetAddress - the network address the instance's task manager binds its sockets tohostName - the host name of the instancedomainName - the domain name of the instanceipcPort - the port instance's task manager runs its IPC service ondataPort - the port instance's task manager expects to receive transfer envelopes on.public InstanceConnectionInfo()
InstanceConnectionInfo object.public int ipcPort()
public int dataPort()
public InetAddress address()
public String hostname()
public String domainName()
null if the domain name could not be determinedpublic 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 The Apache Software Foundation. All rights reserved.