FAQ
Author: kevinwilfong
Date: Tue Mar 12 18:57:16 2013
New Revision: 1455668

URL: http://svn.apache.org/r1455668
Log:
HIVE-4125. Expose metastore JMX metrics. (Samuel Yuan via kevinwilfong)

Modified:
     hive/trunk/common/src/java/org/apache/hadoop/hive/common/metrics/Metrics.java

Modified: hive/trunk/common/src/java/org/apache/hadoop/hive/common/metrics/Metrics.java
URL: http://svn.apache.org/viewvc/hive/trunk/common/src/java/org/apache/hadoop/hive/common/metrics/Metrics.java?rev=1455668&r1=1455667&r2=1455668&view=diff
==============================================================================
--- hive/trunk/common/src/java/org/apache/hadoop/hive/common/metrics/Metrics.java (original)
+++ hive/trunk/common/src/java/org/apache/hadoop/hive/common/metrics/Metrics.java Tue Mar 12 18:57:16 2013
@@ -72,6 +72,14 @@ public class Metrics {
        open();
      }

+ public Long getNumCounter() throws IOException {
+ return (Long)Metrics.get(numCounter);
+ }
+
+ public Long getTimeCounter() throws IOException {
+ return (Long)Metrics.get(timeCounter);
+ }
+
      /**
       * Opens scope, and makes note of the time started, increments run counter
       * @throws IOException

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupcommits @
categorieshive, hadoop
postedMar 12, '13 at 6:57p
activeMar 12, '13 at 6:57p
posts1
users1
websitehive.apache.org

1 user in discussion

Kevinwilfong: 1 post

People

Translate

site design / logo © 2021 Grokbase