Examples of abort()


Examples of org.apache.http.mockup.RequestCount.abort()

                    HttpEntity entity = response.getEntity();
                    byte[] data = EntityUtils.toByteArray(entity);
                    list.addBytes(data);
                    requestCount.decrement();
                } catch (IOException ex) {
                    requestCount.abort();
                    return;
                }

                if (i < reqNo) {
                    conn.requestInput();
View Full Code Here

Examples of org.apache.lucene.index.IndexWriter.abort()

            hitError = true;
          }

          if (hitError) {
            if (doAbort) {
              writer.abort();
            } else {
              try {
                writer.close();
              } catch (IOException e) {
                // e.printStackTrace();
View Full Code Here

Examples of org.apache.tapestry5.hibernate.HibernateSessionManager.abort()

        HibernateTransactionDecorator decorator = newHibernateSessionManagerDecorator(manager);
        RuntimeException re = new RuntimeException("Unexpected.");

        delegate.perform();
        TestBase.setThrowable(re);
        manager.abort();

        replay();

        Performer interceptor = decorator.build(Performer.class, delegate, "foo.Bar");
View Full Code Here

Examples of org.apache.tez.mapreduce.output.MROutput.abort()

      kvWriter.write(key, value);
    }
    if (processorContext.canCommit()) {
      mrOutput.commit();
    } else {
      mrOutput.abort();
    }
  }
}
View Full Code Here

Examples of org.apache.tomcat.lite.http.HttpChannel.abort()

            if (serverCh == null || clientCh == null) {
                return;
            }
            if (doneCh.getError()) {
                serverCh.abort("Proxy error");
                clientCh.abort("Proxy error");
                return;
            }

            if (log.isLoggable(Level.FINE)) {
                HttpChannel peerCh =
View Full Code Here

Examples of org.apache.zookeeper.common.AtomicFileOutputStream.abort()

        } catch (IOException e) {
            LOG.error("Failed to write new file " + file, e);
            // worst case here the tmp file/resources(fd) are not cleaned up
            //   and the caller will be notified (IOException)
            aborted = true;
            out.abort();
            throw e;
        } finally {
            if (!aborted) {
                // if the close operation (rename) fails we'll get notified.
                // worst case the tmp file may still exist
View Full Code Here

Examples of org.cometd.client.BayeuxClient.abort()

            {
                latch.countDown();
            }
        });

        client.abort();

        Assert.assertTrue(latch.await(2 * maxInterval, TimeUnit.MILLISECONDS));
    }

    @Test
View Full Code Here

Examples of org.dspace.core.Context.abort()

        }
        finally
        {
            if (context != null && context.isValid())
            {
                context.abort();
            }
        }
        return -1;
    }
View Full Code Here

Examples of org.eclipse.jetty.client.HttpDestination.abort()

        SessionFrameListener.Adapter listener = new SessionFrameListener.Adapter()
        {
            @Override
            public void onFailure(Session session, Throwable x)
            {
                destination.abort(x);
            }
        };

        client.connect(address, listener, new Promise<Session>()
        {
View Full Code Here

Examples of org.eclipse.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
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.