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 1334F200D67 for ; Sat, 18 Nov 2017 16:18:07 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 100E9160BF7; Sat, 18 Nov 2017 15:18:07 +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 294B0160BE9 for ; Sat, 18 Nov 2017 16:18:05 +0100 (CET) Received: (qmail 91089 invoked by uid 500); 18 Nov 2017 15:18:00 -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 90408 invoked by uid 99); 18 Nov 2017 15:17:59 -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; Sat, 18 Nov 2017 15:17:59 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 21679F5F3A; Sat, 18 Nov 2017 15:17:59 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: git-site-role@apache.org To: commits@hbase.apache.org Date: Sat, 18 Nov 2017 15:18:14 -0000 Message-Id: <852932da68844eb4af5a89a568730ac1@git.apache.org> In-Reply-To: <04dac427d6e94209a44c502fb58f3c51@git.apache.org> References: <04dac427d6e94209a44c502fb58f3c51@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [17/51] [partial] hbase-site git commit: Published site at . archived-at: Sat, 18 Nov 2017 15:18:07 -0000 http://git-wip-us.apache.org/repos/asf/hbase-site/blob/48aaec11/devapidocs/org/apache/hadoop/hbase/zookeeper/ZKNodeTracker.html ---------------------------------------------------------------------- diff --git a/devapidocs/org/apache/hadoop/hbase/zookeeper/ZKNodeTracker.html b/devapidocs/org/apache/hadoop/hbase/zookeeper/ZKNodeTracker.html new file mode 100644 index 0000000..e366818 --- /dev/null +++ b/devapidocs/org/apache/hadoop/hbase/zookeeper/ZKNodeTracker.html @@ -0,0 +1,635 @@ + + + + + + +ZKNodeTracker (Apache HBase 3.0.0-SNAPSHOT API) + + + + + + + + + + + +
+
org.apache.hadoop.hbase.zookeeper
+

Class ZKNodeTracker

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

      Field Detail

      + + + +
        +
      • +

        LOG

        +
        protected static final org.apache.commons.logging.Log LOG
        +
      • +
      + + + +
        +
      • +

        node

        +
        protected final String node
        +
        Path of node being tracked
        +
      • +
      + + + +
        +
      • +

        data

        +
        private byte[] data
        +
        Data of the node being tracked
        +
      • +
      + + + +
        +
      • +

        abortable

        +
        protected final Abortable abortable
        +
        Used to abort if a fatal error occurs
        +
      • +
      + + + +
        +
      • +

        stopped

        +
        private boolean stopped
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ZKNodeTracker

        +
        public ZKNodeTracker(ZKWatcher watcher,
        +                     String node,
        +                     Abortable abortable)
        +
        Constructs a new ZK node tracker. + +

        After construction, use start() to kick off tracking.

        +
        +
        Parameters:
        +
        watcher -
        +
        node -
        +
        abortable -
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        start

        +
        public void start()
        +
        Starts the tracking of the node in ZooKeeper. + +

        Use blockUntilAvailable() to block until the node is available + or getData(boolean) to get the data of the node if it is available.

        +
      • +
      + + + +
        +
      • +

        stop

        +
        public void stop()
        +
      • +
      + + + + + + + +
        +
      • +

        blockUntilAvailable

        +
        public byte[] blockUntilAvailable(long timeout,
        +                                  boolean refresh)
        +                           throws InterruptedException
        +
        Gets the data of the node, blocking until the node is available or the + specified timeout has elapsed.
        +
        +
        Parameters:
        +
        timeout - maximum time to wait for the node data to be available, + n milliseconds. Pass 0 for no timeout.
        +
        Returns:
        +
        data of the node
        +
        Throws:
        +
        InterruptedException - if the waiting thread is interrupted
        +
        +
      • +
      + + + +
        +
      • +

        getData

        +
        public byte[] getData(boolean refresh)
        +
        Gets the data of the node. + +

        If the node is currently available, the most up-to-date known version of + the data is returned. If the node is not currently available, null is + returned.

        +
        +
        Parameters:
        +
        refresh - whether to refresh the data by calling ZK directly.
        +
        Returns:
        +
        data of the node, null if unavailable
        +
        +
      • +
      + + + + + + + +
        +
      • +

        nodeCreated

        +
        public void nodeCreated(String path)
        +
        Description copied from class: ZKListener
        +
        Called when a new node has been created.
        +
        +
        Overrides:
        +
        nodeCreated in class ZKListener
        +
        Parameters:
        +
        path - full path of the new node
        +
        +
      • +
      + + + +
        +
      • +

        nodeDeleted

        +
        public void nodeDeleted(String path)
        +
        Description copied from class: ZKListener
        +
        Called when a node has been deleted
        +
        +
        Overrides:
        +
        nodeDeleted in class ZKListener
        +
        Parameters:
        +
        path - full path of the deleted node
        +
        +
      • +
      + + + + + + + +
        +
      • +

        checkIfBaseNodeAvailable

        +
        public boolean checkIfBaseNodeAvailable()
        +
        Checks if the baseznode set as per the property 'zookeeper.znode.parent' + exists.
        +
        +
        Returns:
        +
        true if baseznode exists. + false if doesnot exists.
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + +

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

