@Override public int computeTotalExecutors() { return new ComputerSet().getTotalExecutors(); }
@Override public int computeTotalExecutors() { return new ComputerSet().getTotalExecutors(); }
@Override public int computeTotalExecutors() { return new ComputerSet().getTotalExecutors(); }
@Override public int computeTotalExecutors() { return new ComputerSet().getTotalExecutors(); }
@Override public int computeTotalExecutors() { return new ComputerSet().getTotalExecutors(); }
@Override public int computeTotalExecutors() { return new ComputerSet().getTotalExecutors(); }
protected void doRun() { Hudson h = Hudson.getInstance(); List<hudson.model.Queue.BuildableItem> bis = h.getQueue().getBuildableItems(); // update statistics on slaves for (Label l : h.getLabels()) { l.loadStatistics.totalExecutors.update(l.getTotalExecutors()); l.loadStatistics.busyExecutors.update(l.getBusyExecutors()); int q = 0; for (hudson.model.Queue.BuildableItem bi : bis) { if (bi.task.getAssignedLabel() == l) { q++; } } l.loadStatistics.queueLength.update(q); } // update statistics of the entire system ComputerSet cs = new ComputerSet(); h.overallLoad.totalExecutors.update(cs.getTotalExecutors()); h.overallLoad.busyExecutors.update(cs.getBusyExecutors()); int q = 0; for (hudson.model.Queue.BuildableItem bi : bis) { if (bi.task.getAssignedLabel() == null) { q++; } } h.overallLoad.queueLength.update(q); h.overallLoad.totalQueueLength.update(bis.size()); } }
protected void doRun() { Hudson h = Hudson.getInstance(); List<hudson.model.Queue.BuildableItem> bis = h.getQueue().getBuildableItems(); // update statistics on slaves for( Label l : h.getLabels() ) { l.loadStatistics.totalExecutors.update(l.getTotalExecutors()); l.loadStatistics.busyExecutors .update(l.getBusyExecutors()); int q=0; for (hudson.model.Queue.BuildableItem bi : bis) { if(bi.task.getAssignedLabel()==l) q++; } l.loadStatistics.queueLength.update(q); } // update statistics of the entire system ComputerSet cs = new ComputerSet(); h.overallLoad.totalExecutors.update(cs.getTotalExecutors()); h.overallLoad.busyExecutors .update(cs.getBusyExecutors()); int q=0; for (hudson.model.Queue.BuildableItem bi : bis) { if(bi.task.getAssignedLabel()==null) q++; } h.overallLoad.queueLength.update(q); h.overallLoad.totalQueueLength.update(bis.size()); } }
protected void doRun() { Hudson h = Hudson.getInstance(); List<hudson.model.Queue.BuildableItem> bis = h.getQueue().getBuildableItems(); // update statistics on slaves for( Label l : h.getLabels() ) { l.loadStatistics.totalExecutors.update(l.getTotalExecutors()); l.loadStatistics.busyExecutors .update(l.getBusyExecutors()); int q=0; for (hudson.model.Queue.BuildableItem bi : bis) { if(bi.task.getAssignedLabel()==l) q++; } l.loadStatistics.queueLength.update(q); } // update statistics of the entire system ComputerSet cs = new ComputerSet(); h.overallLoad.totalExecutors.update(cs.getTotalExecutors()); h.overallLoad.busyExecutors .update(cs.getBusyExecutors()); int q=0; for (hudson.model.Queue.BuildableItem bi : bis) { if(bi.task.getAssignedLabel()==null) q++; } h.overallLoad.queueLength.update(q); h.overallLoad.totalQueueLength.update(bis.size()); } }
protected void doRun() { Hudson h = Hudson.getInstance(); List<hudson.model.Queue.BuildableItem> bis = h.getQueue().getBuildableItems(); // update statistics on slaves for( Label l : h.getLabels() ) { l.loadStatistics.totalExecutors.update(l.getTotalExecutors()); l.loadStatistics.busyExecutors .update(l.getBusyExecutors()); int q=0; for (hudson.model.Queue.BuildableItem bi : bis) { if(bi.task.getAssignedLabel()==l) q++; } l.loadStatistics.queueLength.update(q); } // update statistics of the entire system ComputerSet cs = new ComputerSet(); h.overallLoad.totalExecutors.update(cs.getTotalExecutors()); h.overallLoad.busyExecutors .update(cs.getBusyExecutors()); int q=0; for (hudson.model.Queue.BuildableItem bi : bis) { if(bi.task.getAssignedLabel()==null) q++; } h.overallLoad.queueLength.update(q); h.overallLoad.totalQueueLength.update(bis.size()); } }