Examples of interrupt()


Examples of hudson.model.Executor.interrupt()

        Thread c = Thread.currentThread();
        for (WorkUnit wu : workUnits) {
            Executor e = wu.getExecutor();
            if (e!=null && e!=c)
                e.interrupt();
        }
    }
}

Examples of hudson.model.Executor.interrupt()

                        MatrixRun b = c.getBuildByNumber(n);
                        if(b!=null && b.isBuilding()) {// executor can spend some time in post production state, so only cancel in-progress builds.
                            Executor exe = b.getExecutor();
                            if(exe!=null) {
                                logger.println(Messages.MatrixBuild_Interrupting(ModelHyperlinkNote.encodeTo(b)));
                                exe.interrupt();
                            }
                        }
                    }
                }
            }

Examples of hudson.model.Executor.interrupt()

                DynamicSubBuild b = c.getBuildByNumber(n);
                if (b != null && b.isBuilding()) {
                    Executor exe = b.getExecutor();
                    if (exe != null) {
                        logger.println(Messages.MatrixBuild_Interrupting(ModelHyperlinkNote.encodeTo(b)));
                        exe.interrupt();
                    }
                }
            }
        }
    }

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

            findDiffFiles.start();
            findDiffFiles.join();
            forceSync.join();
        } catch (InterruptedException e) {
            forceSync.interrupt();
            findDiffFiles.interrupt();
        } finally {
            IOUtils.closeQuietly(forceSyncInput);
            IOUtils.closeQuietly(diffOutput);
        }
    }

Examples of hudson.plugins.perforce.utils.TimedStreamCloser.interrupt()

        sw.flush();
        getLogger().warn("Perforce process terminated suddenly");
        getLogger().warn(sw.toString());
      }
      finally{
                            if(timedStreamCloser!=null) timedStreamCloser.interrupt();
                            try{
                                p4.getWriter().close();
                            } catch (IOException e) {
                                getLogger().warn("Write pipe failed to close.");
                            }

Examples of hudson.remoting.PingThread.interrupt()

        channel.addListener(new Channel.Listener() {
            @Override
            public void onClosed(Channel channel, IOException cause) {
                LOGGER.fine("Terminating ping thread for " + channel);
                isInClosed.set(true);
                t.interrupt()// make sure the ping thread is terminated
            }
        });

        t.start();
        LOGGER.fine("Ping thread started for " + channel + " with a " + interval + " minute interval");

Examples of hudson.remoting.PingThread.interrupt()

                }
            };
            ping.start();
            main(channel);
            channel.join();
            ping.interrupt();
        } finally {
            // publish that we are done
            completed=true;
            notify();
        }

Examples of hudson.util.StreamCopyThread.interrupt()

                }
            }

            public void kill() throws IOException, InterruptedException {
                t1.interrupt();
                t2.interrupt();
                proc.destroy();
            }

            public int join() throws IOException, InterruptedException {
                try {

Examples of java.lang.Thread.interrupt()

    public void interrupt()
    {
        Thread t = threadVar.get();
        if (t != null)
        {
            t.interrupt();
        }
        threadVar.clear();
    }

    /**
 

Examples of org.apache.derbyTesting.system.nstest.utils.SequenceReader.interrupt()

            timerThread.join();
        }

        // stop the sequence reader thread
    sequenceReader.stopNow = true;
    sequenceReader.interrupt();
    sequenceReader.join();

    // Print statistics
        printStatistics();
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.