Examples of abort()


Examples of org.apache.commons.httpclient.methods.EntityEnclosingMethod.abort()

         }
         method.releaseConnection();
         ok = true;
      } finally {
         if (!ok) {
            method.abort();
         }
      }
      long t2 = System.currentTimeMillis();
      logger.info("upload " + file + " done in " + (t2 - t1) + " ms");
   }
View Full Code Here

Examples of org.apache.commons.httpclient.methods.GetMethod.abort()

            NetTaskEvent.DOWNLOAD_STATUS_CHANGED));
        throw new NetworkException(pDownload.getMessage());
      }

      if (gMethod != null) {
        gMethod.abort();
        gMethod.releaseConnection();
      }
      try {
        if (lOutputStream != null)
          lOutputStream.close();
View Full Code Here

Examples of org.apache.commons.net.ftp.FTPClient.abort()

    public boolean interrupt() {
        FTPClient client = savedClient;
        if (client != null) {
            savedClient = null;
            try {
                client.abort();
                client.disconnect();
            } catch (IOException ignored) {
            }
        }
        return client != null;
View Full Code Here

Examples of org.apache.cxf.interceptor.InterceptorChain.abort()

            if (LOG.isLoggable(Level.FINE)) {
                LOG.fine("Operation:" + boi.getName() + " dispatched as colocated call.");
            }

            InterceptorChain outChain = message.getInterceptorChain();
            outChain.abort();
            exchange.put(Bus.class, bus);
            message.put(COLOCATED, Boolean.TRUE);
            message.put(Message.WSDL_OPERATION, boi.getName());
            message.put(Message.WSDL_INTERFACE, boi.getBinding().getInterface().getName());
            invokeColocObserver(message, srv.getEndpoint());
View Full Code Here

Examples of org.apache.derby.iapi.store.access.TransactionController.abort()

    if (tc != null)
    { 
      if (xa)
        ((XATransactionController)tc).xa_rollback();
      else
        tc.abort();
           
      // reset the savepoints to the new
      // location, since any outer nesting
      // levels expet there to be a savepoint
      resetSavepoints();
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.Transaction.abort()

      }
      else
      {
        System.out.println("page " + pagenumber + " not found");
      }
      xact.abort();
      xact.close();
      xact = null;
    }
    catch (StandardException se)
    {
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.xact.RawTransaction.abort()

      while(ttab.getMostRecentRollbackFirstTransaction(
                                                internalTransaction))
      {
        irbcount++;
        internalTransaction.abort();
      }

      internalTransaction.close();
    }
View Full Code Here

Examples of org.apache.excalibur.event.PreparedEnqueue.abort()

        assertEquals( 7, results.length );
        assertEquals( 0, queue.size() );

        PreparedEnqueue prep = queue.prepareEnqueue( elements );
        assertEquals( 10, queue.size() );
        prep.abort();
        assertEquals( 0, queue.size() );

        prep = queue.prepareEnqueue( elements );
        assertEquals( 10, queue.size() );
        prep.commit();
View Full Code Here

Examples of org.apache.hadoop.hbase.HTable.abort()

        table.put(lockid, TEXT_INPUT_COLUMN, values[i]);
        table.commit(lockid, System.currentTimeMillis());
        lockid = -1;
      } finally {
        if (lockid != -1)
          table.abort(lockid);
      }
    }

    LOG.info("Print table contents before map/reduce");
    scanTable(conf, SINGLE_REGION_TABLE_NAME);
View Full Code Here

Examples of org.apache.hadoop.hbase.ipc.TransactionalRegionInterface.abort()

      }
      try {
        TransactionalRegionInterface transactionalRegionServer = (TransactionalRegionInterface) connection
            .getHRegionConnection(location.getServerAddress());

        transactionalRegionServer.abort(location.getRegionInfo()
            .getRegionName(), transactionState.getTransactionId());
      } catch (UnknownTransactionException e) {
        LOG
            .debug("Got unknown transaciton exception durring abort. Transaction: ["
                + transactionState.getTransactionId()
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.