|
@@ -60,6 +60,8 @@ public class RMAppsBlock extends AppsBlock {
|
|
.th(".finishtime", "FinishTime").th(".state", "State")
|
|
.th(".finishtime", "FinishTime").th(".state", "State")
|
|
.th(".finalstatus", "FinalStatus")
|
|
.th(".finalstatus", "FinalStatus")
|
|
.th(".runningcontainer", "Running Containers")
|
|
.th(".runningcontainer", "Running Containers")
|
|
|
|
+ .th(".allocatedCpu", "Allocated CPU VCores")
|
|
|
|
+ .th(".allocatedMemory", "Allocated Memory MB")
|
|
.th(".progress", "Progress")
|
|
.th(".progress", "Progress")
|
|
.th(".ui", "Tracking UI").th(".blacklisted", "Blacklisted Nodes")._()
|
|
.th(".ui", "Tracking UI").th(".blacklisted", "Blacklisted Nodes")._()
|
|
._().tbody();
|
|
._().tbody();
|
|
@@ -114,6 +116,12 @@ public class RMAppsBlock extends AppsBlock {
|
|
.append(app.getRunningContainers() == -1 ? "N/A" : String
|
|
.append(app.getRunningContainers() == -1 ? "N/A" : String
|
|
.valueOf(app.getRunningContainers()))
|
|
.valueOf(app.getRunningContainers()))
|
|
.append("\",\"")
|
|
.append("\",\"")
|
|
|
|
+ .append(app.getAllocatedCpuVcores() == -1 ? "N/A" : String
|
|
|
|
+ .valueOf(app.getAllocatedCpuVcores()))
|
|
|
|
+ .append("\",\"")
|
|
|
|
+ .append(app.getAllocatedMemoryMB() == -1 ? "N/A" : String
|
|
|
|
+ .valueOf(app.getAllocatedMemoryMB()))
|
|
|
|
+ .append("\",\"")
|
|
// Progress bar
|
|
// Progress bar
|
|
.append("<br title='").append(percent).append("'> <div class='")
|
|
.append("<br title='").append(percent).append("'> <div class='")
|
|
.append(C_PROGRESSBAR).append("' title='").append(join(percent, '%'))
|
|
.append(C_PROGRESSBAR).append("' title='").append(join(percent, '%'))
|