Packages that use TunnelPoolSettings
Package
Description
The I2P router application handles I2P network communication.
Simplified fake implementations of router interfaces (comm system and friends) for testing and embedded builds.
Tunnel pool management: pool lifecycle, peer selection, build scheduling and failure handling for client and exploratory tunnels.
Helpers and handlers for the router console user interface, packaged in routerconsole.war and accessible only from JSP files.
Uses of TunnelPoolSettings in net.i2p.router
Fields in net.i2p.router declared as TunnelPoolSettingsModifier and TypeFieldDescriptionprivate final TunnelPoolSettingsClientTunnelSettings._inboundSettingsSettings for the client's inbound tunnels.private final TunnelPoolSettingsClientTunnelSettings._outboundSettingsSettings for the client's outbound tunnels.Methods in net.i2p.router that return TunnelPoolSettingsModifier and TypeMethodDescriptionClientTunnelSettings.getInboundSettings()Get the settings for the client's inbound tunnel pool.TunnelManagerFacade.getInboundSettings()The inbound settings for the exploratory pool.TunnelManagerFacade.getInboundSettings(Hash client) The inbound settings for the given client.ClientTunnelSettings.getOutboundSettings()Get the settings for the client's outbound tunnel pool.TunnelManagerFacade.getOutboundSettings()The outbound settings for the exploratory pool.TunnelManagerFacade.getOutboundSettings(Hash client) The outbound settings for the given client.Methods in net.i2p.router with parameters of type TunnelPoolSettingsModifier and TypeMethodDescriptionvoidTunnelManagerFacade.setInboundSettings(Hash client, TunnelPoolSettings settings) The inbound settings for the given client.voidTunnelManagerFacade.setInboundSettings(TunnelPoolSettings settings) The inbound settings for the exploratory pool.voidTunnelManagerFacade.setOutboundSettings(Hash client, TunnelPoolSettings settings) The outbound settings for the given client.voidTunnelManagerFacade.setOutboundSettings(TunnelPoolSettings settings) The outbound settings for the exploratory pool.Uses of TunnelPoolSettings in net.i2p.router.dummy
Methods in net.i2p.router.dummy that return TunnelPoolSettingsModifier and TypeMethodDescriptionDummyTunnelManagerFacade.getInboundSettings()DummyTunnelManagerFacade.getInboundSettings(Hash client) DummyTunnelManagerFacade.getOutboundSettings()DummyTunnelManagerFacade.getOutboundSettings(Hash client) Methods in net.i2p.router.dummy with parameters of type TunnelPoolSettingsModifier and TypeMethodDescriptionvoidDummyTunnelManagerFacade.setInboundSettings(Hash client, TunnelPoolSettings settings) voidDummyTunnelManagerFacade.setInboundSettings(TunnelPoolSettings settings) voidDummyTunnelManagerFacade.setOutboundSettings(Hash client, TunnelPoolSettings settings) voidDummyTunnelManagerFacade.setOutboundSettings(TunnelPoolSettings settings) Uses of TunnelPoolSettings in net.i2p.router.tunnel.pool
Fields in net.i2p.router.tunnel.pool declared as TunnelPoolSettingsModifier and TypeFieldDescriptionprivate TunnelPoolSettingsTunnelPool._settingsThe pool's current settings.Methods in net.i2p.router.tunnel.pool that return TunnelPoolSettingsModifier and TypeMethodDescriptionTunnelPoolManager.getInboundSettings()The inbound exploratory tunnel pool settings.TunnelPoolManager.getInboundSettings(Hash client) Get settings for a client's inbound tunnel pool.TunnelPoolManager.getOutboundSettings()The outbound exploratory tunnel pool settings.TunnelPoolManager.getOutboundSettings(Hash client) Get settings for a client's outbound tunnel pool.TunnelPool.getSettings()Pool settings.Methods in net.i2p.router.tunnel.pool with parameters of type TunnelPoolSettingsModifier and TypeMethodDescriptionClientPeerSelector.applyShortfallFallbacks(TunnelPoolSettings settings, List<Hash> rv, int length, ClientPeerSelector.SelectionParams params, ClientPeerSelector.SelectionExclusions ex) Progressive fallbacks when the selected peers are short of the requested length.ClientPeerSelector.buildExclusions(TunnelPoolSettings settings, boolean isInbound, double buildSuccess, int length) Build the lazy Excluder with client/shared cooldowns, first/last peer and pool diversity exclusions.ClientPeerSelector.computeSelectionParams(TunnelPoolSettings settings, int length, boolean isInbound) Compute the shared selection parameters: tier priority, closest-hop checks, hidden flags and the IP restriction.private PooledTunnelCreatorConfigTunnelPool.createConfig(TunnelPoolSettings settings, List<Hash> peers, long now, long expiration) Build the config with the given peers, endpoint first.(package private) static intBuildExecutor.effectiveTarget(RouterContext ctx, TunnelPoolSettings s, boolean keepConfiguredQuantity) Effective tunnel-count target a pool builds toward.private booleanTunnelPool.fastFailTbrTarget(TunnelPoolSettings settings, PooledTunnelCreatorConfig cfg) Fast-fail for outbound tunnels: skip this build cycle when the TBR target (cfg.getPeer(1)) is not connected and not connecting — the TBR is sent directly to this peer via transport.ClientPeerSelector.finalizeSelection(TunnelPoolSettings settings, List<Hash> rv, boolean isInbound) Insert self, ghost-filter, strategy post-processing, duplicate re-check, and cooldowns.static StringTunnelPool.formatPoolIdentity(TunnelPoolSettings settings) Format a pool identity for log messages, combining nickname and truncated hash.protected intTunnelPeerSelector.getLength(TunnelPoolSettings settings) Determine the tunnel length (number of hops).protected booleanTunnelPeerSelector.isDuplicateSequence(TunnelPoolSettings settings, List<Hash> newPeers) Check if the selected peer sequence matches an existing tunnel in the pool.protected static booleanTunnelPeerSelector.isZeroHopSettings(TunnelPoolSettings settings) True if the settings describe a zero-hop pair: length <= 0, length override == 0, or length + variance <= 0.private voidTunnelPool.logSelectPeersFailure(TunnelPoolSettings settings) Warn when the peer selector found nothing for a new tunnel, naming the destination.(package private) static intClientPeerSelector.minRequestedLength(TunnelPoolSettings settings) Smallest tunnel the pool will accept: the configured length minus any negative variance, never below zero.TunnelPeerSelector.regeneratePeers(TunnelPoolSettings settings, List<Hash> peers, int attempt) Regenerate tunnel peers to avoid duplicate sequence.TunnelPeerSelector.selectExplicit(TunnelPoolSettings settings, int length) For debugging, also possibly for restricted routes.ClientPeerSelector.selectHops(TunnelPoolSettings settings, int length, ClientPeerSelector.SelectionParams params, ClientPeerSelector.SelectionExclusions ex) Single-hop or multi-hop selection for one tunnel length.ClientPeerSelector.selectHopsWithRetry(TunnelPoolSettings settings, int length, ClientPeerSelector.SelectionParams params, ClientPeerSelector.SelectionExclusions ex) Draws every hop, drops unsuitable peers (ghost and banlisted), and redraws once from a fresh exclusion set when filtering emptied the selection.private booleanClientPeerSelector.selectLastHop(TunnelPoolSettings settings, int length, ClientPeerSelector.SelectionParams params, SessionKey randomKey, Set<Hash> lastHopExclude, Set<Hash> rawExclude, ArraySet<Hash> matches) Select the last hop (hidden-inbound closest hop, hidden-outbound OBEP, or normal OBEP).ClientPeerSelector.selectMultiHop(TunnelPoolSettings settings, int length, ClientPeerSelector.SelectionParams params, ClientPeerSelector.SelectionExclusions ex, ArraySet<Hash> matches) Select all hops of a multi-hop tunnel: last hop, middle hops, then first hop.ClientPeerSelector.selectPeers(TunnelPoolSettings settings) Returns ENDPOINT FIRST, GATEWAY LAST!!!! In: us ..ClientPeerSelector.selectPeers(TunnelPoolSettings settings, Set<Hash> excludeFirstHops) Select peers for a new tunnel, excluding given peers from first-hop selection.ExploratoryPeerSelector.selectPeers(TunnelPoolSettings settings) Returns ENDPOINT FIRST, GATEWAY LAST!!!! In: us ..TunnelPeerSelector.selectPeers(TunnelPoolSettings settings) Which peers should go into the next tunnel for the given settings?TunnelPeerSelector.selectPeers(TunnelPoolSettings settings, Set<Hash> excludeFirstHops) Select peers for a new tunnel, with an optional set of first-hop peers to exclude from selection.ClientPeerSelector.selectPeersBase(TunnelPoolSettings settings) Select peers for a new tunnel.ExploratoryPeerSelector.selectPeersInternal(TunnelPoolSettings settings, int length, boolean includeCooldowns) The actual peer selection, shared between the normal path and the cooldown-bypass retry inExploratoryPeerSelector.selectPeers(TunnelPoolSettings).ExploratoryPeerSelector.selectPeersInternal(TunnelPoolSettings settings, int length, boolean includeCooldowns, Set<Hash> alsoExclude) Select peers, additionally excluding a set the caller has decided on.ClientPeerSelector.selectSingleHop(TunnelPoolSettings settings, int length, ClientPeerSelector.SelectionParams params, ClientPeerSelector.SelectionExclusions ex, ArraySet<Hash> matches) Select the single hop of a 1-hop tunnel (with hidden-inbound special case).voidTunnelPoolManager.setInboundSettings(Hash client, TunnelPoolSettings settings) Set settings for a client's inbound tunnel pool.voidTunnelPoolManager.setInboundSettings(TunnelPoolSettings settings) The inbound exploratory tunnel pool settings.voidTunnelPoolManager.setOutboundSettings(Hash client, TunnelPoolSettings settings) Set settings for a client's outbound tunnel pool.voidTunnelPoolManager.setOutboundSettings(TunnelPoolSettings settings) The outbound exploratory tunnel pool settings.(package private) voidTunnelPool.setSettings(TunnelPoolSettings settings) Update the settings for this pool.private static voidTunnelPoolManager.setSettings(Map<Hash, TunnelPool> pools, Hash client, TunnelPoolSettings settings) Applies settings to one client's pools.protected booleanTunnelPeerSelector.shouldSelectExplicit(TunnelPoolSettings settings) For debugging, also possibly for restricted routes? Needs analysis and testing.Constructors in net.i2p.router.tunnel.pool with parameters of type TunnelPoolSettingsModifierConstructorDescription(package private)AliasedTunnelPool(RouterContext ctx, TunnelPoolManager mgr, TunnelPoolSettings settings, TunnelPool aliasOf) Create an aliased tunnel pool.(package private)TunnelPool(RouterContext ctx, TunnelPoolManager mgr, TunnelPoolSettings settings, TunnelPeerSelector sel) Tunnel pool.Uses of TunnelPoolSettings in net.i2p.router.web.helpers
Classes in net.i2p.router.web.helpers that implement interfaces with type arguments of type TunnelPoolSettingsModifier and TypeClassDescriptionprivate classSort tunnels by the name of the tunnel.Methods in net.i2p.router.web.helpers with parameters of type TunnelPoolSettingsModifier and TypeMethodDescriptionintConfigTunnelsHelper.TPComparator.compare(TunnelPoolSettings l, TunnelPoolSettings r) private StringConfigTunnelsHelper.getTunnelName(TunnelPoolSettings ins) Get display name for the tunnel.private voidConfigTunnelsHelper.renderForm(StringBuilder buf, int index, String prefix, String name, TunnelPoolSettings in, TunnelPoolSettings out) Renders the tuning form for one tunnel.