net.i2p.router.peermanager
Class CapacityCalculator
java.lang.Object
net.i2p.router.peermanager.Calculator
net.i2p.router.peermanager.CapacityCalculator
public class CapacityCalculator
- extends Calculator
Estimate how many of our tunnels the peer can join per hour.
Field Summary |
(package private) static long |
GROWTH_FACTOR
used to adjust each period so that we keep trying to expand the peer's capacity |
Method Summary |
double |
calc(PeerProfile profile)
Evaluate the profile according to the current metric |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GROWTH_FACTOR
static long GROWTH_FACTOR
- used to adjust each period so that we keep trying to expand the peer's capacity
CapacityCalculator
public CapacityCalculator(RouterContext context)
calc
public double calc(PeerProfile profile)
- Description copied from class:
Calculator
- Evaluate the profile according to the current metric
- Overrides:
calc
in class Calculator