Examples of abort()


Examples of ae.sun.awt.image.ImageRepresentation.abort()

            availinfo &= ~ImageObserver.ERROR;
            ir = imagerep;
            imagerep = null;
        }
        if (ir != null) {
            ir.abort();
        }
        if (src != null) {
            src.flush();
        }
    }
View Full Code Here

Examples of co.cask.tephra.TransactionContext.abort()

        try {
          ((Closeable) consumer).close();
          txContext.finish();
        } catch (TransactionFailureException e) {
          LOG.warn("Fail to commit transaction when closing consumer.");
          txContext.abort();
        }
      }
    } catch (Exception e) {
      LOG.warn("Fail to close queue consumer.", e);
    }
View Full Code Here

Examples of co.cask.tephra.TransactionManager.abort()

      Assert.assertTrue(tx5.isVisible(tx1.getWritePointer()));
      Assert.assertTrue(tx5.isVisible(tx2.getWritePointer()));
      Assert.assertFalse(tx5.isVisible(tx3.getWritePointer()));
      Assert.assertFalse(tx5.isVisible(tx4.getWritePointer()));
      // can commit tx3?
      txManager.abort(tx3);
      txManager.abort(tx4);
      txManager.abort(tx5);
      // start new tx and verify its exclude list is empty
      Transaction tx6 = txManager.startShort();
      Assert.assertFalse(tx6.hasExcludes());
View Full Code Here

Examples of co.paralleluniverse.galaxy.quasar.Store.abort()

                RemoteChannelReceiver.getReceiver(LocalActor.getMailbox(actor), true).handleRefMessage(new GlxRemoteChannel.RefMessage(true, grid.cluster().getMyNodeId()));
                return root; // root is the global id
            } catch (TimeoutException e) {
                LOG.error("Registering actor {} at root {} failed due to timeout", actor, rootName);
                store.rollback(txn);
                store.abort(txn);
                throw new RuntimeException("Actor registration failed");
            }
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        } finally {
View Full Code Here

Examples of com.adito.vfs.VFSOutputStream.abort()

                int k = -1;
                while (in!=null && (k = in.read(buffer)) != -1)
                    out.write(buffer, 0, k);
                out.close();
            } finally {
                out.abort();
            }
            resource.getMount().resourceUpload(resource, transaction, null);
        } catch (Exception e) {
            resource.getMount().resourceUpload(resource, transaction, e);
            IOException ioe = new IOException(e.getMessage());
View Full Code Here

Examples of com.alibaba.otter.node.etl.common.io.download.DataRetriever.abort()

        try {
            dataRetriever.connect();
            dataRetriever.doRetrieve();
            archiveFile = dataRetriever.getDataAsFile();
        } catch (Exception e) {
            dataRetriever.abort();
            throw new PipeException("download_error", e);
        } finally {
            dataRetriever.disconnect();
        }
View Full Code Here

Examples of com.alibaba.otter.node.etl.common.io.download.impl.aria2c.Aria2cRetriever.abort()

        DataRetriever retriever = new Aria2cRetriever("http://china.alibaba.com", tmp);
        try {
            retriever.connect();
            retriever.doRetrieve();
        } catch (DataRetrieveException ex) {
            retriever.abort();
        } finally {
            retriever.disconnect();
        }
    }
View Full Code Here

Examples of com.alibaba.wasp.fserver.FServer.abort()

   *          Used as index into a list.
   */
  public String abortFServer(int serverNumber) {
    FServer server = getFServer(serverNumber);
    LOG.info("Aborting " + server.toString());
    server.abort("Aborting for tests", new Exception("Trace info"));
    return server.toString();
  }

  /**
   * Shut down the specified entityGroup server cleanly
View Full Code Here

Examples of com.alibaba.wasp.master.FMaster.abort()

   *          Used as index into a list.
   */
  public String abortMaster(int serverNumber) {
    FMaster server = getMaster(serverNumber);
    LOG.info("Aborting " + server.toString());
    server.abort("Aborting for tests", new Exception("Trace info"));
    return server.toString();
  }

  /**
   * Shut down the specified master cleanly
View Full Code Here

Examples of com.amazonaws.services.s3.model.S3ObjectInputStream.abort()

            int bytesRead = -1;
            while ((bytesRead = objectContent.read(buffer)) > -1) {
                output.write(buffer, 0, bytesRead);
            }
        } catch (IOException ioe) {
            objectContent.abort();
            throw new AmazonClientException("Unable to transfer content from Amazon S3 to the output stream", ioe);
        } finally {
            try { objectContent.close(); } catch (IOException ioe) {}
        }
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.