Packages that use HopConfig
Package
Description
The I2P router application handles I2P network communication.
Tunnel messages and the tunnel layer: the
TunnelManagerFacade, tunnel build request and reply processing, and the inbound and outbound tunnel structures. 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 HopConfig in net.i2p.router
Methods in net.i2p.router with parameters of type HopConfigModifier and TypeMethodDescriptionvoidMessageHistory.tunnelJoined(String state, HopConfig tunnel) The local router has joined the given tunnel operating in the given state.Uses of HopConfig in net.i2p.router.tunnel
Fields in net.i2p.router.tunnel declared as HopConfigModifier and TypeFieldDescriptionprotected final HopConfigHopProcessor._configConfig for this hop, holding the IV and layer keys and the expected previous hop.private final HopConfigInboundGatewayReceiver._configThe hop config of this gateway.private final HopConfigOutboundTunnelEndpoint._configThe hop configuration of our tunnel.private final HopConfigThrottledPumpedTunnelGateway._configConfiguration and statistics for this hop, used to count dropped messages.private final HopConfig[]TunnelCreatorConfig._configGateway first.private final HopConfigTunnelParticipant._configThe hop configuration of our tunnel.protected final HopConfigBatchedRouterPreprocessor._hopConfigThe hop config for inbound gateways.Fields in net.i2p.router.tunnel with type parameters of type HopConfigModifier and TypeFieldDescriptionprivate final ConcurrentLinkedQueue<HopConfig> TunnelDispatcher.LeaveTunnel._configsThe hop configs to remove.TunnelDispatcher._configsBeingRemovedConfigs currently being removed - prevents duplicate removal calls.private final ConcurrentHashMap<TunnelId, HopConfig> TunnelDispatcher._participatingConfigConfigurations for tunnels we are participating in but not creating.Methods in net.i2p.router.tunnel that return HopConfigModifier and TypeMethodDescriptionTunnelCreatorConfig.getConfig(int hop) Retrieve the config for the given hop.Methods in net.i2p.router.tunnel that return types with arguments of type HopConfigModifier and TypeMethodDescriptionTunnelDispatcher.expiredConfigs(Collection<HopConfig> configs, long now) The queued configs whose expiration, plus the expiry fudge, has already passed.TunnelDispatcher.LeaveTunnel.getConfigs()Returns the queued hop configs.TunnelDispatcher.listParticipatingTunnels()The participating tunnels for console display.Methods in net.i2p.router.tunnel with parameters of type HopConfigModifier and TypeMethodDescriptionvoidQueues one hop to remove.private TunnelGateway.QueuePreprocessorTunnelDispatcher.createPreprocessor(HopConfig cfg) Create a preprocessor for an inbound tunnel gateway.(package private) static voidOutboundGatewayProcessor.decrypt(I2PAppContext ctx, byte[] orig, int offset, int length, HopConfig config) Undo the crypto for a single hop.private static StringNames a hop for the log.booleanTunnelDispatcher.joinInboundGateway(HopConfig cfg) We are the inbound gateway in this tunnel, and did not create it.booleanTunnelDispatcher.joinOutboundEndpoint(HopConfig cfg) We are the outbound endpoint in this tunnel, and did not create it.booleanTunnelDispatcher.joinParticipant(HopConfig cfg) We are a participant in this tunnel, but not as the endpoint or gateway.voidDequeues one hop config.voidRemove a tunnel we're participating in.private voidTunnelParticipant.send(HopConfig config, TunnelDataMessage msg, RouterInfo ri) Forward a tunnel message to the next hop.Method parameters in net.i2p.router.tunnel with type arguments of type HopConfigModifier and TypeMethodDescriptionTunnelDispatcher.expiredConfigs(Collection<HopConfig> configs, long now) The queued configs whose expiration, plus the expiry fudge, has already passed.Constructors in net.i2p.router.tunnel with parameters of type HopConfigModifierConstructorDescriptionBatchedRouterPreprocessor(RouterContext ctx, HopConfig cfg) Create a preprocessor for inbound gateway tunnels.HopProcessor(I2PAppContext ctx, HopConfig config, IVValidator validator) Create a processor for a single hop of a tunnel.InboundGatewayProcessor(I2PAppContext ctx, HopConfig config) Passes the config on with a validator that accepts every message.InboundGatewayReceiver(RouterContext ctx, HopConfig cfg) Binds the router context and hop configuration.InboundSender(I2PAppContext ctx, HopConfig config) Binds the given context and hop config for the inbound gateway.OutboundTunnelEndpoint(RouterContext ctx, HopConfig config, HopProcessor processor) Binds the context, config, and processor, sizing the RED queue to the allocated bandwidth.ThrottledPumpedTunnelGateway(RouterContext context, TunnelGateway.QueuePreprocessor preprocessor, TunnelGateway.Sender sender, TunnelGateway.Receiver receiver, TunnelGatewayPumper pumper, HopConfig config) A pump-driven gateway that drops excess messages based on estimated bandwidth.TunnelParticipant(RouterContext ctx, HopConfig config, HopProcessor processor) For intermediate tunnel participant (not endpoint).privateTunnelParticipant(RouterContext ctx, HopConfig config, HopProcessor processor, InboundEndpointProcessor inEndProc) Internal constructor shared by all variants.Uses of HopConfig in net.i2p.router.tunnel.pool
Fields in net.i2p.router.tunnel.pool declared as HopConfigModifier and TypeFieldDescriptionprivate final HopConfigBuildHandler.TunnelBuildNextHopFailJob._cfgThe hop whose build failed.Methods in net.i2p.router.tunnel.pool with parameters of type HopConfigModifier and TypeMethodDescription(package private) voidIdleTunnelMonitor.dropTunnel(HopConfig tunnel) Drop an idle tunnel by removing it from the dispatcher.private HashIdleTunnelMonitor.getPeerHash(HopConfig tunnel) The peer hash for a tunnel - this is the "entry point" peer who first introduced this tunnel to us (IBGW or closest hop to IBGW).Constructors in net.i2p.router.tunnel.pool with parameters of type HopConfigModifierConstructorDescriptionprivateTunnelBuildNextHopFailJob(RouterContext ctx, HopConfig cfg) Creates the job reporting a next-hop failure.Uses of HopConfig in net.i2p.router.web.helpers
Classes in net.i2p.router.web.helpers that implement interfaces with type arguments of type HopConfigModifier and TypeClassDescriptionprivate static classSorts tunnels by hop configuration.private static classOrder participating tunnels by throughput, fastest first.Methods in net.i2p.router.web.helpers with parameters of type HopConfig