private void _getBuildableItems(Computer c, List<BuildableItem> col, List<BuildableItem> result) { Node node = c.getNode(); if (node == null) // Deleted computers cannot take build items... return; for (BuildableItem p : col) { if (node.canTake(p) == null) result.add(p); } }
for (Computer o : Collections.unmodifiableSet(availableComputers.keySet())) { Node otherNode = o.getNode(); if (otherNode != null && otherNode.canTake(item) == null) { needExecutor = false; final int availableExecutors = availableComputers.remove(o); if (needExecutor && checkedNode != null && checkedNode.canTake(item) == null) { demandMilliseconds = System.currentTimeMillis() - item.buildableStartMilliseconds; needComputer = demandMilliseconds > inDemandDelay * 1000 * 60 /*MINS->MILLIS*/;
continue; if (n.canTake(p) != null) { continue;
return CauseOfBlockage.fromMessage(Messages._Queue_node_has_been_removed_from_configuration(executor.getOwner().getDisplayName())); CauseOfBlockage reason = node.canTake(item); if (reason != null) { return reason;
public CauseOfBlockage superCanTake(Queue.BuildableItem item) { return super.canTake(item); }
public CauseOfBlockage superCanTake(Task task) { return super.canTake(task); }
private void _getBuildableItems(Computer c, List<BuildableItem> col, List<BuildableItem> result) { Node node = c.getNode(); if (node == null) // Deleted computers cannot take build items... return; for (BuildableItem p : col) { if (node.canTake(p) == null) result.add(p); } }
private void _getBuildableItems(Computer c, ItemList<BuildableItem> col, List<BuildableItem> result) { Node node = c.getNode(); for (BuildableItem p : col.values()) { if (node.canTake(p.task) == null) result.add(p); } }
private void _getBuildableItems(Computer c, ItemList<BuildableItem> col, List<BuildableItem> result) { Node node = c.getNode(); for (BuildableItem p : col.values()) { if (node.canTake(p.task) == null) result.add(p); } }
private void _getBuildableItems(Computer c, ItemList<BuildableItem> col, List<BuildableItem> result) { Node node = c.getNode(); for (BuildableItem p : col.values()) { if (node.canTake(p) == null) { result.add(p); } } }
private void _getBuildableItems(Computer c, ItemList<BuildableItem> col, List<BuildableItem> result) { Node node = c.getNode(); for (BuildableItem p : col.values()) { if (node.canTake(p.task) == null) result.add(p); } }
@Override public CauseOfBlockage canTake(Task task) { initPython(); if (pexec.isImplemented(7)) { return (CauseOfBlockage) pexec.execPython("can_take", task); } else { return super.canTake(task); } }
@Override public CauseOfBlockage canTake(Queue.BuildableItem item) { initPython(); if (pexec.isImplemented(8)) { return (CauseOfBlockage) pexec.execPython("can_take", item); } else { return super.canTake(item); } }
/** * Verifies that the {@link Executor} represented by this object is capable of executing the given task. */ public boolean canTake(Task task) { Node node = getNode(); if (node==null) return false; // this executor is about to die if(node.canTake(task)!=null) return false; // this node is not able to take the task for (QueueTaskDispatcher d : QueueTaskDispatcher.all()) if (d.canTake(node,task)!=null) return false; return isAvailable(); }
/** * Verifies that the {@link Executor} represented by this object is capable of executing the given task. */ public boolean canTake(Task task) { Node node = getNode(); if (node==null) return false; // this executor is about to die if(node.canTake(task)!=null) return false; // this node is not able to take the task for (QueueTaskDispatcher d : QueueTaskDispatcher.all()) if (d.canTake(node,task)!=null) return false; return isAvailable(); }
/** * Verifies that the {@link Executor} represented by this object is capable of executing the given task. */ public boolean canTake(Task task) { Node node = getNode(); if (node==null) return false; // this executor is about to die if(node.canTake(task)!=null) return false; // this node is not able to take the task for (QueueTaskDispatcher d : QueueTaskDispatcher.all()) if (d.canTake(node,task)!=null) return false; return isAvailable(); }
/** * Verifies that the {@link Executor} represented by this object is * capable of executing the given task. */ public boolean canTake(BuildableItem item) { Node node = getNode(); if (node == null) { return false; // this executor is about to die } if (node.canTake(item) != null) { return false; // this node is not able to take the task } for (QueueTaskDispatcher d : QueueTaskDispatcher.all()) { if (d.canTake(node, item) != null) { return false; } } return isAvailable(); }
Computer otherComputer = otherNode.toComputer(); if (otherComputer != null && otherComputer.isOnline() && !otherNode.equals(node) && otherNode.canTake(buildableItem) == null) { otherNodeCanBuild = true; break;
return CauseOfBlockage.fromMessage(Messages._Queue_node_has_been_removed_from_configuration(executor.getOwner().getDisplayName())); CauseOfBlockage reason = node.canTake(item); if (reason != null) { return reason;
continue; if (n.canTake(p) != null) { continue;