java.lang.Object
net.i2p.router.peermanager.IntegrationCalculator
Determine how well integrated a peer is - how likely they will be useful to us if we are trying to get further connected.
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateUtility class, not intended for instantiation.Method Summary
All MethodsModifier and TypeMethodDescriptionstatic doublecalc(PeerProfile profile) How well integrated the peer is, as a weighted count of recent db introductions plus the integration bonus.
Constructor Details
IntegrationCalculator
private IntegrationCalculator()Utility class, not intended for instantiation.
Method Details
calc
How well integrated the peer is, as a weighted count of recent db introductions plus the integration bonus.- Parameters:
profile- the peer whose integration is measured- Returns:
- a non-negative score; higher means more useful as a DB peer