HBASE-6135 Style the Web UI to use Twitter's Bootstrap, addendum (Elliot Clark)
Submitted by: Elliot Clark Reviewed by: Ted Yu git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1350731 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3d26a2c856
commit
ea1bdb75b6
|
@ -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>
|
||||
</%def>
|
||||
|
|
Loading…
Reference in New Issue