Examples of abort()


Examples of com.arjuna.ats.arjuna.AtomicAction.abort()

                System.out.println("About to complete the transaction ");
                // Try to complete the transaction as requested by the user
                if (commit)
                    actionStatus = tx.commit()// Top level commit
                else
                    actionStatus = tx.abort()// Top level rollback

                System.out.println("The status of the transaction is " + ActionStatus.stringForm(actionStatus));
            }
            else
            {
View Full Code Here

Examples of com.asakusafw.runtime.directio.hadoop.DirectIoTransactionEditor.abort()

        if (args.length == 1) {
            String executionId = args[0];
            DirectIoTransactionEditor editor = new DirectIoTransactionEditor(repository);
            editor.setConf(getConf());
            try {
                editor.abort(executionId);
                return 0;
            } catch (Exception e) {
                LOG.error(MessageFormat.format(
                        "Failed to abort transaction (executionId={0})",
                        executionId), e);
View Full Code Here

Examples of com.asakusafw.windgate.core.resource.ResourceProvider.abort()

                LOG.debug("Attempting to abort resource {} (session={})",
                        name,
                        targetSessionId);
                try {
                    if (RuntimeContext.get().isSimulation() == false) {
                        provider.abort(session.getId());
                    }
                } catch (IOException e) {
                    failureCount++;
                    WGLOG.warn(e, "W01002",
                            targetSessionId,
View Full Code Here

Examples of com.asakusafw.windgate.core.session.SessionMirror.abort()

     * @throws Exception if failed
     */
    @Test
    public void abort() throws Exception {
        SessionMirror session = provider.create("testing");
        session.abort();
        SessionMirror reopen = provider.create("testing");
        reopen.close();
    }

    /**
 
View Full Code Here

Examples of com.dotcms.repackage.org.apache.commons.httpclient.HttpMethodBase.abort()

            Utils.processResultCode(res, url);
            in = m.getResponseBodyAsStream();
            nin = new NotifyingFileInputStream(in, m.getResponseContentLength(), url, listener);
            receiver.receive(nin);
        } catch (com.dotcms.repackage.org.apache.commons.httpclient.HttpException ex) {
            m.abort();
            throw new GenericHttpException(ex.getReasonCode(), url);
        } catch (Utils.CancelledException ex) {
            m.abort();
            throw ex;
        } catch (IOException ex) {
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jetty.client.api.Request.abort()

            return result;
        }
        catch (InterruptedException x)
        {
            // If the application interrupts, we need to abort the redirect
            redirect.abort(x);
            throw x;
        }
    }

    /**
 
View Full Code Here

Examples of com.google.gwt.xhr.client.XMLHttpRequest.abort()

     */
    final XMLHttpRequest xhr = xmlHttpRequest;
    xmlHttpRequest = null;

    xhr.clearOnReadyStateChange();
    xhr.abort();
  }

  /**
   * Returns true if this request is waiting for a response.
   *
 
View Full Code Here

Examples of com.googlecode.richrest.client.Abortable.abort()

  public void abort() throws IOException {
    if (abortable && ! abortorStack.isEmpty()) {
      Abortable abortable = abortorStack.pop();
      if (abortable != null)
        abortable.abort();
    }
  }

  public boolean canAbort() {
    return abortable && ! abortorStack.isEmpty();
View Full Code Here

Examples of com.googlecode.richrest.client.Transfer.abort()

          return;
        }
        ThreadUtils.execute(new Runnable(){
          public void run() {
            try {
              execution.abort();
              JOptionPane.showMessageDialog(TransferPane.this, "中止传输项完成!", "中止", JOptionPane.INFORMATION_MESSAGE);
            } catch (Throwable t) {
              JOptionPane.showMessageDialog(TransferPane.this, "中止传输项失败! 原因: " + t.getMessage(), "中止", JOptionPane.WARNING_MESSAGE);
            }
          }
View Full Code Here

Examples of com.googlecode.richrest.client.work.Work.abort()

        final Work work = WorkDialog.this.work;
        if (work != null && work.isAbortable()) {
          ThreadUtils.execute(new Runnable(){
            public void run() {
              try {
                work.abort();
              } catch (final Throwable t) {
                shell.getDisplay().asyncExec(new Runnable() {
                  public void run() {
                    MessageDialog.openError(shell, "中止", "中止传输项失败! 原因: " + t.getMessage());
                  }
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.