td._(). td(containerMachine.split(":")[0]). td($(CONTAINER_STATUS + i)). td($(CONTAINER_START_TIME + i)). td($(CONTAINER_FINISH_TIME + i)). td($(CONTAINER_REPORTER_PROGRESS + i)).td()._()._(); } else if ($(CONTAINER_REPORTER_PROGRESS + i).equals("0.00%")) { td._(). td(containerMachine.split(":")[0]). td($(CONTAINER_STATUS + i)). td($(CONTAINER_START_TIME + i)). td($(CONTAINER_FINISH_TIME + i)). td("N/A").td()._()._(); } else { td._(). td(containerMachine.split(":")[0]). td($(CONTAINER_STATUS + i)). .div().$class("ui-progressbar ui-widget ui-widget-content ui-corner-all").$title($(CONTAINER_REPORTER_PROGRESS + i)) .div().$class("ui-progressbar-value ui-widget-header ui-corner-left").$style("width:" + $(CONTAINER_REPORTER_PROGRESS + i)) ._()._()._()._(); a(String.format($(BOARD_INFO)), String.format($(BOARD_INFO))). _()._()._()._(); td._()._();
td._(). td(containerMachine.split(":")[0]). td($(CONTAINER_STATUS + i)). td($(CONTAINER_REPORTER_PROGRESS + i))._(); } else if ($(CONTAINER_REPORTER_PROGRESS + i).equals("0.00%")) { td._(). td(containerMachine.split(":")[0]). td($(CONTAINER_STATUS + i)). td("N/A")._(); } else { td._(). td(containerMachine.split(":")[0]). td($(CONTAINER_STATUS + i)). .div().$class("ui-progressbar ui-widget ui-widget-content ui-corner-all").$title($(CONTAINER_REPORTER_PROGRESS + i)) .div().$class("ui-progressbar-value ui-widget-header ui-corner-left").$style("width:" + $(CONTAINER_REPORTER_PROGRESS + i)) ._()._()._()._(); td._()._(); td.$style("color:red").b(String.format("%s\t( Current cpu memory used is much less than applied. Please adjust !! )", $("worker" + CONTAINER_CPU_STATISTICS_MEM + USAGE_MAX + i))); } else { td._($("worker" + CONTAINER_CPU_STATISTICS_MEM + USAGE_MAX + i)); td._().td($("worker" + CONTAINER_CPU_STATISTICS_UTIL + USAGE_AVG + i)). td($("worker" + CONTAINER_CPU_STATISTICS_UTIL + USAGE_MAX + i)). _();
td._(). td(containerMachine.split(":")[0]). td($(CONTAINER_ROLE + i)). td($(CONTAINER_REPORTER_PROGRESS + i))._(); } else if ($(CONTAINER_REPORTER_PROGRESS + i).equals("0.00%")) { td._(). td(containerMachine.split(":")[0]). td($(CONTAINER_ROLE + i)). td("N/A")._(); } else { td._(). td(containerMachine.split(":")[0]). td($(CONTAINER_ROLE + i)). .div().$class("ui-progressbar ui-widget ui-widget-content ui-corner-all").$title($(CONTAINER_REPORTER_PROGRESS + i)) .div().$class("ui-progressbar-value ui-widget-header ui-corner-left").$style("width:" + $(CONTAINER_REPORTER_PROGRESS + i)) ._()._()._()._(); a(String.format($(BOARD_INFO)), String.format($(BOARD_INFO))). _()._()._()._(); td.p()._($(OUTPUT_PATH + j) + pathStr)._(); td._()._();
@Override protected void render(Block html) { TBODY<TABLE<BODY<Hamlet>>> tableBody = html.body() .table("#containers") .thead() .tr() .td()._("ContainerId")._() .td()._("ContainerState")._() .td()._("logs")._() ._() ._().tbody(); for (Entry<ContainerId, Container> entry : this.nmContext .getContainers().entrySet()) { ContainerInfo info = new ContainerInfo(this.nmContext, entry.getValue()); tableBody .tr() .td().a(url("container", info.getId()), info.getId()) ._() .td()._(info.getState())._() .td() .a(url(info.getShortLogLink()), "logs")._() ._(); } tableBody._()._()._(); }
@Override protected void render(Block html) { TBODY<TABLE<BODY<Hamlet>>> tableBody = html.body() .table("#containers") .thead() .tr() .td()._("ContainerId")._() .td()._("ContainerState")._() .td()._("logs")._() ._() ._().tbody(); for (Entry<ContainerId, Container> entry : this.nmContext .getContainers().entrySet()) { ContainerInfo info = new ContainerInfo(this.nmContext, entry.getValue()); tableBody .tr() .td().a(url("container", info.getId()), info.getId()) ._() .td()._(info.getState())._() .td() .a(url(info.getShortLogLink()), "logs")._() ._(); } tableBody._()._()._(); }
@Override protected void render(Block html) { TBODY<TABLE<BODY<Hamlet>>> tableBody = html .body() .table("#applications") .thead() .tr() .td()._("ApplicationId")._() .td()._("ApplicationState")._() ._() ._() .tbody(); for (Entry<ApplicationId, Application> entry : this.nmContext .getApplications().entrySet()) { AppInfo info = new AppInfo(entry.getValue()); tableBody .tr() .td().a(url("application", info.getId()), info.getId())._() .td()._(info.getState()) ._() ._(); } tableBody._()._()._(); } }
@Override protected void render(Block html) { ApplicationId applicationID = ConverterUtils.toApplicationId(this.recordFactory, $(APPLICATION_ID)); Application app = this.nmContext.getApplications().get(applicationID); AppInfo info = new AppInfo(app); info("Application's information") ._("ApplicationId", info.getId()) ._("ApplicationState", info.getState()) ._("User", info.getUser()); TABLE<Hamlet> containersListBody = html._(InfoBlock.class) .table("#containers"); for (String containerIdStr : info.getContainers()) { containersListBody .tr().td() .a(url("container", containerIdStr), containerIdStr) ._()._(); } containersListBody._(); } }
@Override protected void render(Block html) { ApplicationId applicationID = ConverterUtils.toApplicationId(this.recordFactory, $(APPLICATION_ID)); Application app = this.nmContext.getApplications().get(applicationID); AppInfo info = new AppInfo(app); info("Application's information") ._("ApplicationId", info.getId()) ._("ApplicationState", info.getState()) ._("User", info.getUser()); TABLE<Hamlet> containersListBody = html._(InfoBlock.class) .table("#containers"); for (String containerIdStr : info.getContainers()) { containersListBody .tr().td() .a(url("container", containerIdStr), containerIdStr) ._()._(); } containersListBody._(); } }
@Override protected void render(Block html) { ApplicationId applicationID = ApplicationId.fromString($(APPLICATION_ID)); Application app = this.nmContext.getApplications().get(applicationID); AppInfo info = new AppInfo(app); info("Application's information") ._("ApplicationId", info.getId()) ._("ApplicationState", info.getState()) ._("User", info.getUser()); TABLE<Hamlet> containersListBody = html._(InfoBlock.class) .table("#containers"); for (String containerIdStr : info.getContainers()) { containersListBody .tr().td() .a(url("container", containerIdStr), containerIdStr) ._()._(); } containersListBody._(); } }
private void trb(Hamlet.TR tr, String text) { tr.td().b(text)._(); }
private void trb(Hamlet.TR tr, String text) { tr.td().b(text)._(); }
@Override public void printCell(TR<?> tableRow) { tableRow.td().a(anchorUrl, getCell())._(); } }
@Override public void printCell(TR<?> tableRow) { tableRow.td().a(anchorUrl, getCell())._(); } }
td._(). td(containerMachine.split(":")[0]). td($(CONTAINER_ROLE + i)). td($(CONTAINER_REPORTER_PROGRESS + i))._(); } else if ($(CONTAINER_REPORTER_PROGRESS + i).equals("0.00%")) { td._(). td(containerMachine.split(":")[0]). td($(CONTAINER_ROLE + i)). td("N/A")._(); } else { td._(). td(containerMachine.split(":")[0]). td($(CONTAINER_ROLE + i)). .div().$class("ui-progressbar ui-widget ui-widget-content ui-corner-all").$title($(CONTAINER_REPORTER_PROGRESS + i)) .div().$class("ui-progressbar-value ui-widget-header ui-corner-left").$style("width:" + $(CONTAINER_REPORTER_PROGRESS + i)) ._()._()._()._(); td._()._(); td.$style("color:red").b(String.format("%s\t( Current cpu memory used is much less than applied. Please adjust !! )", $("worker" + CONTAINER_CPU_STATISTICS_MEM + USAGE_MAX + i))); } else { td._($("worker" + CONTAINER_CPU_STATISTICS_MEM + USAGE_MAX + i)); td._().td($("worker" + CONTAINER_CPU_STATISTICS_UTIL + USAGE_AVG + i)). td($("worker" + CONTAINER_CPU_STATISTICS_UTIL + USAGE_MAX + i)). _();