Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 74AFD200BC5 for ; Tue, 8 Nov 2016 07:16:27 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 73491160AF9; Tue, 8 Nov 2016 06:16:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AC63A160B10 for ; Tue, 8 Nov 2016 07:16:24 +0100 (CET) Received: (qmail 23391 invoked by uid 500); 8 Nov 2016 06:16:23 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 16658 invoked by uid 99); 8 Nov 2016 06:16:16 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2016 06:16:16 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C16D1F16B5; Tue, 8 Nov 2016 06:16:15 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: stack@apache.org To: commits@hbase.apache.org Date: Tue, 08 Nov 2016 06:16:26 -0000 Message-Id: In-Reply-To: <829e84479a1a499884c9f9ad8aa96c59@git.apache.org> References: <829e84479a1a499884c9f9ad8aa96c59@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [12/51] [partial] hbase-site git commit: Empty commit archived-at: Tue, 08 Nov 2016 06:16:27 -0000 http://git-wip-us.apache.org/repos/asf/hbase-site/blob/6960a0bd/1.1/apidocs/org/apache/hadoop/hbase/ServerName.html ---------------------------------------------------------------------- diff --git a/1.1/apidocs/org/apache/hadoop/hbase/ServerName.html b/1.1/apidocs/org/apache/hadoop/hbase/ServerName.html new file mode 100644 index 0000000..482b869 --- /dev/null +++ b/1.1/apidocs/org/apache/hadoop/hbase/ServerName.html @@ -0,0 +1,745 @@ + + + + + +ServerName (Apache HBase 1.1.8-SNAPSHOT API) + + + + + + + + + + +
+
org.apache.hadoop.hbase
+

Class ServerName

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable, Comparable<ServerName>
    +
    +
    +
    +
    @InterfaceAudience.Public
    +@InterfaceStability.Evolving
    +public class ServerName
    +extends Object
    +implements Comparable<ServerName>, Serializable
    +
    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. + +

    You can obtain a versioned serialized form of this class by calling + getVersionedBytes(). To deserialize, call parseVersionedServerName(byte[]) + +

    Immutable.

    +
    See Also:
    Serialized Form
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        NON_STARTCODE

        +
        public static final int NON_STARTCODE
        +
        What to use if no startcode supplied.
        +
        See Also:
        Constant Field Values
        +
      • +
      + + + +
        +
      • +

        SERVERNAME_SEPARATOR

        +
        public static final String SERVERNAME_SEPARATOR
        +
        This character is used as separator between server hostname, port and + startcode.
        +
        See Also:
        Constant Field Values
        +
      • +
      + + + +
        +
      • +

        SERVERNAME_PATTERN

        +
        public static final Pattern SERVERNAME_PATTERN
        +
      • +
      + + + +
        +
      • +

        UNKNOWN_SERVERNAME

        +
        public static final String UNKNOWN_SERVERNAME
        +
        What to use if server name is unknown.
        +
        See Also:
        Constant Field Values
        +
      • +
      + + + +
        +
      • +

        EMPTY_SERVER_LIST

        +
        public static final List<ServerName> EMPTY_SERVER_LIST
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        parseHostname

        +
        public static String parseHostname(String serverName)
        +
      • +
      + + + +
        +
      • +

        parsePort

        +
        public static int parsePort(String serverName)
        +
      • +
      + + + +
        +
      • +

        parseStartcode

        +
        public static long parseStartcode(String serverName)
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static ServerName valueOf(String hostname,
        +                 int port,
        +                 long startcode)
        +
        Retrieve an instance of ServerName. + Callers should use the equals method to compare returned instances, though we may return + a shared immutable object as an internal optimization.
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static ServerName valueOf(String serverName)
        +
        Retrieve an instance of ServerName. + Callers should use the equals method to compare returned instances, though we may return + a shared immutable object as an internal optimization.
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static ServerName valueOf(String hostAndPort,
        +                 long startCode)
        +
        Retrieve an instance of ServerName. + Callers should use the equals method to compare returned instances, though we may return + a shared immutable object as an internal optimization.
        +
      • +
      + + + + + + + +
        +
      • +

        toShortString

        +
        public String toShortString()
        +
        Returns:
        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.
        +
      • +
      + + + +
        +
      • +

        getServerName

        +
        public String getServerName()
        +
      • +
      + + + +
        +
      • +

        getHostname

        +
        public String getHostname()
        +
      • +
      + + + +
        +
      • +

        getPort

        +
        public int getPort()
        +
      • +
      + + + +
        +
      • +

        getStartcode

        +
        public long getStartcode()
        +
      • +
      + + + +
        +
      • +

        getServerName

        +
        public static String getServerName(String hostAndPort,
        +                   long startcode)
        +
        Parameters:
        hostAndPort - String in form of <hostname> ':' <port>
        startcode -
        +
        Returns:
        Server name made of the concatenation of hostname, port and + startcode formatted as <hostname> ',' <port> ',' <startcode>
        +
      • +
      + + + +
        +
      • +

        getHostAndPort

        +
        public String getHostAndPort()
        +
        Returns:
        Hostname and port formatted as described at + Addressing.createHostAndPortStr(String, int)
        +
      • +
      + + + +
        +
      • +

        getServerStartcodeFromServerName

        +
        public static long getServerStartcodeFromServerName(String serverName)
        +
        Parameters:
        serverName - ServerName in form specified by getServerName()
        +
        Returns:
        The server start code parsed from servername
        +
      • +
      + + + +
        +
      • +

        getServerNameLessStartCode

        +
        public static String getServerNameLessStartCode(String inServerName)
        +
        Utility method to excise the start code from a server name
        +
        Parameters:
        inServerName - full server name
        +
        Returns:
        server name less its start code
        +
      • +
      + + + + + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class Object
        +
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(Object o)
        +
        +
        Overrides:
        +
        equals in class Object
        +
        +
      • +
      + + + +
        +
      • +

        isSameHostnameAndPort

        +
        public static boolean isSameHostnameAndPort(ServerName left,
        +                            ServerName right)
        +
        Parameters:
        left -
        right -
        +
        Returns:
        True if other has same hostname and port.
        +
      • +
      + + + +
        +
      • +

        parseVersionedServerName

        +
        public static ServerName parseVersionedServerName(byte[] versionedBytes)
        +
        Use this method instantiating a ServerName from bytes + gotten from a call to getVersionedBytes(). Will take care of the + case where bytes were written by an earlier version of hbase.
        +
        Parameters:
        versionedBytes - Pass bytes gotten from a call to getVersionedBytes()
        +
        Returns:
        A ServerName instance.
        See Also:
        getVersionedBytes()
        +
      • +
      + + + +
        +
      • +

        parseServerName

        +
        public static ServerName parseServerName(String str)
        +
        Parameters:
        str - Either an instance of toString() or a + "'' ':' ''".
        +
        Returns:
        A ServerName instance.
        +
      • +
      + + + +
        +
      • +

        isFullServerName

        +
        public static boolean isFullServerName(String str)
        +
        Returns:
        true if the String follows the pattern of toString(), false + otherwise.
        +
      • +
      + + + +
        +
      • +

        parseFrom

        +
        public static ServerName parseFrom(byte[] data)
        +                            throws org.apache.hadoop.hbase.exceptions.DeserializationException
        +
        Get a ServerName from the passed in data bytes.
        +
        Parameters:
        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.
        +
        Returns:
        Returns null if data is null else converts passed data + to a ServerName instance.
        +
        Throws:
        +
        org.apache.hadoop.hbase.exceptions.DeserializationException
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.

+ + http://git-wip-us.apache.org/repos/asf/hbase-site/blob/6960a0bd/1.1/apidocs/org/apache/hadoop/hbase/SettableSequenceId.html ---------------------------------------------------------------------- diff --git a/1.1/apidocs/org/apache/hadoop/hbase/SettableSequenceId.html b/1.1/apidocs/org/apache/hadoop/hbase/SettableSequenceId.html new file mode 100644 index 0000000..5f88dd8 --- /dev/null +++ b/1.1/apidocs/org/apache/hadoop/hbase/SettableSequenceId.html @@ -0,0 +1,222 @@ + + + + + + +SettableSequenceId (Apache HBase 1.1.8-SNAPSHOT API) + + + + + + + + + + + +
+
org.apache.hadoop.hbase
+

Interface SettableSequenceId

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      voidsetSequenceId(long seqId) +
      Sets with the given seqId.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setSequenceId

        +
        void setSequenceId(long seqId)
        +                   throws IOException
        +
        Sets with the given seqId.
        +
        Parameters:
        seqId -
        +
        Throws:
        +
        IOException
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.

+ + http://git-wip-us.apache.org/repos/asf/hbase-site/blob/6960a0bd/1.1/apidocs/org/apache/hadoop/hbase/SettableTimestamp.html ---------------------------------------------------------------------- diff --git a/1.1/apidocs/org/apache/hadoop/hbase/SettableTimestamp.html b/1.1/apidocs/org/apache/hadoop/hbase/SettableTimestamp.html new file mode 100644 index 0000000..d62f840 --- /dev/null +++ b/1.1/apidocs/org/apache/hadoop/hbase/SettableTimestamp.html @@ -0,0 +1,244 @@ + + + + + + +SettableTimestamp (Apache HBase 1.1.8-SNAPSHOT API) + + + + + + + + + + + +
+
org.apache.hadoop.hbase
+

Interface SettableTimestamp

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      voidsetTimestamp(byte[] ts, + int tsOffset) +
      Sets with the given timestamp.
      +
      voidsetTimestamp(long ts) +
      Sets with the given timestamp.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setTimestamp

        +
        void setTimestamp(long ts)
        +                  throws IOException
        +
        Sets with the given timestamp.
        +
        Parameters:
        ts -
        +
        Throws:
        +
        IOException
        +
      • +
      + + + +
        +
      • +

        setTimestamp

        +
        void setTimestamp(byte[] ts,
        +                int tsOffset)
        +                  throws IOException
        +
        Sets with the given timestamp.
        +
        Parameters:
        ts - buffer containing the timestamp value
        tsOffset - offset to the new timestamp
        +
        Throws:
        +
        IOException
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.

+ +