Instance of an HBase ServerName.
A server name is used uniquely identifying a server instance in a cluster and is made
of the combination of hostname, port, and startcode. The startcode distingushes restarted
servers on same hostname and port (startcode is usually timestamp of server startup). The
toString() format of ServerName is safe to use in the filesystem and as znode name
up in ZooKeeper. Its format is:
<hostname> 'SERVERNAME_SEPARATOR' <port> 'SERVERNAME_SEPARATOR' <startcode>.
For example, if hostname is www.example.org, port is 1234,
and the startcode for the regionserver is 1212121212, then
the toString() would be www.example.org,1234,1212121212.

toString

toShortString

Return a SHORT version of toString(), one that has the host only,
minus the domain, and the port only -- no start code; the String is for us internally mostly
tying threads to their server. Not for external use. It is lossy and will not work in
in compares, etc.

getVersionedBytes

public byte[] getVersionedBytes()

Returns:

getServerName() as bytes with a short-sized prefix with
the ServerName#VERSION of this class.

parseFrom

data - Data with a serialize server name in it; can handle the old style
servername where servername was host and port. Works too with data that
begins w/ the pb 'PBUF' magic and that is then followed by a protobuf that
has a serialized ServerName in it.