Package org.ardverk.dht.config

Examples of org.ardverk.dht.config.NodeConfig


            pingFutures.add(future);
          }
        }
      }
     
      NodeConfig lookupConfig = cfg.getLookupConfig();
      long bucketTimeout = cfg.getBucketTimeoutInMillis();
     
      Bucket[] buckets = routeTable.getBuckets();
      IdentifierUtils.byXor(buckets, localhostId);
     
View Full Code Here


  }
 
  public DHTFuture<NodeEntity> discover(Contact[] contacts,
      KUID lookupId, NodeConfig config) {
   
    NodeConfig cfg = configProvider.get(config);
   
    DHTProcess<NodeEntity> process
      = new NodeResponseHandler(messageDispatcher,
          contacts, routeTable, lookupId, cfg);
    return futureManager.submit(process, cfg);
View Full Code Here

        expected.add(dht.getIdentity().getId());
      }
     
      DHT first = dhts.get(0);
     
      NodeConfig config = new NodeConfig();
      config.setLookupTimeout(20L, TimeUnit.SECONDS);
     
      DHTFuture<NodeEntity> future
        = first.discover(lookupId, config);
      NodeEntity entity = future.get();
      TestCase.assertEquals(lookupId, entity.getId());
View Full Code Here

TOP

Related Classes of org.ardverk.dht.config.NodeConfig

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.