|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.peermanager.Calculator
net.i2p.router.peermanager.IsFailingCalculator
public class IsFailingCalculator
Simple boolean calculation to determine whether the given profile is "failing" - meaning we shouldn't bother trying to get them to do something. However, if we have a specific need to contact them in particular - e.g. instructions in a garlic or leaseSet - we will try. The currently implemented algorithm determines that a profile is failing if withing the last few minutes, they've done something bad:
Constructor Summary | |
---|---|
IsFailingCalculator(RouterContext context)
|
Method Summary | |
---|---|
boolean |
calcBoolean(PeerProfile profile)
Evaluate the profile according to the current metric |
Methods inherited from class net.i2p.router.peermanager.Calculator |
---|
calc |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IsFailingCalculator(RouterContext context)
Method Detail |
---|
public boolean calcBoolean(PeerProfile profile)
Calculator
calcBoolean
in class Calculator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |