Examples of join()


Examples of hudson.Launcher.ProcStarter.join()

            ProcStarter proc = new LocalLauncher(listener).launch()
                    .cmds(arguments)
                    .stdout(listener)
                    .pwd(appDir.getParent());
            int exit = proc.join();
            if (exit!=0)
                throw new IOException("Deployment of "+bundle+" failed: "+exit);

            return null;
        } catch (InterruptedException e) {
View Full Code Here

Examples of hudson.Proc.join()

            } catch (SocketTimeoutException e) {
                // failed to connect. Is the process dead?
                // if so, the error should have been provided by the launcher already.
                // so abort gracefully without a stack trace.
                if(!proc.isAlive())
                    throw new AbortException("Failed to launch Maven. Exit code = "+proc.join());
                throw e;
            }

            return new NewProcess(
                Channels.forProcess("Channel to Maven "+ Arrays.toString(cmds),
View Full Code Here

Examples of hudson.plugins.perforce.QuickCleaner.PerforceCall.join()

       
        try {
            forceSync.start();
            //find changed files
            findDiffFiles.start();
            findDiffFiles.join();
            forceSync.join();
        } catch (InterruptedException e) {
            forceSync.interrupt();
            findDiffFiles.interrupt();
        } finally {
View Full Code Here

Examples of hudson.remoting.Channel.join()

            Channel channel = new Channel("CLI channel from " + s.getInetAddress(),
                    Computer.threadPoolForRemoting, Mode.BINARY,
                    new BufferedInputStream(new SocketInputStream(this.s)),
                    new BufferedOutputStream(new SocketOutputStream(this.s)), null, true, Jenkins.getInstance().pluginManager.uberClassLoader);
            channel.setProperty(CliEntryPoint.class.getName(),new CliManagerImpl(channel));
            channel.join();
        }

        /**
         * Handles JNLP slave agent connection request.
         */
 
View Full Code Here

Examples of hudson.remoting.Engine.join()

            engine.setTunnel(tunnel);
        if(credentials!=null)
            engine.setCredentials(credentials);
        engine.setNoReconnect(noReconnect);
        engine.start();
        engine.join();
    }

    /**
     * {@link EngineListener} implementation that sends output to {@link Logger}.
     */
 
View Full Code Here

Examples of hudson.remoting.VirtualChannel.join()

        VirtualChannel ch = start(listener, rootUsername, rootPassword);
        try {
            return ch.call(closure);
        } finally {
            ch.close();
            ch.join(3000); // give some time for orderly shutdown, but don't block forever.
        }
    }

    private static abstract class UnixSu {
View Full Code Here

Examples of hudson.util.StreamCopyThread.join()

            public synchronized void close() throws IOException {
                super.close();
                // wait for Maven to complete
                try {
                    proc.waitFor();
                    thread.join();
                } catch (InterruptedException e) {
                    // process the interrupt later
                    Thread.currentThread().interrupt();
                }
            }
View Full Code Here

Examples of info.walnutstreet.vs.ps04.p2p.ring.Node.join()

    Node node = new Node("node0");
    Node node1 = new Node("node1");
    Node node2 = new Node("node2");

    // "node2" "node0" "node1"
    assertTrue(node2.join(node));
    assertTrue(node2.join(node1));

    this.testOrder(node, node2, 3);

    assertEquals(node2.getNext(), node);
View Full Code Here

Examples of java.lang.Thread.join()

            {
                return getValue();
            }
            try
            {
                t.join();
            }
            catch (InterruptedException e)
            {
                Thread.currentThread().interrupt(); // propagate
                return null;
View Full Code Here

Examples of java.nio.channels.DatagramChannel.join()

            groupInterfaces = Collections.list(NetworkInterface.getNetworkInterfaces());
        for (NetworkInterface groupInterface : groupInterfaces)
        {
            if (groupInterface.isLoopback() || groupInterface.isPointToPoint() || !groupInterface.supportsMulticast())
                continue;
            receiver.join(groupAddress, groupInterface);
        }

        active = true;

        senderThread = new Thread(new MulticastSender(sender), "Oort-Multicast-Sender-" + ids.incrementAndGet());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.