public class HRegionLocation extends Object implements Comparable<HRegionLocation>
Constructor and Description |
---|
HRegionLocation(HRegionInfo regionInfo,
String hostname,
int port)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(HRegionLocation o) |
boolean |
equals(Object o) |
String |
getHostname() |
String |
getHostnamePort() |
int |
getPort() |
HRegionInfo |
getRegionInfo() |
HServerAddress |
getServerAddress()
Deprecated.
|
int |
hashCode() |
String |
toString() |
public HRegionLocation(HRegionInfo regionInfo, String hostname, int port)
regionInfo
- the HRegionInfo for the regionhostname
- Hostnameport
- portpublic String toString()
toString
in class Object
Object.toString()
public boolean equals(Object o)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public HRegionInfo getRegionInfo()
public HServerAddress getServerAddress()
getHostnamePort()
public String getHostname()
public int getPort()
public String getHostnamePort()
Addressing.createHostAndPortStr(String, int)
public int compareTo(HRegionLocation o)
compareTo
in interface Comparable<HRegionLocation>
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.