Examples of peerAddresses()


Examples of net.tomp2p.message.TrackerData.peerAddresses()

          if (!isFull) {
            successAsked.add(futureResponse.request().recipient());
          }
          TrackerData newDataMap = futureResponse.responseMessage().trackerData(0);
          if (newDataMap != null) {
            Collection<PeerStatistic> newPeers = newDataMap.peerAddresses().keySet();
            mergeDiff(secondaryQueue, newPeers, alreadyAsked, queueToAsk);
            storeResult(peerOnTracker, newDataMap, futureResponse.request().recipient(), knownPeers);
            for(PeerStatistic peerStatatistic:newPeers) {
              secondaryQueue.add(peerStatatistic.peerAddress());
            }
View Full Code Here

Examples of net.tomp2p.message.TrackerData.peerAddresses()

      Number320 key = Utils.pollRandom(keys, rnd);
      TrackerData trackerData = trackerStorage.peers(key);
      if (trackerData == null) {
        return null;
      }
      Collection<PeerStatistic> peerStatatistics = trackerData.peerAddresses().keySet();
      if (peerStatatistics == null || peerStatatistics.size() == 0) {
        return null;
      }
      peerStatatistics.remove(new PeerStatistic(self));
      if (peerStatatistics.size() == 0) {
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.