Search in sources :

Example 1 with TTop

use of org.jline.builtins.TTop in project karaf by apache.

the class TTopAction method execute.

@Override
public Object execute() throws Exception {
    TTop ttop = new TTop((Terminal) session.get(".jline.terminal"));
    ttop.sort = order != null ? Arrays.asList(order.split(",")) : null;
    ttop.delay = seconds != null ? seconds * 1000 : ttop.delay;
    ttop.delay = millis != null ? millis : ttop.delay;
    ttop.stats = stats != null ? Arrays.asList(stats.split(",")) : null;
    ttop.nthreads = nthreads;
    ttop.run();
    return null;
}
Also used : TTop(org.jline.builtins.TTop)

Aggregations

TTop (org.jline.builtins.TTop)1