+ + http://git-wip-us.apache.org/repos/asf/hbase-site/blob/48aaec11/devapidocs/org/apache/hadoop/hbase/zookeeper/ZKServerTool.html ---------------------------------------------------------------------- diff --git a/devapidocs/org/apache/hadoop/hbase/zookeeper/ZKServerTool.html b/devapidocs/org/apache/hadoop/hbase/zookeeper/ZKServerTool.html index cd9656b..5934b1b 100644 --- a/devapidocs/org/apache/hadoop/hbase/zookeeper/ZKServerTool.html +++ b/devapidocs/org/apache/hadoop/hbase/zookeeper/ZKServerTool.html @@ -49,7 +49,7 @@ var activeTableTab = "activeTableTab"; @@ -179,7 +177,7 @@ extends static String -getEncodedNodeName(ZooKeeperWatcher zkw, +getEncodedNodeName(ZKWatcher zkw, String filename)
Gets the full path node name for the log file being split.
@@ -190,7 +188,7 @@ extends static String -getRescanNode(ZooKeeperWatcher zkw)  +getRescanNode(ZKWatcher zkw)  static org.apache.hadoop.fs.Path @@ -209,7 +207,7 @@ extends static boolean -isRescanNode(ZooKeeperWatcher zkw, +isRescanNode(ZKWatcher zkw, String path)  @@ -246,7 +244,7 @@ extends
  • LOG

    -
    private static final org.apache.commons.logging.Log LOG
    +
    private static final org.apache.commons.logging.Log LOG
  • @@ -263,7 +261,7 @@ extends
  • ZKSplitLog

    -
    public ZKSplitLog()
    +
    public ZKSplitLog()
  • @@ -274,13 +272,13 @@ extends + @@ -306,7 +304,7 @@ extends
  • encode

    -
    static String encode(String s)
    +
    static String encode(String s)
  • @@ -315,16 +313,16 @@ extends
  • decode

    -
    static String decode(String s)
    +
    static String decode(String s)
  • - + @@ -333,7 +331,7 @@ extends
  • isRescanNode

    -
    public static boolean isRescanNode(String name)
    +
    public static boolean isRescanNode(String name)
    Parameters:
    name - the last part in path
    @@ -342,13 +340,13 @@ extends + @@ -375,7 +373,7 @@ extends
  • markCorrupted

    -
    public static void markCorrupted(org.apache.hadoop.fs.Path rootdir,
    +
    public static void markCorrupted(org.apache.hadoop.fs.Path rootdir,
                                      String logFileName,
                                      org.apache.hadoop.fs.FileSystem fs)
  • @@ -386,7 +384,7 @@ extends
  • isCorrupted

    -
    public static boolean isCorrupted(org.apache.hadoop.fs.Path rootdir,
    +
    public static boolean isCorrupted(org.apache.hadoop.fs.Path rootdir,
                                       String logFileName,
                                       org.apache.hadoop.fs.FileSystem fs)
                                throws IOException
    http://git-wip-us.apache.org/repos/asf/hbase-site/blob/48aaec11/devapidocs/org/apache/hadoop/hbase/zookeeper/ZKUtil.ZKUtilOp.SetData.html ---------------------------------------------------------------------- diff --git a/devapidocs/org/apache/hadoop/hbase/zookeeper/ZKUtil.ZKUtilOp.SetData.html b/devapidocs/org/apache/hadoop/hbase/zookeeper/ZKUtil.ZKUtilOp.SetData.html index d83f867..29aacaf 100644 --- a/devapidocs/org/apache/hadoop/hbase/zookeeper/ZKUtil.ZKUtilOp.SetData.html +++ b/devapidocs/org/apache/hadoop/hbase/zookeeper/ZKUtil.ZKUtilOp.SetData.html @@ -50,7 +50,7 @@ var activeTableTab = "activeTableTab";