@InterfaceAudience.Public public class Address extends Object implements Comparable<Address>
In implementation this class is a facade over Guava's HostAndPort.
 We cannot have Guava classes in our API hence this Type.
| Modifier and Type | Field and Description | 
|---|---|
| private org.apache.hbase.thirdparty.com.google.common.net.HostAndPort | hostAndPort | 
| Modifier | Constructor and Description | 
|---|---|
| private  | Address(org.apache.hbase.thirdparty.com.google.common.net.HostAndPort hostAndPort) | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compareTo(Address that) | 
| boolean | equals(Object other) | 
| static Address | fromParts(String hostname,
         int port) | 
| static Address | fromString(String hostnameAndPort) | 
| String | getHostname() | 
| int | getPort() | 
| int | hashCode() | 
| String | toString() | 
| String | toStringWithoutDomain()If hostname is a.b.c and the port is 123, return a:123 instead of a.b.c:123. | 
private org.apache.hbase.thirdparty.com.google.common.net.HostAndPort hostAndPort
private Address(org.apache.hbase.thirdparty.com.google.common.net.HostAndPort hostAndPort)
public static Address fromString(String hostnameAndPort)
public String getHostname()
public int getPort()
public String toStringWithoutDomain()
toString()}public int compareTo(Address that)
compareTo in interface Comparable<Address>Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.