Package hudson.model.queue

Examples of hudson.model.queue.WorkUnitContext


            for (Node n : hash.list(p.task.getFullDisplayName())) {
                Computer c = n.toComputer();
                if (c==null || c.isOffline())    continue;
                if (lbl!=null && !lbl.contains(n))  continue;
                if (n.canTake(p) != null) continue;
                c.startFlyWeightTask(new WorkUnitContext(p).createWorkUnit(p.task));
                pendings.add(p);
                return;
            }
            // if the execution get here, it means we couldn't schedule it anywhere.
            // so do the scheduling like other normal jobs.
View Full Code Here


                // just leave it in the buildables list and
                // check if we can execute other projects
                continue;

            // found a matching executor. use it.
            WorkUnitContext wuc = new WorkUnitContext(p);
            m.execute(wuc);

            itr.remove();
            if (!wuc.getWorkUnits().isEmpty())
                pendings.add(p);
        }
    }
View Full Code Here

                        // just leave it in the buildables list and
                        // check if we can execute other projects
                        continue;

                    // found a matching executor. use it.
                    WorkUnitContext wuc = new WorkUnitContext(p);
                    m.execute(wuc);

                    itr.remove();
                    if (!wuc.getWorkUnits().isEmpty())
                        pendings.add(p);
                }

                // we went over all the buildable projects and awaken
                // all the executors that got work to do. now, go to sleep
View Full Code Here

            Label lbl = p.task.getAssignedLabel();
            for (Node n : hash.list(p.task.getFullDisplayName())) {
                Computer c = n.toComputer();
                if (c==null || c.isOffline())    continue;
                if (lbl!=null && !lbl.contains(n))  continue;
                c.startFlyWeightTask(new WorkUnitContext(p).createWorkUnit(p.task));
                pendings.add(p);
                return;
            }
            // if the execution get here, it means we couldn't schedule it anywhere.
            // so do the scheduling like other normal jobs.
View Full Code Here

TOP

Related Classes of hudson.model.queue.WorkUnitContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.