hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r598526 - /lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/generated/master/master_jsp.java
Date Tue, 27 Nov 2007 06:19:52 GMT
Author: stack
Date: Mon Nov 26 22:19:51 2007
New Revision: 598526

URL: http://svn.apache.org/viewvc?rev=598526&view=rev
Log:
HADOOP-2289 Useless efforts of looking for the non-existant table in
select command

Revert accidental commit of generated jsp page that is not part of 2289.

Modified:
    lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/generated/master/master_jsp.java

Modified: lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/generated/master/master_jsp.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/generated/master/master_jsp.java?rev=598526&r1=598525&r2=598526&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/generated/master/master_jsp.java
(original)
+++ lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/generated/master/master_jsp.java
Mon Nov 26 22:19:51 2007
@@ -103,21 +103,13 @@
       out.print(msg );
       out.write("</p>\n\n<h2>Region Servers</h2>\n");
  if (serverToServerInfos != null && serverToServerInfos.size() > 0) { 
-      out.write('\n');
- int totalRegions = 0;
-   int totalRequests = 0; 
-
-      out.write("\n\n<table>\n<tr><th rowspan=");
-      out.print( serverToServerInfos.size() + 1);
-      out.write("></th><th>Address</th><th>Start Code</th><th>Load</th></tr>\n\n");
+      out.write("\n<table>\n<tr><th>Address</th><th>Start Code</th><th>Load</th></tr>\n\n");
    for (Map.Entry<String, HServerInfo> e: serverToServerInfos.entrySet()) {
        HServerInfo hsi = e.getValue();
        String url = "http://" +
          hsi.getServerAddress().getBindAddress().toString() + ":" +
          hsi.getInfoPort() + "/";
        String load = hsi.getLoad().toString();
-       totalRegions += hsi.getLoad().getNumberOfRegions();
-       totalRequests += hsi.getLoad().getNumberOfRequests();
        long startCode = hsi.getStartCode();
        String address = hsi.getServerAddress().toString();
 
@@ -130,15 +122,9 @@
       out.print( startCode );
       out.write("</td><td>");
       out.print( load );
-      out.write("</td></tr>\n");
+      out.write("</tr>\n");
    } 
-      out.write("\n<tr><th>Total: </th><td>servers: ");
-      out.print( serverToServerInfos.size() );
-      out.write("</td><td>&nbsp;</td><td>requests: ");
-      out.print( totalRequests );
-      out.write(" regions: ");
-      out.print( totalRegions );
-      out.write("</td></tr>\n</table>\n\n<p>Load is requests per
<em>hbase.regionsserver.msginterval</em> (");
+      out.write("\n</table>\n<p>Load is requests per <em>hbase.regionsserver.msginterval</em>
(");
       out.print(interval);
       out.write(" second(s)) and count of regions loaded</p>\n");
  } 



Mime
View raw message