Package net.tomp2p.peers

Examples of net.tomp2p.peers.DefaultPeerFilter


    for (int j = 1; j < 20; j++) {
      int nr = 100000 * j;
      PeerMapConfiguration conf = new PeerMapConfiguration(ID);
      conf.bagSizeVerified(20).bagSizeOverflow(20);
      conf.offlineCount(1000).offlineTimeout(60);
      conf.addPeerFilter(new DefaultPeerFilter()).maintenance(new DefaultMaintenance(0, new int[] {}));
      PeerMap peerMap = new PeerMap(conf);

      Statistics statistics = new Statistics(peerMap);
      for (int i = 0; i < nr; i++) {
        PeerAddress pa = Utils2.createAddress(new Number160(rnd));
View Full Code Here

TOP

Related Classes of net.tomp2p.peers.DefaultPeerFilter

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.