net.i2p.router.peermanager
Class IsFailingCalculator

java.lang.Object
  extended by net.i2p.router.peermanager.Calculator
      extended by net.i2p.router.peermanager.IsFailingCalculator

public class IsFailingCalculator
extends Calculator

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

IsFailingCalculator

public IsFailingCalculator(RouterContext context)
Method Detail

calcBoolean

public boolean calcBoolean(PeerProfile profile)
Description copied from class: Calculator
Evaluate the profile according to the current metric

Overrides:
calcBoolean in class Calculator