hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1350731 - /hbase/trunk/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RegionListTmpl.jamon
Date Fri, 15 Jun 2012 18:34:22 GMT
Author: tedyu
Date: Fri Jun 15 18:34:21 2012
New Revision: 1350731

URL: http://svn.apache.org/viewvc?rev=1350731&view=rev
Log:
HBASE-6135 Style the Web UI to use Twitter's Bootstrap, addendum (Elliot Clark)

Submitted by:	Elliot Clark
Reviewed by:	Ted Yu

Modified:
    hbase/trunk/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RegionListTmpl.jamon

Modified: hbase/trunk/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RegionListTmpl.jamon
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RegionListTmpl.jamon?rev=1350731&r1=1350730&r2=1350731&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RegionListTmpl.jamon
(original)
+++ hbase/trunk/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RegionListTmpl.jamon
Fri Jun 15 18:34:21 2012
@@ -112,12 +112,14 @@
         <%for HRegionInfo r: onlineRegions %>
 
         <tr>
-            <%java>
+        <%java>
             RegionLoad load = regionServer.createRegionLoad(r.getEncodedName());
         </%java>
             <td><% r.getRegionNameAsString() %></td>
+            <%if load != null %>
             <td><% load.getReadRequestsCount() %></td>
             <td><% load.getWriteRequestsCount() %></td>
+            </%if>
         </tr>
         </%for>
     </table>
@@ -146,12 +148,14 @@
             RegionLoad load = regionServer.createRegionLoad(r.getEncodedName());
         </%java>
             <td><% r.getRegionNameAsString() %></td>
+            <%if load != null %>
             <td><% load.getStores() %></td>
             <td><% load.getStorefiles() %></td>
             <td><% load.getStoreUncompressedSizeMB() %>MB</td>
             <td><% load.getStorefileSizeMB() %>MB</td>
             <td><% load.getTotalStaticIndexSizeKB() %>KB</td>
             <td><% load.getTotalStaticBloomSizeKB() %>KB</td>
+            </%if>
         </tr>
         </%for>
     </table>
@@ -176,16 +180,18 @@
         <%java>
             RegionLoad load = regionServer.createRegionLoad(r.getEncodedName());
             String percentDone = "";
-            if  (load.getTotalCompactingKVs() > 0) {
+            if  (load != null && load.getTotalCompactingKVs() > 0) {
             percentDone = String.format("%.2f", 100 *
             ((float) load.getCurrentCompactedKVs() / load.getTotalCompactingKVs())) + "%";
             }
         </%java>
             <td><% r.getRegionNameAsString() %></td>
+            <%if load != null %>
             <td><% load.getTotalCompactingKVs() %></td>
             <td><% load.getCurrentCompactedKVs() %></td>
             <td><% percentDone %></td>
+            </%if>
         </tr>
         </%for>
     </table>
-</%def>
\ No newline at end of file
+</%def>



Mime
View raw message