<%@page contentType="text/html"%> <%@page trimDirectiveWhitespaces="true"%> <%@page pageEncoding="UTF-8"%> <% /* * Do not tag this file for translation. */ %> I2P Router Console - Debug <%@include file="css.jsi" %> <%@include file="summaryajax.jsi" %> <%@include file="summary.jsi" %>

Router Debug

Port Mapper App Manager Update Manager Session Key Manager Router DHT
<% /* * Quick and easy place to put debugging stuff */ net.i2p.router.RouterContext ctx = (net.i2p.router.RouterContext) net.i2p.I2PAppContext.getGlobalContext(); /* * Print out the status for the PortMapper */ ctx.portMapper().renderStatusHTML(out); /* * Print out the status for the InternalServerSockets */ net.i2p.util.InternalServerSocket.renderStatusHTML(out); /* * Print out the status for the AppManager */ out.print("
"); ctx.routerAppManager().renderStatusHTML(out); out.print("
"); /* * Print out the status for the UpdateManager */ out.print("
"); net.i2p.app.ClientAppManager cmgr = ctx.clientAppManager(); if (cmgr != null) { net.i2p.router.update.ConsoleUpdateManager umgr = (net.i2p.router.update.ConsoleUpdateManager) cmgr.getRegisteredApp(net.i2p.update.UpdateManager.APP_NAME); if (umgr != null) { umgr.renderStatusHTML(out); } out.print("
"); } /* * Print out the status for all the SessionKeyManagers */ out.print("
"); out.print("

Router Session Key Manager

"); ctx.sessionKeyManager().renderStatusHTML(out); java.util.Set clients = ctx.clientManager().listClients(); out.print("
"); for (net.i2p.data.Destination dest : clients) { net.i2p.data.Hash h = dest.calculateHash(); net.i2p.crypto.SessionKeyManager skm = ctx.clientManager().getClientSessionKeyManager(h); if (skm != null) { out.print("
"); out.print("

" + dest.toBase32() + " Session Key Manager

"); skm.renderStatusHTML(out); out.print("
"); } } /* * Print out the status for the NetDB */ out.print("

Router DHT

"); ctx.netDb().renderStatusHTML(out); %>