hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kevinwilf...@apache.org
Subject svn commit: r1455668 - /hive/trunk/common/src/java/org/apache/hadoop/hive/common/metrics/Metrics.java
Date Tue, 12 Mar 2013 18:57:16 GMT
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



Mime
View raw message