Examples of failed()


Examples of net.tomp2p.futures.FutureChannelCreator.failed()

    }
    final FutureChannelCreator futureChannelCreator = new FutureChannelCreator();
    read.lock();
    try {
      if (shutdown) {
        return futureChannelCreator.failed("shutting down");
      }

      FutureDone<Void> futureChannelCreationDone = new FutureDone<Void>();
      futureChannelCreationDone.addListener(new BaseFutureAdapter<FutureDone<Void>>() {
        @Override
View Full Code Here

Examples of net.tomp2p.futures.FuturePeerConnection.failed()

                if (future.isSuccess()) {
                    final ChannelCreator cc = fcc.channelCreator();
                    final PeerConnection peerConnection = new PeerConnection(destination, cc, heartBeatMillis);
                    futureDone.done(peerConnection);
                } else {
                    futureDone.failed(future);
                }
            }
        });
        return futureDone;
    }
View Full Code Here

Examples of net.tomp2p.futures.FuturePing.failed()

                                // the latejoin future is fininshed if the add returns false
                                break;
                            }
                        }
                    } else {
                      futurePing.failed(future);
                    }
                }

       
            });
View Full Code Here

Examples of net.tomp2p.futures.FutureResponse.failed()

        if(msg.command() == Commands.RCON.getNr() && msg.type() == Type.OK) {
          LOG.debug("Successfully set up the reverse connection to peer {}", message.recipient().peerId());
          rconResponse.response(msg);
        } else {
          LOG.debug("Could not acquire a reverse connection to peer {}", message.recipient().peerId());
          rconResponse.failed("Could not acquire a reverse connection");
          futureResponse.failed(rconResponse.failedReason());
        }
      }
    };
   
View Full Code Here

Examples of net.tomp2p.futures.FutureTracker.failed()

                if (futureRouting.isSuccess()) {
                  LOG.debug("found direct hits for tracker get: {}", futureRouting.directHits());
                  startLoop(builder, futureTracker, futureRouting.directHits(),
                          futureChannelCreator2.channelCreator());
                } else {
                  futureTracker.failed(futureRouting);
                }
              }
            });
          }
          Utils.addReleaseListener(futureChannelCreator2.channelCreator(), futureTracker);
View Full Code Here

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

    private void fireFailedEvent(ObjectName 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.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) {
        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) {
        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
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.