Package org.apache.hadoop.hbase.favored
Class StartcodeAgnosticServerName
java.lang.Object
org.apache.hadoop.hbase.ServerName
org.apache.hadoop.hbase.favored.StartcodeAgnosticServerName
- All Implemented Interfaces:
Serializable
,Comparable<ServerName>
This class differs from ServerName in that start code is always ignored. This is because start
code, ServerName.NON_STARTCODE is used to persist favored nodes and keeping this separate from
ServerName
is much cleaner. This should only be used by Favored node specific classes and
should not be used outside favored nodes.-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.ServerName
EMPTY_SERVER_LIST, NON_STARTCODE, SERVERNAME_PATTERN, SERVERNAME_SEPARATOR, UNKNOWN_SERVERNAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(ServerName other) int
hashCode()
static StartcodeAgnosticServerName
static StartcodeAgnosticServerName
valueOf
(ServerName serverName) static StartcodeAgnosticServerName
valueOf
(org.apache.hbase.thirdparty.com.google.common.net.HostAndPort hostnameAndPort, long startcode) Methods inherited from class org.apache.hadoop.hbase.ServerName
equals, getAddress, getHostname, getHostnameLowerCase, getPort, getServerName, getStartcode, getStartCode, getVersionedBytes, isFullServerName, isSameAddress, parseServerName, parseVersionedServerName, toShortString, toString, valueOf, valueOf, valueOf
-
Constructor Details
-
StartcodeAgnosticServerName
-
-
Method Details
-
valueOf
-
valueOf
-
valueOf
public static StartcodeAgnosticServerName valueOf(org.apache.hbase.thirdparty.com.google.common.net.HostAndPort hostnameAndPort, long startcode) -
compareTo
- Specified by:
compareTo
in interfaceComparable<ServerName>
- Overrides:
compareTo
in classServerName
-
hashCode
- Overrides:
hashCode
in classServerName
-