提交 c05522c2 编写于 作者: K Kohsuke Kawaguchi

added a convenience method.

上级 6d4ba4ea
......@@ -695,6 +695,16 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces
return true;
}
/**
* Returns true if this computer has some idle executors that can take more workload.
*/
public final boolean isPartiallyIdle() {
for (Executor e : executors)
if(e.isIdle())
return true;
return false;
}
/**
* Returns the time when this computer last became idle.
*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册