/** * Returns the number of {@link Executor}s that are doing some work right now. */ public final int countBusy() { return countExecutors()-countIdle(); }
/** * Number of total {@link Executor}s that belong to this label that are functioning. * <p> * This excludes executors that belong to offline nodes. */ @Exported public int getTotalExecutors() { int r=0; for (Computer c : get_all()) { if(c.isOnline()) r += c.countExecutors(); } return r; }
for (Entry<Computer, List<ExecutorSlot>> e : j.entrySet()) { final List<ExecutorSlot> list = e.getValue(); final int max = e.getKey().countExecutors();
/** * Number of total {@link Executor}s that belong to this label that are functioning. * <p> * This excludes executors that belong to offline nodes. */ @Exported public int getTotalExecutors() { int r=0; for (Node n : getNodes()) { Computer c = n.toComputer(); if(c!=null && c.isOnline()) r += c.countExecutors(); } return r; }
@Override public int computeTotalExecutors() { int r=0; for (Computer c : Jenkins.getInstance().getComputers()) { Node node = c.getNode(); if (node != null && node.getMode() == Mode.NORMAL && c.isOnline()) { r += c.countExecutors(); } } return r; }
Long x = timeline.fit(slot.start, slot.duration, computer.countExecutors()-e.getValue());
/** * @since 2.1.0 */ public int getExecutorsCount() { return countExecutors(); }
/** * @since 2.1.0 */ public int getExecutorsCount() { return countExecutors(); }
/** * @since 2.1.0 */ public int getExecutorsCount() { return countExecutors(); }
/** * @since 2.1.0 */ public int getExecutorsCount() { return countExecutors(); }
/** * Returns the number of {@link Executor}s that are doing some work right now. */ public final int countBusy() { return countExecutors()-countIdle(); }
/** * Returns the number of {@link Executor}s that are doing some work right now. */ public final int countBusy() { return countExecutors()-countIdle(); }
/** * Returns the number of {@link Executor}s that are doing some work right * now. */ public final int countBusy() { return countExecutors() - countIdle(); }
/** * Returns the number of {@link Executor}s that are doing some work right now. */ public final int countBusy() { return countExecutors()-countIdle(); }
/** * Returns the number of {@link Executor}s that are doing some work right now. */ public final int countBusy() { return countExecutors()-countIdle(); }
/** * Number of total {@link Executor}s that belong to this label that are functioning. * <p> * This excludes executors that belong to offline nodes. */ @Exported public int getTotalExecutors() { int r=0; for (Computer c : get_all()) { if(c.isOnline()) r += c.countExecutors(); } return r; }
/** * Number of total {@link Executor}s that belong to this label that are functioning. * <p> * This excludes executors that belong to offline nodes. */ @Exported public int getTotalExecutors() { int r=0; for (Computer c : get_all()) { if(c.isOnline()) r += c.countExecutors(); } return r; }
/** * Number of total {@link Executor}s that belong to this label that are functioning. * <p> * This excludes executors that belong to offline nodes. */ @Exported public int getTotalExecutors() { int r=0; for (Computer c : get_all()) { if(c.isOnline()) r += c.countExecutors(); } return r; }
/** * Number of total {@link Executor}s that belong to this label that are functioning. * <p> * This excludes executors that belong to offline nodes. */ @Exported public int getTotalExecutors() { int r=0; for (Computer c : get_all()) { if(c.isOnline()) r += c.countExecutors(); } return r; }
@Override public int computeTotalExecutors() { int r=0; for (Computer c : Jenkins.getInstance().getComputers()) { Node node = c.getNode(); if (node != null && node.getMode() == Mode.NORMAL && c.isOnline()) { r += c.countExecutors(); } } return r; }