Examples of trackers()


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

            FutureTracker ft1 = nodes[299].getTracker(trackerID).domainKey(Number160.createHash("test"))
                    .routingConfiguration(rc).trackerConfiguration(tc)
                    .evaluatingScheme(new VotingSchemeTracker()).start();
            ft1.awaitUninterruptibly();
            Assert.assertEquals(true, ft1.isSuccess());
            for (TrackerData pa : ft1.trackers()) {
                for (PeerStatistic pas : pa.peerAddresses().keySet()) {
                    System.err.println("found on DHT1: " + pas.peerAddress().peerId());
                    tmp.remove(pas.peerAddress().peerId());
                }
            }
View Full Code Here

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

                    .evaluatingScheme(new VotingSchemeTracker()).knownPeers(ft1.knownPeers())
                    .start();
            ft2.awaitUninterruptibly();
            System.err.println("Reason: " + ft2.failedReason());
            Assert.assertEquals(true, ft2.isSuccess());
            for (TrackerData pa : ft2.trackers()) {
                for (PeerStatistic pas : pa.peerAddresses().keySet()) {
                    if (tmp.remove(pas.peerAddress().peerId()))
                        System.err.println("found on DHT2: " + pas.peerAddress().peerId());
                }
            }
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.