/** * Number of busy {@link Executor}s that are carrying out some work right now. */ @Exported public int getBusyExecutors() { int r=0; for (Computer c : get_all()) { if(c.isOnline()) r += c.countBusy(); } return r; }
/** * Number of busy {@link Executor}s that are carrying out some work right now. */ @Exported public int getBusyExecutors() { int r=0; for (Node n : getNodes()) { Computer c = n.toComputer(); if(c!=null && c.isOnline()) r += c.countBusy(); } return r; }
/** * @since 2.1.0 */ public int getBusyCount() { return countBusy(); }
/** * @since 2.1.0 */ public int getBusyCount() { return countBusy(); }
/** * @since 2.1.0 */ public int getBusyCount() { return countBusy(); }
/** * @since 2.1.0 */ public int getBusyCount() { return countBusy(); }
/** * Waits until all Hudson slaves are idle. */ public static void waitUntilIdle() { Hudson hudson = Hudson.getInstance(); final Computer computers[] = hudson.getComputers(); boolean running; do { running = false; for (final Computer computer : computers) { if (computer.countBusy() != 0) { running = true; break; } } try { Thread.sleep(QUIETMODE_MONITORING_SLEEP); } catch (final InterruptedException e) { LOGGER.log(Level.WARNING, e.getMessage(), e); } } while (running); }
/** * Number of busy {@link Executor}s that are carrying out some work right now. */ @Exported public int getBusyExecutors() { int r=0; for (Computer c : get_all()) { if(c.isOnline()) r += c.countBusy(); } return r; }
/** * Number of busy {@link Executor}s that are carrying out some work right now. */ @Exported public int getBusyExecutors() { int r=0; for (Computer c : get_all()) { if(c.isOnline()) r += c.countBusy(); } return r; }
running = false; for (final Computer computer : computers) { if (computer.countBusy() != 0) { running = true; break;
/** * Number of busy {@link Executor}s that are carrying out some work right now. */ @Exported public int getBusyExecutors() { int r=0; for (Computer c : get_all()) { if(c.isOnline()) r += c.countBusy(); } return r; }
/** * Number of busy {@link Executor}s that are carrying out some work right now. */ @Exported public int getBusyExecutors() { int r=0; for (Computer c : get_all()) { if(c.isOnline()) r += c.countBusy(); } return r; }
/** * Number of busy {@link Executor}s that are carrying out some work right * now. */ @Exported public int getBusyExecutors() { int r = 0; for (Computer c : get_all()) { if (c.isOnline()) { r += c.countBusy(); } } return r; }
/** * Number of busy {@link Executor}s that are carrying out some work right now. */ @Exported public int getBusyExecutors() { int r=0; for (Node n : getNodes()) { Computer c = n.toComputer(); if(c!=null && c.isOnline()) r += c.countBusy(); } return r; }
/** * Number of busy {@link Executor}s that are carrying out some work right now. */ @Exported public int getBusyExecutors() { int r=0; for (Node n : getNodes()) { Computer c = n.toComputer(); if(c!=null && c.isOnline()) r += c.countBusy(); } return r; }
/** * Number of busy {@link Executor}s that are carrying out some work right now. */ @Exported public int getBusyExecutors() { int r=0; for (Node n : getNodes()) { Computer c = n.toComputer(); if(c!=null && c.isOnline()) r += c.countBusy(); } return r; }
/** * Number of busy {@link Executor}s that are carrying out some work right now. */ @Exported public int getBusyExecutors() { int r=0; for (Node n : getNodes()) { Computer c = n.toComputer(); if(c!=null && c.isOnline()) r += c.countBusy(); } return r; }
/** * Number of busy {@link Executor}s that are carrying out some work right * now. */ @Exported public int getBusyExecutors() { int r = 0; for (Node n : getNodes()) { Computer c = n.toComputer(); if (c != null && c.isOnline()) { r += c.countBusy(); } } return r; }