Examples of interrupt()


Examples of org.java_websocket.WebSocketImpl.interrupt()

      // should hopefully never occur
      handleFatal( null, e );
    } finally {
      if( decoders != null ) {
        for( WebSocketWorker w : decoders ) {
          w.interrupt();
        }
      }
      if( server != null ) {
        try {
          server.close();

Examples of org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.interrupt()

            public boolean apply(File tmp) {
                return tmp.exists();
            }
        });

        e.interrupt(Result.ABORTED);

        // touching should have stopped
        final long refTimestamp = tmp.lastModified();
        ensureForWhile(5000, tmp, new Predicate<File>() {
            @Override

Examples of org.jruby.RubyThread.interrupt()

            RubyThread thread = this.thread;
            if (thread != null) {
                thread.dieFromFinalizer();

                // interrupt Ruby thread to break out of queue sleep, blocking IO
                thread.interrupt();

                // null out references to aid GC
                data = null;
                thread = null;
            }

Examples of org.nasutekds.guitools.controlpanel.util.ProcessReader.interrupt()

      {
        outReader.interrupt();
      }
      if (errReader != null)
      {
        errReader.interrupt();
      }
    }
    return returnCode;
  }

Examples of org.openstreetmap.osmosis.core.pipeline.common.TaskRunner.interrupt()

    // Verify that all of the replication sequences made it to the
    // destination.
    Assert.assertTrue("The state file for sequence " + sequenceCount + " doesn't exist.", finalStateFile.exists());

    // Shut down the pipelines.
    clientRunner.interrupt();
    serverRunner.interrupt();
    clientRunner.join();
    serverRunner.join();
    source.release();
  }

Examples of org.rhq.enterprise.server.scheduler.SchedulerLocal.interrupt()

        SimpleTrigger trigger = new SimpleTrigger(jobDetail.getName(), jobDetail.getGroup());
        trigger.setVolatility(false);

        SchedulerLocal scheduler = LookupUtil.getSchedulerBean();

        boolean cancelled = scheduler.interrupt(RepoSyncJob.createJobName(repo), REPO_SYNC_JOB_IMMEDIATE_GROUP_NAME);

        getLog().info("Cancelled repo sync job [" + jobDetail.getName() + ':' + jobDetail.getGroup() + "].");
    }

    /**
 

Examples of org.snmp4j.util.WorkerTask.interrupt()

   */
  public void close() {
    WorkerTask st = server;
    if (st != null) {
      st.terminate();
      st.interrupt();
      try {
        st.join();
      }
      catch (InterruptedException ex) {
        logger.warn(ex);

Examples of org.snmp4j.util.WorkerTask.interrupt()

  public void close() throws IOException {
    boolean interrupted = false;
    WorkerTask l = listener;
    if (l != null) {
      l.terminate();
      l.interrupt();
      if (socketTimeout > 0) {
        try {
          l.join();
        }
        catch (InterruptedException ex) {

Examples of org.wso2.carbon.registry.core.utils.LogWriter.interrupt()

    public static void cleanEmbeddedRegistry() {
        RegistryContext registryContext = RegistryContext.getBaseInstance();
        if (registryContext != null) {
            LogWriter logWriter = registryContext.getLogWriter();
            if (logWriter != null) {
                logWriter.interrupt();
            }
        }
    }
}

Examples of qat.agent.ExecProcess.interrupt()

        daemon = (ExecProcess)daemonPool.elementAt(0);
    }
       
    try {
        ConsoleServer.debugMsg("Interrupting daemon",5);
        daemon.interrupt();
    }
    catch (Throwable ex) {
    }
    // delete it from our list
    try {
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.