net.tomp2p.p2p
Class RoutingConfiguration
java.lang.Object
net.tomp2p.p2p.RoutingConfiguration
public class RoutingConfiguration
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoutingConfiguration
public RoutingConfiguration(int maxNoNewInfoDiff,
int maxFailures,
int parallel)
RoutingConfiguration
public RoutingConfiguration(int directHits,
int maxNoNewInfoDiff,
int maxFailures,
int parallel)
getDirectHits
public int getDirectHits()
getMaxNoNewInfoDiff
public int getMaxNoNewInfoDiff()
- This returns the difference to the min value of P2P configuration. We
need to have a difference, because we need to search at least for min
peers in the routing, as otherwise if we find the closest node by chance,
then we don't reach min.
- Returns:
getMaxNoNewInfo
public int getMaxNoNewInfo(int minimumResults)
getMaxFailures
public int getMaxFailures()
getParallel
public int getParallel()
Copyright © 2011. All Rights Reserved.