From commits-return-79103-archive-asf-public=cust-asf.ponee.io@hbase.apache.org Fri Oct 12 22:04:41 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 5B30E1807C2 for ; Fri, 12 Oct 2018 22:04:37 +0200 (CEST) Received: (qmail 20259 invoked by uid 500); 12 Oct 2018 20:04:29 -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 17743 invoked by uid 99); 12 Oct 2018 20:04:28 -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; Fri, 12 Oct 2018 20:04:27 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5D998E08D6; Fri, 12 Oct 2018 20:04:27 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: mdrob@apache.org To: commits@hbase.apache.org Date: Fri, 12 Oct 2018 20:04:55 -0000 Message-Id: <2e479f564347487189b9e4fa3b54a1aa@git.apache.org> In-Reply-To: <394365d874ee4882840e2fda0f5c0745@git.apache.org> References: <394365d874ee4882840e2fda0f5c0745@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [30/52] [partial] hbase-site git commit: HBASE-21114 Include 2.1 Release Docs http://git-wip-us.apache.org/repos/asf/hbase-site/blob/ec4814ee/2.1/apidocs/org/apache/hadoop/hbase/ClusterMetrics.html ---------------------------------------------------------------------- diff --git a/2.1/apidocs/org/apache/hadoop/hbase/ClusterMetrics.html b/2.1/apidocs/org/apache/hadoop/hbase/ClusterMetrics.html new file mode 100644 index 0000000..3c52738 --- /dev/null +++ b/2.1/apidocs/org/apache/hadoop/hbase/ClusterMetrics.html @@ -0,0 +1,505 @@ + + + + + + +ClusterMetrics (Apache HBase 2.1.0 API) + + + + + + + + + + + +
+
org.apache.hadoop.hbase
+

接口 ClusterMetrics

+
+
+
+
    +
  • +
    +
    所有已知实现类:
    +
    ClusterStatus
    +
    +
    +
    +
    @InterfaceAudience.Public
    +public interface ClusterMetrics
    +
    Metrics information on the HBase cluster. +

    + ClusterMetrics provides clients with information such as: +

      +
    • The count and names of region servers in the cluster.
    • +
    • The count and names of dead region servers in the cluster.
    • +
    • The name of the active master for the cluster.
    • +
    • The name(s) of the backup master(s) for the cluster, if they exist.
    • +
    • The average cluster load.
    • +
    • The number of regions deployed on the cluster.
    • +
    • The number of requests since last report.
    • +
    • Detailed region server loading and resource usage information, + per server and per region.
    • +
    • Regions in transition at master
    • +
    • The unique cluster ID
    • +
    + ClusterMetrics.Option provides a way to get desired ClusterStatus information. + The following codes will get all the cluster information. +
    + 
    + // Original version still works
    + Admin admin = connection.getAdmin();
    + ClusterMetrics metrics = admin.getClusterStatus();
    + // or below, a new version which has the same effects
    + ClusterMetrics metrics = admin.getClusterStatus(EnumSet.allOf(Option.class));
    + 
    + 
    + If information about live servers is the only wanted. + then codes in the following way: +
    + 
    + Admin admin = connection.getAdmin();
    + ClusterMetrics metrics = admin.getClusterStatus(EnumSet.of(Option.LIVE_SERVERS));
    + 
    + 
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

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

+ + http://git-wip-us.apache.org/repos/asf/hbase-site/blob/ec4814ee/2.1/apidocs/org/apache/hadoop/hbase/ClusterMetricsBuilder.html ---------------------------------------------------------------------- diff --git a/2.1/apidocs/org/apache/hadoop/hbase/ClusterMetricsBuilder.html b/2.1/apidocs/org/apache/hadoop/hbase/ClusterMetricsBuilder.html new file mode 100644 index 0000000..8dd1407 --- /dev/null +++ b/2.1/apidocs/org/apache/hadoop/hbase/ClusterMetricsBuilder.html @@ -0,0 +1,497 @@ + + + + + + +ClusterMetricsBuilder (Apache HBase 2.1.0 API) + + + + + + + + + + + +
+
org.apache.hadoop.hbase
+

类 ClusterMetricsBuilder

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

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

+ +