net.tomp2p.p2p
Class Statistics

java.lang.Object
  extended by net.tomp2p.p2p.Statistics

public class Statistics
extends Object


Constructor Summary
Statistics(List<Map<Number160,PeerAddress>> peerMap, Number160 remotePeer, int maxSize, int bagSize)
           
 
Method Summary
 double getAvgGap()
           
 double getEstimatedNumberOfNodes()
           
static void tooClose(Collection<PeerAddress> collection)
           
 void triggerStatUpdate(boolean insert, int currentSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Statistics

public Statistics(List<Map<Number160,PeerAddress>> peerMap,
                  Number160 remotePeer,
                  int maxSize,
                  int bagSize)
Method Detail

triggerStatUpdate

public void triggerStatUpdate(boolean insert,
                              int currentSize)

getEstimatedNumberOfNodes

public double getEstimatedNumberOfNodes()

getAvgGap

public double getAvgGap()

tooClose

public static void tooClose(Collection<PeerAddress> collection)


Copyright © 2011. All Rights Reserved.