Examples of peerMapUpdateInterval()


Examples of net.tomp2p.nat.PeerNAT.peerMapUpdateInterval()

      }
      Assert.assertTrue(otherPeersHaveRelay);

      // wait for maintenance
      Thread.sleep(uNat.peerMapUpdateInterval() * 1000);

      boolean otherPeersMe = false;
      for (Peer peer : peers) {
        if (peer.peerBean().peerMap().all().contains(unreachablePeer.peerAddress())) {
          System.err.println("check 2! " + peer.peerAddress());
View Full Code Here

Examples of net.tomp2p.nat.PeerNAT.peerMapUpdateInterval()

      /*
       * needed because failure of a node is detected with periodic
       * heartbeat and the routing table of the relay peers are also
       * updated periodically
       */
      Thread.sleep(uNat.peerMapUpdateInterval() * 1000);

      Assert.assertEquals(nrOfNeighbors - 3, getNeighbors(found).size());
      Assert.assertEquals(relayType.maxRelayCount(), frNAT.relays().size());
    } finally {
      if (unreachablePeer != null) {
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.