Package org.ardverk.dht.message

Examples of org.ardverk.dht.message.NodeRequest


  @Override
  protected void lookup(Contact dst, KUID lookupId,
      long timeout, TimeUnit unit) throws IOException {
   
    MessageFactory factory = getMessageFactory();
    NodeRequest message = factory.createNodeRequest(dst, lookupId);
    send(dst, message, timeout, unit);
  }
View Full Code Here


    this.routeTable = routeTable;
  }
 
  @Override
  public ResponseMessage handleRequest(RequestMessage message) throws IOException {
    NodeRequest request = (NodeRequest)message;
   
    KUID lookupId = request.getId();
   
    // This is an idea where I'm not sure if it's improving anything
    // or not. In short we're excluding the localhost from the result
    // set. The other guy knows us already and our information is in
    // the message header anyways. There is therefore no reason to
View Full Code Here

TOP

Related Classes of org.ardverk.dht.message.NodeRequest

Copyright © 2018 www.massapicom. 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.