aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/twirl/spark/storage/worker_table.scala.html
blob: cd72a688c1ffbd71e93f66e18b143d248b814ca3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@(workersStatusList: Array[spark.storage.StorageStatus], prefix: String = "")
@import spark.Utils

<table class="table table-bordered table-striped table-condensed sortable">
  <thead>
    <tr>
      <th>Host</th>
      <th>Memory Usage</th>
      <th>Disk Usage</th>
    </tr>
  </thead>
  <tbody>
    @for(status <- workersStatusList) {
      <tr>
        <td>@(status.blockManagerId.host + ":" + status.blockManagerId.port)</td>
        <td>
          @(Utils.memoryBytesToString(status.memUsed(prefix)))
          (@(Utils.memoryBytesToString(status.memRemaining)) Total Available)
        </td>
        <td>@(Utils.memoryBytesToString(status.diskUsed(prefix)))</td>
    </tr>
    }
  </tbody>
</table>