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 %>
|
<%for HRegionInfo r: onlineRegions %>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<%java>
|
<%java>
|
||||||
RegionLoad load = regionServer.createRegionLoad(r.getEncodedName());
|
RegionLoad load = regionServer.createRegionLoad(r.getEncodedName());
|
||||||
</%java>
|
</%java>
|
||||||
<td><% r.getRegionNameAsString() %></td>
|
<td><% r.getRegionNameAsString() %></td>
|
||||||
|
<%if load != null %>
|
||||||
<td><% load.getReadRequestsCount() %></td>
|
<td><% load.getReadRequestsCount() %></td>
|
||||||
<td><% load.getWriteRequestsCount() %></td>
|
<td><% load.getWriteRequestsCount() %></td>
|
||||||
|
</%if>
|
||||||
</tr>
|
</tr>
|
||||||
</%for>
|
</%for>
|
||||||
</table>
|
</table>
|
||||||
|
@ -146,12 +148,14 @@
|
||||||
RegionLoad load = regionServer.createRegionLoad(r.getEncodedName());
|
RegionLoad load = regionServer.createRegionLoad(r.getEncodedName());
|
||||||
</%java>
|
</%java>
|
||||||
<td><% r.getRegionNameAsString() %></td>
|
<td><% r.getRegionNameAsString() %></td>
|
||||||
|
<%if load != null %>
|
||||||
<td><% load.getStores() %></td>
|
<td><% load.getStores() %></td>
|
||||||
<td><% load.getStorefiles() %></td>
|
<td><% load.getStorefiles() %></td>
|
||||||
<td><% load.getStoreUncompressedSizeMB() %>MB</td>
|
<td><% load.getStoreUncompressedSizeMB() %>MB</td>
|
||||||
<td><% load.getStorefileSizeMB() %>MB</td>
|
<td><% load.getStorefileSizeMB() %>MB</td>
|
||||||
<td><% load.getTotalStaticIndexSizeKB() %>KB</td>
|
<td><% load.getTotalStaticIndexSizeKB() %>KB</td>
|
||||||
<td><% load.getTotalStaticBloomSizeKB() %>KB</td>
|
<td><% load.getTotalStaticBloomSizeKB() %>KB</td>
|
||||||
|
</%if>
|
||||||
</tr>
|
</tr>
|
||||||
</%for>
|
</%for>
|
||||||
</table>
|
</table>
|
||||||
|
@ -176,16 +180,18 @@
|
||||||
<%java>
|
<%java>
|
||||||
RegionLoad load = regionServer.createRegionLoad(r.getEncodedName());
|
RegionLoad load = regionServer.createRegionLoad(r.getEncodedName());
|
||||||
String percentDone = "";
|
String percentDone = "";
|
||||||
if (load.getTotalCompactingKVs() > 0) {
|
if (load != null && load.getTotalCompactingKVs() > 0) {
|
||||||
percentDone = String.format("%.2f", 100 *
|
percentDone = String.format("%.2f", 100 *
|
||||||
((float) load.getCurrentCompactedKVs() / load.getTotalCompactingKVs())) + "%";
|
((float) load.getCurrentCompactedKVs() / load.getTotalCompactingKVs())) + "%";
|
||||||
}
|
}
|
||||||
</%java>
|
</%java>
|
||||||
<td><% r.getRegionNameAsString() %></td>
|
<td><% r.getRegionNameAsString() %></td>
|
||||||
|
<%if load != null %>
|
||||||
<td><% load.getTotalCompactingKVs() %></td>
|
<td><% load.getTotalCompactingKVs() %></td>
|
||||||
<td><% load.getCurrentCompactedKVs() %></td>
|
<td><% load.getCurrentCompactedKVs() %></td>
|
||||||
<td><% percentDone %></td>
|
<td><% percentDone %></td>
|
||||||
|
</%if>
|
||||||
</tr>
|
</tr>
|
||||||
</%for>
|
</%for>
|
||||||
</table>
|
</table>
|
||||||
</%def>
|
</%def>
|
||||||
|
|
Loading…
Reference in New Issue