@Override protected void preHead(Page.HTML<_> html) { String logEntity = $(ENTITY_STRING); if (logEntity == null || logEntity.isEmpty()) { logEntity = $(CONTAINER_ID); } if (logEntity == null || logEntity.isEmpty()) { logEntity = "UNKNOWN"; } set(ACCORDION_ID, "nav"); set(initID(ACCORDION, "nav"), "{autoHeight:false, active:0}"); }
@Override protected void preHead(HTML<_> html) { super.preHead(html); setTitle(join($(APP_TYPE) + " Application ", $(APP_ID))); }
protected void render(Block html) { String loggedIn = ""; if (this.request().getRemoteUser() != null) { loggedIn = "Logged in as: " + this.request().getRemoteUser(); } ((DIV) ((DIV) html.div("#header.ui-widget").div("#user")._(new Object[]{loggedIn})._()).div("#logo").img("/static/xlWebApp/logo.png")._()).h1(this.$("title"))._(); } }
if (numContainers > 0) { TBODY<TABLE<Hamlet>> tbody = html. h2("All Containers:"). table("#Containers"). thead("ui-widget-header"). html.div().$style("margin:20px 2px;")._(" ")._(); int saveModelTotal = Integer.parseInt($(SAVE_MODEL_TOTAL)); int saveModelSize = Integer.parseInt($(OUTPUT_TOTAL)); if ((saveModelTotal > 0) && (saveModelSize > 0)) { if (!Boolean.valueOf($(SAVE_MODEL))) { html.div().button().$id("saveModel").$onclick("savedModel()").b("Save Model")._()._(); StringBuilder script = new StringBuilder(); script.append("function savedModel(){") .append("/proxy/savedmodel';") .append("}"); html.script().$type("text/javascript")._(script.toString())._(); if (!Boolean.valueOf($(LAST_SAVE_STATUS))) { html.div().$style("margin:20px 2px;")._(" ")._(); } else { html.div().$style("margin:20px 2px;")._("saved the model completed!")._(); html.div().button().$id("saveModel").$disabled().b("Save Model")._()._(); if (!$(SAVE_MODEL_STATUS).equals($(SAVE_MODEL_TOTAL))) { html.div().$style("margin:20px 2px;")._(String.format("saving the model ... %s/%s", $(SAVE_MODEL_STATUS), $(SAVE_MODEL_TOTAL)))._(); } else {
public void textnames() { names(); renderText($("title")); } }
@Override protected void render(Block html) { info("test!"); } }
if (numContainers > 0) { Hamlet.TBODY<Hamlet.TABLE<Hamlet>> tbody = html. h2("All Containers:"). table("#Containers"). thead("ui-widget-header"). int outputSize = Integer.parseInt($(OUTPUT_TOTAL)); if (timestampSize > 0) { html.div().$style("margin:20px 2px;")._(" ")._(); Hamlet.TBODY<TABLE<Hamlet>> tbodySave = html. h2("Saved Model"). table("#savedmodel"). thead("ui-widget-header"). html.div().$style("margin:20px 2px;")._(" ")._(); h2("Resource Applied Info:"). table("#resourceAppliedInfo"). thead("ui-widget-header"). html.div().$style("margin:20px 2px;")._(" ")._(); h2("Worker Containers CPU Usage Info:"). table("#workerCPUUsageInfo"). thead("ui-widget-header"). html.div().$style("margin:20px 2px;")._(" ")._(); html.div().$style("margin:20px 2px;")._(" ")._();
protected void render(Block html) { String loggedIn = ""; if (this.request().getRemoteUser() != null) { loggedIn = "Logged in as: " + this.request().getRemoteUser(); } ((DIV) ((DIV) html.div("#header.ui-widget").div("#user")._(new Object[]{loggedIn})._()).div("#logo").img("/proxy/" + $(APP_ID) + "/static/xlWebApp/logo.png")._()).h1(this.$("title"))._(); } }
public void textnames() { names(); renderText($("title")); } }
@Override protected void preHead(Page.HTML<_> html) { super.preHead(html); String jobID = $(APP_ID); set(TITLE, jobID.isEmpty() ? "Bad request: missing job ID" : join($(APP_TYPE) + " Application ", $(APP_ID))); }
if (numContainers > 0) { TBODY<TABLE<Hamlet>> tbody = html. h2("All Containers:"). table("#Containers"). thead("ui-widget-header"). html.div().$style("margin:20px 2px;")._(" ")._(); int saveModelTotal = Integer.parseInt($(SAVE_MODEL_TOTAL)); int saveModelSize = Integer.parseInt($(OUTPUT_TOTAL)); if ((saveModelTotal > 0) && (saveModelSize > 0)) { if (!Boolean.valueOf($(SAVE_MODEL))) { html.div().button().$id("saveModel").$onclick("savedModel()").b("Save Model")._()._(); StringBuilder script = new StringBuilder(); script.append("function savedModel(){") .append("/proxy/savedmodel';") .append("}"); html.script().$type("text/javascript")._(script.toString())._(); if (!Boolean.valueOf($(LAST_SAVE_STATUS))) { html.div().$style("margin:20px 2px;")._(" ")._(); } else { html.div().$style("margin:20px 2px;")._("saved the model completed!")._(); html.div().button().$id("saveModel").$disabled().b("Save Model")._()._(); if (!$(SAVE_MODEL_STATUS).equals($(SAVE_MODEL_TOTAL))) { html.div().$style("margin:20px 2px;")._(String.format("saving the model ... %s/%s", $(SAVE_MODEL_STATUS), $(SAVE_MODEL_TOTAL)))._(); } else {
@Override protected void render(Block html) { html. div("#nav"). h3("Tools"). ul(). li().a("/conf", "Configuration")._(). li().a("/stacks", "Thread dump")._(). li().a("/logs", "Logs")._(). li().a("/jmx?qry=Hadoop:*", "Metrics")._()._()._(); } }
if (numContainers > 0) { Hamlet.TBODY<Hamlet.TABLE<Hamlet>> tbody = html. h2("All Containers:"). table("#Containers"). thead("ui-widget-header"). int outputSize = Integer.parseInt($(OUTPUT_TOTAL)); if (timestampSize > 0) { html.div().$style("margin:20px 2px;")._(" ")._(); Hamlet.TBODY<TABLE<Hamlet>> tbodySave = html. h2("Saved Model"). table("#savedmodel"). thead("ui-widget-header"). int numWorkers = Integer.parseInt($(WORKER_NUMBER)); int numPS = Integer.parseInt($(PS_NUMBER)); html.div().$style("margin:20px 2px;")._(" ")._(); h2("Resource Applied Info:"). table("#resourceAppliedInfo"). thead("ui-widget-header"). h2("Worker Containers CPU Usage Info:"). table("#workerCPUUsageInfo"). thead("ui-widget-header"). html.div().$style("margin:20px 2px;")._(" ")._(); html.div().$style("margin:20px 2px;")._(" ")._();