|
22 | 22 | import="static org.apache.commons.lang3.StringEscapeUtils.escapeXml" |
23 | 23 | import="java.util.ArrayList" |
24 | 24 | import="java.util.Collection" |
25 | | - import="java.util.Collections" |
26 | 25 | import="java.util.HashMap" |
27 | 26 | import="java.util.LinkedHashMap" |
28 | 27 | import="java.util.List" |
29 | 28 | import="java.util.Map" |
30 | | - import="java.util.Objects" |
31 | 29 | import="java.util.TreeMap" |
32 | 30 | import=" java.util.concurrent.TimeUnit" |
33 | 31 | import="org.apache.commons.lang3.StringEscapeUtils" |
|
51 | 49 | import="org.apache.hadoop.hbase.master.HMaster" |
52 | 50 | import="org.apache.hadoop.hbase.master.assignment.RegionStates" |
53 | 51 | import="org.apache.hadoop.hbase.master.RegionState" |
| 52 | + import="org.apache.hadoop.hbase.quotas.QuotaSettingsFactory" |
54 | 53 | import="org.apache.hadoop.hbase.quotas.QuotaTableUtil" |
55 | 54 | import="org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot" |
| 55 | + import="org.apache.hadoop.hbase.quotas.ThrottleSettings" |
56 | 56 | import="org.apache.hadoop.hbase.util.Bytes" |
57 | 57 | import="org.apache.hadoop.hbase.util.FSUtils" |
58 | 58 | import="org.apache.hadoop.hbase.zookeeper.MetaTableLocator" |
@@ -358,6 +358,40 @@ if (fqtn != null && master.isInitialized()) { |
358 | 358 | </tr> |
359 | 359 | <% |
360 | 360 | } |
| 361 | +
|
| 362 | + if (quota.hasThrottle()) { |
| 363 | + List<ThrottleSettings> throttles = QuotaSettingsFactory.fromTableThrottles(table.getName(), quota.getThrottle()); |
| 364 | + if (throttles.size() > 0) { |
| 365 | +%> |
| 366 | + <tr> |
| 367 | + <td>Throttle Quota</td> |
| 368 | + <td> |
| 369 | + <table> |
| 370 | + <tr> |
| 371 | + <th>Limit</th> |
| 372 | + <th>Type</th> |
| 373 | + <th>TimeUnit</th> |
| 374 | + <th>Scope</th> |
| 375 | + </tr> |
| 376 | +<% |
| 377 | + for (ThrottleSettings throttle : throttles) { |
| 378 | +%> |
| 379 | + <tr> |
| 380 | + <td><%= throttle.getSoftLimit() %></td> |
| 381 | + <td><%= throttle.getThrottleType() %></td> |
| 382 | + <td><%= throttle.getTimeUnit() %></td> |
| 383 | + <td><%= throttle.getQuotaScope() %></td> |
| 384 | + </tr> |
| 385 | +<% |
| 386 | + } |
| 387 | +%> |
| 388 | + </table> |
| 389 | + </td> |
| 390 | + <td>Information about a Throttle Quota on this table, if set.</td> |
| 391 | + </tr> |
| 392 | +<% |
| 393 | + } |
| 394 | + } |
361 | 395 | } |
362 | 396 | %> |
363 | 397 | </table> |
|
0 commit comments