Examples of failure()


Examples of com.netflix.astyanax.CassandraOperationTracer.failure()

                    latency = now - startTime;
                    lastException = ThriftConverter.ToConnectionPoolException(e).setLatency(latency);
                    if (e instanceof IsTimeoutException) {
                        pool.addLatencySample(TimeUnit.NANOSECONDS.convert(cpConfig.getSocketTimeout(), TimeUnit.MILLISECONDS), now);
                    }
                    tracer.failure(lastException);
                    throw lastException;
                }
                startTime = System.nanoTime(); // We don't want to include
                                               // the set_keyspace in our
                                               // latency calculation
View Full Code Here

Examples of io.crate.executor.transport.distributed.DistributedResultRequest.failure()

            @Override
            public void onFailure(@Nonnull Throwable t) {
                int idx = 0;
                for (DistributedResultRequest request : requests) {
                    request.failure(true);
                    sendRequest(request, downStreams.get(idx));
                    idx++;
                }
            }
        });
View Full Code Here

Examples of java.rmi.server.RMIFailureHandler.failure()

                failedAcceptsNum = 0;
            } catch (Exception ex) {
                RMIFailureHandler rfh = RMISocketFactory.getFailureHandler();

                if (rfh != null) {
                    if (rfh.failure(ex)) {
                        return;
                    }
                } else {
                    // We will try to immediately accept another client again,
                    // but if we have a bad client wich fails our accept tries
View Full Code Here

Examples of java.rmi.server.RMIFailureHandler.failure()

         * the accept loop if necessary.
         **/
        private boolean continueAfterAcceptFailure(Throwable t) {
            RMIFailureHandler fh = RMISocketFactory.getFailureHandler();
            if (fh != null) {
                return fh.failure(t instanceof Exception ? (Exception) t :
                                  new InvocationTargetException(t));
            } else {
                throttleLoopOnException();
                return true;
            }
View Full Code Here

Examples of java.rmi.server.RMIFailureHandler.failure()

                failedAcceptsNum = 0;
            } catch (Exception ex) {
                RMIFailureHandler rfh = RMISocketFactory.getFailureHandler();

                if (rfh != null) {
                    if (rfh.failure(ex)) {
                        return;
                    }
                } else {
                    // We will try to immediately accept another client again,
                    // but if we have a bad client which fails our accept tries
View Full Code Here

Examples of java.rmi.server.RMIFailureHandler.failure()

                failedAcceptsNum = 0;
            } catch (Exception ex) {
                RMIFailureHandler rfh = RMISocketFactory.getFailureHandler();

                if (rfh != null) {
                    if (rfh.failure(ex)) {
                        return;
                    }
                } else {
                    // We will try to immediately accept another client again,
                    // but if we have a bad client which fails our accept tries
View Full Code Here

Examples of net.jcores.jre.utils.internal.Options.failure()

                try {
                    queue.add(Async.QEntry(f.f()));
                    queue.close();
                } catch (Exception e) {
                    final Options options$ = Options.$(CommonCore.this, options);
                    options$.failure(f, e, "async:exception", "General exception invoking async function.");
                    queue.close();
                }
            }
        }, 0, options);
View Full Code Here

Examples of net.jcores.jre.utils.internal.Options.failure()

                        // Otherwise process next element.
                        try {
                            queue.add(Async.QEntry(f.f(t)));
                        } catch (Exception e) {
                            CoreObject.this.commonCore.report(MessageType.EXCEPTION, "Exception when processing " + t + " ... " + e.getMessage());
                            options$.failure(t, e, "for/f", "Unknown exception when processing element");
                        }
                    }
                } finally {
                    // When we're done, close the queue.
                    queue.close();
View Full Code Here

Examples of net.jcores.jre.utils.internal.Options.failure()

                final ClassLoader classloader = x.getClassLoader();

                // For internal object this usually does not work
                if (classloader == null) {
                    final Options options$ = Options.$(cc, options);
                    options$.failure(x, null, "bytecode:none", "Unable to find bytecode.");
                    return null;
                }

                return Streams.getByteData(classloader.getResourceAsStream(classname));
            }
View Full Code Here

Examples of net.jcores.jre.utils.internal.Options.failure()

                // Quick pass for most common option
                if (args == null || args.length == 0) {
                    try {
                        toSpawn.newInstance();
                    } catch (InstantiationException e) {
                        options$.failure(x, e, "spawn:instanceexception", "Unable to create a new instance.");
                    } catch (IllegalAccessException e) {
                        options$.failure(x, e, "spawn:illegalaccess", "Unable to access type.");
                    }
                }
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.