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().$class("qlegend ui-corner-all").$style(ACTIVE_USER). __("Users Requesting Resources").__(). span().$class("qlegend ui-corner-all").$style(Q_AUTO_CREATED). __("Auto Created Queues").__(). __(); 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 {
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
: Q_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")).__();
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(WIDTH_F)). span().$style(Q_END).__("100% ").__(). span(".q", "default").__().__(); } else { a(_Q).$style(width(WIDTH_F)). $title(join("used:", percent(used))). span().$style(Q_END).__("100%").__(). span().$style(join(width(delta), ';', used > set ? OVER : UNDER, ';', used > set ? left(set) : left(used))).__(".").__(). span(".q", sinfo.getQueueName()).__(). __(QueueInfoBlock.class).__();
$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")).__();
private <T extends __> SPAN<T> span_(T e, boolean inline) { return new SPAN<T>("span", e, opt(true, inline, false)); }
@Override public SPAN<T> a(String href, String anchorText) { return a().$href(href).__(anchorText).__(); }
@Override public SPAN<T> $onmouseover(String value) { addAttr("onmouseover", value); return this; }
@Override public SPAN<T> $onmouseup(String value) { addAttr("onmouseup", value); return this; }
@Override public SPAN<T> $dir(Dir value) { addAttr("dir", value); return this; }
@Override public SPAN<T> $style(String value) { addAttr("style", value); return this; }
@Override public SPAN<T> $title(String value) { addAttr("title", value); return this; }
@Override public SPAN<T> _r(Object... lines) { _p(false, lines); return this; }