Package freenet.node.NodeStats

Examples of freenet.node.NodeStats.RunningRequestsSnapshot.calculate()


      return new IncomingLoadSummaryStats(runningRequests.totalRequests(),
          loadStats.outputBandwidthPeerLimit, loadStats.inputBandwidthPeerLimit,
          loadStats.outputBandwidthUpperLimit, loadStats.inputBandwidthUpperLimit,
          runningRequests.calculate(ignoreLocalVsRemoteBandwidthLiability, false),
          runningRequests.calculate(ignoreLocalVsRemoteBandwidthLiability, true),
          otherRunningRequests.calculate(ignoreLocalVsRemoteBandwidthLiability, false),
          otherRunningRequests.calculate(ignoreLocalVsRemoteBandwidthLiability, true));
    }
   
    /** Can we route the tag to this peer? If so (including if we are accepting because
     * we don't have any load stats), and we haven't already, addRoutedTo() and return
View Full Code Here


          loadStats.outputBandwidthPeerLimit, loadStats.inputBandwidthPeerLimit,
          loadStats.outputBandwidthUpperLimit, loadStats.inputBandwidthUpperLimit,
          runningRequests.calculate(ignoreLocalVsRemoteBandwidthLiability, false),
          runningRequests.calculate(ignoreLocalVsRemoteBandwidthLiability, true),
          otherRunningRequests.calculate(ignoreLocalVsRemoteBandwidthLiability, false),
          otherRunningRequests.calculate(ignoreLocalVsRemoteBandwidthLiability, true));
    }
   
    /** Can we route the tag to this peer? If so (including if we are accepting because
     * we don't have any load stats), and we haven't already, addRoutedTo() and return
     * the accepted state. Otherwise return null. */
 
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.