Examples of cancel()


Examples of er.ajax.AjaxProgress.cancel()

  }

  public WOActionResults cancel() {
    AjaxProgress progress = progress();
    if (progress != null) {
      progress.cancel();
    }
    return null;
  }

  protected void finished() {
View Full Code Here

Examples of eu.stratosphere.nephele.template.AbstractInvokable.cancel()

      // Request user code to shut down
      try {
        final AbstractInvokable invokable = this.environment.getInvokable();
        if (invokable != null) {
          invokable.cancel();
        }
      } catch (Throwable e) {
        LOG.error(StringUtils.stringifyException(e));
      }
    }
View Full Code Here

Examples of freenet.client.async.ClientGetter.cancel()

        }
      } catch (PersistenceDisabledException e) {
        // Impossible
      }
    if(cancelled != null)
      cancelled.cancel(core.clientContext);
  }

  final File getBlobFile(int availableVersion) {
    return new File(node.clientCore.getPersistentTempDir(), blobFilenamePrefix + availableVersion + ".fblob");
  }
View Full Code Here

Examples of freenet.client.async.ClientRequester.cancel()

  public void cancel(ClientContext context) {
    ClientRequester cr = getClientRequest();
    // It might have been finished on startup.
    if(logMINOR) Logger.minor(this, "Cancelling "+cr+" for "+this+" persistence = "+persistence);
    if(cr != null) cr.cancel(context);
    freeData();
  }

  public boolean isPersistentForever() {
    return persistence == Persistence.FOREVER;
View Full Code Here

Examples of freenet.clients.fcp.ClientRequest.cancel()

                        failedSerialize = true;
                    failed++;
                    System.err.println("Unable to resume request "+req+" after loading it.");
                    Logger.error(this, "Unable to resume request "+req+" after loading it: "+t, t);
                    try {
                        req.cancel(context);
                    } catch (Throwable t1) {
                        Logger.error(this, "Unable to terminate "+req+" after failure: "+t1, t1);
                    }
                }
            }
View Full Code Here

Examples of freenet.node.updater.UpdateOverMandatoryManager.UOMDependencyFetcher.cancel()

      MainJarUpdater.this.node.executor.execute(new Runnable() {

        @Override
        public void run() {
          getter.cancel(clientContext);
          if(f != null) f.cancel();
        }
       
      });
    }
   
View Full Code Here

Examples of games.stendhal.client.gui.ProgressBar.cancel()

          client.connect(server, finalPort);
          // for each major connection milestone call step()
          progressBar.step();
        } catch (final Exception ex) {
          // if something goes horribly just cancel the progress bar
          progressBar.cancel();
          setEnabled(true);
          JOptionPane.showMessageDialog(
              owner,
              "Unable to connect to server to create your account. The server may be down or, if you are using a custom server, " +
              "you may have entered its name and port number incorrectly.");
View Full Code Here

Examples of henplus.view.util.CancelWriter.cancel()

                    try {
                        stmt.close();
                    } catch (final Exception e) {
                    }
                }
                selectInfo.cancel();
            }
        }
    }

    private static class MetaProperty {
View Full Code Here

Examples of hudson.model.Queue.cancel()

                // if the build was aborted in the middle. Cancel all the configuration builds.
                Queue q = Jenkins.getInstance().getQueue();
                synchronized(q) {// avoid micro-locking in q.cancel.
                    final int n = getNumber();
                    for (MatrixConfiguration c : p.getActiveConfigurations()) {
                        if(q.cancel(c))
                            logger.println(Messages.MatrixBuild_Cancelled(ModelHyperlinkNote.encodeTo(c)));
                        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) {
View Full Code Here

Examples of io.apigee.trireme.core.ScriptFuture.cancel()

        NodeScript script = env.createScript("server.js", new File("./target/test-classes/dogs/server.js"), null);
        ScriptFuture scriptFuture = script.execute();
        Utils.awaitPortOpen(PORT);
        long after = getMemoryUsed();
        System.out.println("Added " + (after - before) + " bytes after starting one script");
        scriptFuture.cancel(true);
    }

    @Test
    public void testAppMemoryManyTimes()
        throws NodeException, InterruptedException, IOException
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.