Examples of cancel()


Examples of com.dbxml.db.core.transaction.Transaction.cancel()

            src = new DOMSource(e, systemID);
         }
      }
      catch ( DBException e ) {
         try {
            tx.cancel();
         }
         catch ( DBException ex ) {
            ex.printStackTrace(System.err);
         }
View Full Code Here

Examples of com.ericsson.ssa.sip.timer.ServletTimerImpl.cancel()

    protected void cancelNonPersistentTimers() {
        Set<String> nonPersistentTimerIds = getNonPersistentApplicationTimerIds(false);
        for (String id : nonPersistentTimerIds) {
            ServletTimerImpl st = findServletTimerLocally(id, false);
            if (st != null) {
                st.cancel(true);
            }
        }
    }

View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.cancel()

    public void actionPerformed( ActionEvent e )
    {
      WsdlTestCaseRunner testCaseRunner = getModelItem().getTestCaseRunner();
      if( testCaseRunner != null )
        testCaseRunner.cancel( "Canceled from RunTestCase UI" );
    }
  }
}
View Full Code Here

Examples of com.eviware.soapui.model.testsuite.TestStep.cancel()

  public void onCancel( String reason )
  {
    TestStep currentStep = getRunContext().getCurrentStep();
    if( currentStep != null )
      currentStep.cancel();
  }

  public void onFail( String reason )
  {
    TestStep currentStep = getRunContext().getCurrentStep();
View Full Code Here

Examples of com.facebook.presto.importer.JobStateFactory.JobState.cancel()

                    runningJobs.put(jobId, jobStateFactory.forImportJob(configuredJobs.get(jobId)));
                }

                for (Long oldJob : jobsToRemove) {
                    JobState removedJob = runningJobs.remove(oldJob);
                    removedJob.cancel(true);
                }

                log.debug("Current set of jobs is %s", runningJobs.keySet());

                for (JobState importJob : runningJobs.values()) {
View Full Code Here

Examples of com.github.couchapptakeout.events.utils.FileDownloader.cancel()

        FileDownloader downloader = new FileDownloader(source, dest);
        new Thread(downloader).start();

        while(downloader.getStatus() == FileDownloader.DOWNLOADING ) {
            if (cancel) downloader.cancel();
            EventBus.publish(new LoadingMessage(-1, -1, null, (int)downloader.getProgress(), 100, "Downloading..." ));
            Thread.sleep(1000);
        }
        return dest;
    }
View Full Code Here

Examples of com.globant.google.mendoza.malbec.Order.cancel()

            "The order can not be cancelled in its"
            + " current financial order state.");
      }
      setRequestParameters();
      Order order = this.getMendozaState().getOrder();
      order.cancel(reason, comment);
      result.setSuccess(commandResultMsg);
    } catch (RuntimeException e) {
      commandResultMsg = e.getMessage();
      result.setError(commandResultMsg);
    }
View Full Code Here

Examples of com.google.common.jimfs.AbstractWatchService.Key.cancel()

  }

  @Test
  public void testCancellingLastKeyStopsPolling() throws IOException {
    Key key = watcher.register(createDirectory(), ImmutableList.of(ENTRY_CREATE));
    key.cancel();
    assertThat(key.isValid()).isFalse();

    assertThat(watcher.isPolling()).isFalse();

    Key key2 = watcher.register(createDirectory(), ImmutableList.of(ENTRY_CREATE));
View Full Code Here

Examples of com.google.common.util.concurrent.ListenableFuture.cancel()

    Assert.assertTrue(queriesStarted.await(1, TimeUnit.SECONDS));

    // cancel the query
    Assert.assertTrue(capturedFuture.hasCaptured());
    ListenableFuture future = capturedFuture.getValue();
    future.cancel(true);

    QueryInterruptedException cause = null;
    try {
      resultFuture.get();
    } catch(ExecutionException e) {
View Full Code Here

Examples of com.google.enterprise.connector.pusher.Pusher.cancel()

      // No more documents. Wrap up any accumulated feed data and send it off.
      if (!isCancelled()) {
        pusher.flush();
      }
    } catch (OutOfMemoryError e) {
      pusher.cancel();
      System.runFinalization();
      System.gc();
      result = new BatchResult(TraversalDelayPolicy.ERROR);
      try {
        LOGGER.severe("Out of JVM Heap Space.  Will retry later.");
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.