Packages that use TunnelController
Package
Description
Implementation of preconfigured tunnels for clients and servers, including special-purpose tunnels for IRC, SOCKS, HTTP and streaming.
Public API classes for programmatic tunnel configuration and management, providing a stable API for external applications, including the Android client.
The I2PTunnel configuration web interface (i2ptunnel.war): servlets and helpers for creating and editing tunnels.
Helpers and handlers for the router console user interface, packaged in routerconsole.war and accessible only from JSP files.
Uses of TunnelController in net.i2p.i2ptunnel
Fields in net.i2p.i2ptunnel declared as TunnelControllerModifier and TypeFieldDescriptionprivate final TunnelControllerI2PTunnel._controllerThe controller that started the tunnel.Fields in net.i2p.i2ptunnel with type parameters of type TunnelControllerModifier and TypeFieldDescriptionprivate final List<TunnelController> TunnelControllerGroup._controllersThe client and server controllers.private final Map<I2PSession, Set<TunnelController>> TunnelControllerGroup._sessionsSession ownership map for preventing premature session close.Methods in net.i2p.i2ptunnel that return TunnelControllerModifier and TypeMethodDescription(package private) TunnelControllerI2PTunnel.getController()TunnelController that constructed this, or null.Methods in net.i2p.i2ptunnel that return types with arguments of type TunnelControllerModifier and TypeMethodDescriptionTunnelControllerGroup.getControllers()Retrieve a list of tunnels known.private List<TunnelController> TunnelControllerGroup.getControllers(File cfgFile) Retrieve a list of tunnels known.private List<TunnelController> TunnelControllerGroup.getDelayedServers()Collect the running server tunnels that have a shutdown delay.Methods in net.i2p.i2ptunnel with parameters of type TunnelControllerModifier and TypeMethodDescription(package private) voidTunnelControllerGroup.acquire(TunnelController controller, I2PSession session) Note the fact that the controller is using the session so that it isn't destroyed prematurely.voidTunnelControllerGroup.addController(TunnelController controller) Add the given tunnel to the set of known controllers (but don't add it to a config file or start it or anything).private FileTunnelControllerGroup.assureConfigFile(TunnelController tc) Return the config File associated with a TunnelController or a default File based on the tunnel name.(package private) voidTunnelControllerGroup.release(TunnelController controller, I2PSession session) Note the fact that the controller is no longer using the session, and if no other controllers are using it, destroy the session.voidTunnelControllerGroup.removeConfig(TunnelController tc) Remove the configuration of this tunnel only.TunnelControllerGroup.removeController(TunnelController controller) Stop and remove the given tunnel.voidTunnelControllerGroup.saveConfig(TunnelController tc) Save the configuration of this tunnel only, may be new.Method parameters in net.i2p.i2ptunnel with type arguments of type TunnelControllerModifier and TypeMethodDescriptionprivate voidTunnelControllerGroup.cleanupShutdown(List<TunnelController> stoppedServers) Stop the shutdown executor, restarting any servers that were stopped if the shutdown was cancelled.private voidTunnelControllerGroup.scheduleDelayedShutdowns(List<TunnelController> delayedServers, List<TunnelController> stoppedServers) Submit one shutdown task per delayed server, each waiting a random delay in the configured range before stopping its tunnel.Constructors in net.i2p.i2ptunnel with parameters of type TunnelControllerModifierConstructorDescriptionprivateI2PTunnel(String[] args, I2PTunnel.ConnectionEventListener lsnr, TunnelController tc) Creates the tunnel with its listener and controller.New standard constructor in router, with back ref to tc.Uses of TunnelController in net.i2p.i2ptunnel.ui
Methods in net.i2p.i2ptunnel.ui that return TunnelControllerModifier and TypeMethodDescriptionGeneralHelper.getController(int tunnel) Retrieve a tunnel controller by index.static TunnelControllerGeneralHelper.getController(TunnelControllerGroup tcg, int tunnel) Get the controller for the given tunnel index.private static TunnelControllerGeneralHelper.updateTunnelConfig(TunnelControllerGroup tcg, int tunnel, TunnelConfig config, List<String> msgs) Update the config and if shared, adjust and save the config of other shared clients.Methods in net.i2p.i2ptunnel.ui with parameters of type TunnelControllerModifier and TypeMethodDescriptionprivate static voidGeneralHelper.copySharedOptions(TunnelConfig fromConfig, Properties from, TunnelController to) Copy relevant options over.GeneralHelper.saveConfig(TunnelControllerGroup tcg, TunnelController cur) Save the configuration to disk.Uses of TunnelController in net.i2p.i2ptunnel.web
Methods in net.i2p.i2ptunnel.web that return TunnelControllerModifier and TypeMethodDescriptionprotected TunnelControllerIndexBean.getController(int tunnel) The controller for the given tunnel index.Uses of TunnelController in net.i2p.router.web.helpers
Method parameters in net.i2p.router.web.helpers with type arguments of type TunnelControllerModifier and TypeMethodDescriptionprivate voidStreamHelper.renderCombinedTable(Writer out, List<TunnelController> controllers, int inCount, long inSent, long inRecv, int outCount, long outSent, long outRecv) Render the combined table for the main page with inbound and outbound sections.private voidStreamHelper.renderTable(Writer out, List<TunnelController> controllers, boolean inbound, String peerHeader, int count, long totalSent, long totalReceived) Render a simple filtered table (single section, no section header).private voidStreamHelper.renderTableSection(Writer out, List<TunnelController> controllers, boolean inbound, String peerHeader, int count, long totalSent, long totalReceived) Render one thead (section header + column headers) + tbody for a direction.