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
 void decrementTCPChannelCreation()
           
 void decrementUDPChannelCreation()
           
 double getAvgGap()
           
 double getEstimatedNumberOfNodes()
           
 long getTCPChannelCount()
           
 long getTCPChannelCreationCount()
           
 long getUDPChannelCount()
           
 long getUDPChannelCreationCount()
           
 void incrementTCPChannelCreation()
           
 void incrementUDPChannelCreation()
           
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)

incrementTCPChannelCreation

public void incrementTCPChannelCreation()

incrementUDPChannelCreation

public void incrementUDPChannelCreation()

decrementTCPChannelCreation

public void decrementTCPChannelCreation()

decrementUDPChannelCreation

public void decrementUDPChannelCreation()

getTCPChannelCreationCount

public long getTCPChannelCreationCount()

getUDPChannelCreationCount

public long getUDPChannelCreationCount()

getTCPChannelCount

public long getTCPChannelCount()

getUDPChannelCount

public long getUDPChannelCount()


Copyright © 2013. All Rights Reserved.