tr(). $style("text-align:center;").td(); td.span().$title(String.format($(CONTAINER_ID + i)))._(). a(String.format("http://%s/node/containerlogs/%s/%s", $(CONTAINER_HTTP_ADDRESS + i), tr(). $style("text-align:center;"). td().span().$title(String.format($(BOARD_INFO)))._(). a(String.format($(BOARD_INFO)), String.format($(BOARD_INFO))).
li(). a(_Q).$style(width(Q_MAX_WIDTH)). span().$style(Q_END)._("100% ")._(). span(".q", "default")._()._(); } else { ul. li().$style("margin-bottom: 1em"). span().$style("font-weight: bold")._("Legend:")._(). span().$class("qlegend ui-corner-all").$style(Q_GIVEN). _("Capacity")._(). span().$class("qlegend ui-corner-all").$style(Q_UNDER). _("Used")._(). span().$class("qlegend ui-corner-all").$style(Q_OVER). _("Used (over capacity)")._(). span().$class("qlegend ui-corner-all ui-state-default"). _("Max Capacity")._(). _(); span().$style(join(width(used), ";left:0%;", used > 1 ? Q_OVER : Q_UNDER))._(".")._(). span(".q", "Queue: root")._(). span().$class("qstats").$style(left(Q_STATS_POS)). _(join(percent(used), " used"))._(). _(QueueBlock.class)._(); } else { ul.li(). a(_Q).$style(width(Q_MAX_WIDTH)). span().$style(join(width(used), ";left:0%;",
li(). a(_Q).$style(width(Q_MAX_WIDTH)). span().$style(Q_END)._("100% ")._(). span(".q", "default")._()._(); } else { ul. li().$style("margin-bottom: 1em"). span().$style("font-weight: bold")._("Legend:")._(). span().$class("qlegend ui-corner-all").$style(Q_GIVEN). _("Capacity")._(). span().$class("qlegend ui-corner-all").$style(Q_UNDER). _("Used")._(). span().$class("qlegend ui-corner-all").$style(Q_OVER). _("Used (over capacity)")._(). span().$class("qlegend ui-corner-all ui-state-default"). _("Max Capacity")._(). _(); span().$style(join(width(used), ";left:0%;", used > 1 ? Q_OVER : Q_UNDER))._(".")._(). span(".q", "root")._(). span().$class("qstats").$style(left(Q_STATS_POS)). _(join(percent(used), " used"))._(). _(QueueBlock.class)._(); } else { ul.li(). a(_Q).$style(width(Q_MAX_WIDTH)). span().$style(join(width(used), ";left:0%;",
li(). a(_Q).$style(width(Q_MAX_WIDTH)). span().$style(Q_END)._("100% ")._(). span(".q", "default")._()._(); } else { span().$style("font-weight: bold")._("Legend:")._(). span().$class("qlegend ui-corner-all").$style(Q_GIVEN). $title("The steady fair shares consider all queues, " + "both active (with running applications) and inactive."). _(STEADY_FAIR_SHARE)._(). span().$class("qlegend ui-corner-all").$style(Q_INSTANTANEOUS_FS). $title("The instantaneous fair shares consider only active " + "queues (with running applications)."). _(INSTANTANEOUS_FAIR_SHARE)._(). span().$class("qlegend ui-corner-all").$style(Q_UNDER). _("Used")._(). span().$class("qlegend ui-corner-all").$style(Q_OVER). _("Used (over fair share)")._(). span().$class("qlegend ui-corner-all ui-state-default"). _("Max Capacity")._(). _(). li(). a(_Q).$style(width(Q_MAX_WIDTH)). span().$style(join(width(used), ";left:0%;", used > 1 ? Q_OVER : Q_UNDER))._(".")._(). span(".q", "root")._(). span().$class("qstats").$style(left(Q_STATS_POS)). _(join(percent(used), " used"))._().
li(). a(_Q).$style(width(Q_MAX_WIDTH)). span().$style(Q_END)._("100% ")._(). span(".q", "default")._()._(); } else { span().$style("font-weight: bold")._("Legend:")._(). span().$class("qlegend ui-corner-all").$style(Q_GIVEN). $title("The steady fair shares consider all queues, " + "both active (with running applications) and inactive."). _(STEADY_FAIR_SHARE)._(). span().$class("qlegend ui-corner-all").$style(Q_INSTANTANEOUS_FS). $title("The instantaneous fair shares consider only active " + "queues (with running applications)."). _(INSTANTANEOUS_FAIR_SHARE)._(). span().$class("qlegend ui-corner-all").$style(Q_UNDER). _("Used")._(). span().$class("qlegend ui-corner-all").$style(Q_OVER). _("Used (over fair share)")._(). span().$class("qlegend ui-corner-all ui-state-default"). _("Max Capacity")._(). _(). li(). a(_Q).$style(width(Q_MAX_WIDTH)). span().$style(join(width(used), ";left:0%;", used > 1 ? Q_OVER : Q_UNDER))._(".")._(). span(".q", "root")._(). span().$class("qstats").$style(left(Q_STATS_POS)). _(join(percent(used), " used"))._().
tr(). td(). span().$title(String.valueOf(job.getId()))._(). // for sorting a(url("job", job.getId()), job.getId())._(). td(job.getName()). td(job.getState()). td(). span().$title(job.getMapProgressPercent())._(). // for sorting div(_PROGRESSBAR). $title(join(job.getMapProgressPercent(), '%')). // tooltip td(String.valueOf(job.getMapsCompleted())). td(). span().$title(job.getReduceProgressPercent())._(). // for sorting div(_PROGRESSBAR). $title(join(job.getReduceProgressPercent(), '%')). // tooltip
tr(). td(). span().$title(String.valueOf(job.getId()))._(). // for sorting a(url("job", job.getId()), job.getId())._(). td(job.getName()). td(job.getState()). td(). span().$title(job.getMapProgressPercent())._(). // for sorting div(_PROGRESSBAR). $title(join(job.getMapProgressPercent(), '%')). // tooltip td(String.valueOf(job.getMapsCompleted())). td(). span().$title(job.getReduceProgressPercent())._(). // for sorting div(_PROGRESSBAR). $title(join(job.getReduceProgressPercent(), '%')). // tooltip
$title(join(join(STEADY_FAIR_SHARE + ":", percent(steadyFairShare)), join(" " + INSTANTANEOUS_FAIR_SHARE + ":", percent(instantaneousFairShare)))). span().$style(join(Q_GIVEN, ";font-size:1px;", width(steadyFairShare / capacity))). _('.')._(). span().$style(join(Q_INSTANTANEOUS_FS, ";font-size:1px;", width(instantaneousFairShare/capacity))). _('.')._(). span().$style(join(width(used/capacity), ";font-size:1px;left:0%;", used > instantaneousFairShare ? Q_OVER : Q_UNDER)). _('.')._(). span(".q", info.getQueueName())._(). span().$class("qstats").$style(left(Q_STATS_POS)). _(join(percent(used), " used"))._();
a(_Q).$style(width(absMaxCap * Q_MAX_WIDTH)). $title(join("Absolute Capacity:", percent(absCap))). span().$style(join(Q_GIVEN, ";font-size:1px;", width(absCap/absMaxCap))). _('.')._(). span().$style(join(width(absUsedCap/absMaxCap), ";font-size:1px;left:0%;", absUsedCap > absCap ? Q_OVER : Q_UNDER)). _('.')._(). span(".q", "Queue: " + info.getQueuePath().substring(5))._(). span().$class("qstats").$style(left(Q_STATS_POS)). _(join(percent(used), " used"))._();
a(_Q).$style(width(absMaxCap * Q_MAX_WIDTH)). $title(join("Absolute Capacity:", percent(absCap))). span().$style(join(Q_GIVEN, ";font-size:1px;", width(absCap/absMaxCap))). _('.')._(). span().$style(join(width(absUsedCap/absMaxCap), ";font-size:1px;left:0%;", absUsedCap > absCap ? Q_OVER : Q_UNDER)). _('.')._(). span(".q", "Queue: " + info.getQueuePath().substring(5))._(). span().$class("qstats").$style(left(Q_STATS_POS)). _(join(percent(used), " used"))._();
$title(join(join(STEADY_FAIR_SHARE + ":", percent(steadyFairShare)), join(" " + INSTANTANEOUS_FAIR_SHARE + ":", percent(instantaneousFairShare)))). span().$style(join(Q_GIVEN, ";font-size:1px;", width(steadyFairShare / capacity))). _('.')._(). span().$style(join(Q_INSTANTANEOUS_FS, ";font-size:1px;", width(instantaneousFairShare/capacity))). _('.')._(). span().$style(join(width(used/capacity), ";font-size:1px;left:0%;", used > instantaneousFairShare ? Q_OVER : Q_UNDER)). _('.')._(). span(".q", info.getQueueName())._(). span().$class("qstats").$style(left(Q_STATS_POS)). _(join(percent(used), " used"))._();
protected void addProviderServiceOptions(ProviderService provider, UL ul, ClusterDescription clusterStatus) { Map<String, MonitorDetail> details = provider.buildMonitorDetails( clusterStatus); if (null == details) { return; } // Loop over each entry, placing the text in the UL, adding an anchor when the URL is non-null/empty for (Entry<String, MonitorDetail> entry : details.entrySet()) { MonitorDetail detail = entry.getValue(); if (SliderUtils.isSet(detail.getValue()) ) { LI item = ul.li(); item.span().$class("bold")._(entry.getKey())._(); item._(" - "); if (detail.isUrl()) { // Render an anchor if the value is a URL item.a(detail.getValue(), detail.getValue())._(); } else { item._(detail.getValue())._(); } } else { ul.li(entry.getKey()); } } }
protected void addProviderServiceOptions(ProviderService provider, UL ul, ClusterDescription clusterStatus) { Map<String, MonitorDetail> details = provider.buildMonitorDetails( clusterStatus); if (null == details) { return; } // Loop over each entry, placing the text in the UL, adding an anchor when the URL is non-null/empty for (Entry<String, MonitorDetail> entry : details.entrySet()) { MonitorDetail detail = entry.getValue(); if (SliderUtils.isSet(detail.getValue()) ) { LI item = ul.li(); item.span().$class("bold")._(entry.getKey())._(); item._(" - "); if (detail.isUrl()) { // Render an anchor if the value is a URL item.a(detail.getValue(), detail.getValue())._(); } else { item._(detail.getValue())._(); } } else { ul.li(entry.getKey()); } } }
protected void enumeratePublishedExports(PublishedExportsSet exports, UL<Hamlet> ul) { for(String key : exports.keys()) { PublishedExports export = exports.get(key); LI<UL<Hamlet>> item = ul.li(); item.span().$class("bold")._(export.description)._(); UL sublist = item.ul(); for (Entry<String, List<ExportEntry>> entry : export.entries.entrySet()) { LI sublistItem = sublist.li()._(entry.getKey()); for (ExportEntry exportEntry : entry.getValue()) { sublistItem._(exportEntry.getValue()); } sublistItem._(); } sublist._(); item._(); } } }
protected void enumeratePublishedExports(PublishedExportsSet exports, UL<Hamlet> ul) { for(String key : exports.keys()) { PublishedExports export = exports.get(key); LI<UL<Hamlet>> item = ul.li(); item.span().$class("bold")._(export.description)._(); UL sublist = item.ul(); for (Entry<String, List<ExportEntry>> entry : export.entries.entrySet()) { LI sublistItem = sublist.li()._(entry.getKey()); for (ExportEntry exportEntry : entry.getValue()) { sublistItem._(exportEntry.getValue()); } sublistItem._(); } sublist._(); item._(); } } }
private <T extends _> SPAN<T> span_(T e, boolean inline) { return new SPAN<T>("span", e, opt(true, inline, false)); }
private <T extends _> SPAN<T> span_(T e, boolean inline) { return new SPAN<T>("span", e, opt(true, inline, false)); }
private <T extends _> SPAN<T> span_(T e, boolean inline) { return new SPAN<T>("span", e, opt(true, inline, false)); }
@Override public SPAN<T> abbr(String selector, String cdata) { return setSelector(abbr(), selector)._(cdata)._(); }
@Override public SPAN<T> abbr(String cdata) { return abbr()._(cdata)._(); }