Examples of failed()


Examples of org.apache.geronimo.kernel.lifecycle.LifecycleListener.failed()

    private void fireFailedEvent(AbstractName source) {
        Collection targets = getTargets(source);
        for (Iterator iterator = targets.iterator(); iterator.hasNext();) {
            LifecycleListener listener = (LifecycleListener) iterator.next();
            try {
                listener.failed(source);
            } catch (Throwable e) {
                log.warn("Exception occured while notifying listener", e);
            }
        }
    }
View Full Code Here

Examples of org.apache.geronimo.kernel.lifecycle.LifecycleListener.failed()

    private void fireFailedEvent(AbstractName source) {
        Set targets = getTargets(source);
        for (Iterator iterator = targets.iterator(); iterator.hasNext();) {
            LifecycleListener listener = (LifecycleListener) iterator.next();
            try {
                listener.failed(source);
            } catch (Throwable e) {
                log.warn("Exception occured while notifying listener", e);
            }
        }
    }
View Full Code Here

Examples of org.apache.geronimo.kernel.lifecycle.LifecycleListener.failed()

    private void fireFailedEvent(AbstractName source) {
        Set targets = getTargets(source);
        for (Iterator iterator = targets.iterator(); iterator.hasNext();) {
            LifecycleListener listener = (LifecycleListener) iterator.next();
            try {
                listener.failed(source);
            } catch (Throwable e) {
                log.warn("Exception occured while notifying listener", e);
            }
        }
    }
View Full Code Here

Examples of org.apache.http.nio.protocol.HttpAsyncRequestExecutor.ConnRequestCallback.failed()

        Mockito.verify(this.connPool).lease(
                Mockito.eq(host), Mockito.isNull(), argCaptor.capture());
        ConnRequestCallback connRequestCallback = (ConnRequestCallback) argCaptor.getValue();

        Exception oppsie = new Exception();
        connRequestCallback.failed(oppsie);
        Mockito.verify(this.responseConsumer).failed(oppsie);
        Mockito.verify(this.callback).failed(oppsie);
        Mockito.verify(this.responseConsumer).close();
        Mockito.verify(this.requestProducer).close();
    }
View Full Code Here

Examples of org.apache.http.nio.protocol.HttpAsyncRequester.ConnRequestCallback.failed()

        Mockito.verify(this.connPool).lease(
                Mockito.eq(host), Mockito.isNull(), argCaptor.capture());
        ConnRequestCallback connRequestCallback = (ConnRequestCallback) argCaptor.getValue();

        Exception oppsie = new Exception();
        connRequestCallback.failed(oppsie);
        Mockito.verify(this.responseConsumer).failed(oppsie);
        Mockito.verify(this.callback).failed(oppsie);
        Mockito.verify(this.responseConsumer).close();
        Mockito.verify(this.requestProducer).close();
    }
View Full Code Here

Examples of org.apache.sling.event.impl.jobs.JobExecutionResultImpl.failed()

                                                if ( isAsync.compareAndSet(true, false) ) {
                                                    services.jobConsumerManager.unregisterListener(job.getId());
                                                    Job.JobState state = null;
                                                    if ( result.succeeded() ) {
                                                        state = Job.JobState.SUCCEEDED;
                                                    } else if ( result.failed() ) {
                                                        state = Job.JobState.QUEUED;
                                                    } else if ( result.cancelled() ) {
                                                        if ( handler.isStopped() ) {
                                                            state = Job.JobState.STOPPED;
                                                        } else {
View Full Code Here

Examples of org.apache.sling.event.impl.jobs.JobExecutionResultImpl.failed()

                                        asyncCounter.incrementAndGet();
                                        isAsync.set(true);
                                    } else {
                                        if ( result.succeeded() ) {
                                            resultState = Job.JobState.SUCCEEDED;
                                        } else if ( result.failed() ) {
                                            resultState = Job.JobState.QUEUED;
                                        } else if ( result.cancelled() ) {
                                            if ( handler.isStopped() ) {
                                                resultState = Job.JobState.STOPPED;
                                            } else {
View Full Code Here

Examples of org.candlepin.resource.dto.HypervisorCheckInResult.failed()

                    consumerCurator.getHypervisor(hostEntry.getKey(), owner);
                if (consumer == null) {
                    if (!createMissing) {
                        log.info("Unable to find hypervisor with id " +
                            hostEntry.getKey() + " in org " + ownerKey);
                        result.failed(hostEntry.getKey(), i18n.tr(
                            "Unable to find hypervisor in org ''{0}''", ownerKey));
                        continue;
                    }
                    log.info("Registering new host consumer");
                    // Create new consumer
View Full Code Here

Examples of org.eclipse.jetty.spdy.StandardSession.FrameBytes.failed()

                    // Has the stream been reset for this data frame ?
                    if (stream != null && stream.isReset() && frameBytes instanceof StandardSession.DataFrameBytes)
                    {
                        // TODO: notify from within sync block !
                        frameBytes.failed(new StreamException(frameBytes.getStream().getId(),
                                StreamStatus.INVALID_STREAM, "Stream: " + frameBytes.getStream() + " is reset!"));
                        continue;
                    }

                    active.add(frameBytes);
View Full Code Here

Examples of org.eclipse.jetty.util.Callback.failed()

            recycle();
            for (int i = 0; i < callbacks.size(); ++i)
            {
                Callback callback = callbacks.get(i);
                if (callback != null)
                    callback.failed(x);
            }
        }

        protected void recycle()
        {
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.