source: apps/routerconsole/jsp/summary.jsp @ 825af3e

Last change on this file since 825af3e was 825af3e, checked in by zzz <zzz@…>, 13 years ago
  • HarvesterJob?: Don't instantiate if disabled
  • NetDb?: Add netDb.exploreKeySet stat
  • netdb.jsp: Add parameter ?r=xxxxxx to view a single routerinfo, and ?r=. to view our own; change links on other pages too
  • Property mode set to 100644
File size: 6.2 KB
Line 
1<%@page import="net.i2p.router.web.SummaryHelper" %>
2<jsp:useBean class="net.i2p.router.web.SummaryHelper" id="helper" scope="request" />
3<jsp:setProperty name="helper" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
4
5<jsp:useBean class="net.i2p.router.web.ReseedHandler" id="reseed" scope="request" />
6<jsp:setProperty name="reseed" property="*" />
7<jsp:useBean class="net.i2p.router.web.UpdateHandler" id="update" scope="request" />
8<jsp:setProperty name="update" property="*" />
9<jsp:setProperty name="update" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
10
11<div class="routersummary">
12 <u><b>General</b></u><br />
13 <b>Ident:</b> (<a title="Your router identity is <jsp:getProperty name="helper" property="ident" />, never reveal it to anyone" href="netdb.jsp?r=.">view</a>)<br />
14 <b>Version:</b> <jsp:getProperty name="helper" property="version" /><br />
15 <b>Uptime:</b> <jsp:getProperty name="helper" property="uptime" /><br />
16 <b>Now:</b> <jsp:getProperty name="helper" property="time" /><br />
17 <b>Reachability:</b> <a href="config.jsp"><jsp:getProperty name="helper" property="reachability" /></a><%
18    if (helper.updateAvailable()) {
19        // display all the time so we display the final failure message
20        out.print("<br />" + update.getStatus());
21        if ("true".equals(System.getProperty("net.i2p.router.web.UpdateHandler.updateInProgress", "false"))) {
22        } else {
23            long nonce = new java.util.Random().nextLong();
24            String prev = System.getProperty("net.i2p.router.web.UpdateHandler.nonce");
25            if (prev != null) System.setProperty("net.i2p.router.web.UpdateHandler.noncePrev", prev);
26            System.setProperty("net.i2p.router.web.UpdateHandler.nonce", nonce+"");
27            String uri = request.getRequestURI();
28            if (uri.indexOf('?') > 0)
29                uri = uri + "&updateNonce=" + nonce;
30            else
31                uri = uri + "?updateNonce=" + nonce;
32            out.print("<br /><a href=\"" + uri + "\">Update available</a>");
33        }
34    }
35 %>
36 <br /><%=net.i2p.router.web.ConfigRestartBean.renderStatus(request.getRequestURI(), request.getParameter("action"), request.getParameter("consoleNonce"))%>
37 <hr />
38 
39 <u><b><a href="peers.jsp">Peers</a></b></u><br />
40 <b>Active:</b> <jsp:getProperty name="helper" property="activePeers" />/<jsp:getProperty name="helper" property="activeProfiles" /><br />
41 <b>Fast:</b> <jsp:getProperty name="helper" property="fastPeers" /><br />
42 <b>High capacity:</b> <jsp:getProperty name="helper" property="highCapacityPeers" /><br />
43 <b>Well integrated:</b> <jsp:getProperty name="helper" property="wellIntegratedPeers" /><br />
44 <b>Failing:</b> <jsp:getProperty name="helper" property="failingPeers" /><br />
45 <!-- <b>Shitlisted:</b> <jsp:getProperty name="helper" property="shitlistedPeers" /><br /> -->
46 <b>Known:</b> <jsp:getProperty name="helper" property="allPeers" /><br /><%
47    if (helper.getActivePeers() <= 0) {
48        %><b><a href="config.jsp">check your NAT/firewall</a></b><br /><%
49    }
50    // If showing the reseed link is allowed
51    if (helper.allowReseed()) {
52        if ("true".equals(System.getProperty("net.i2p.router.web.ReseedHandler.reseedInProgress", "false"))) {
53            // While reseed occurring, show status message instead
54            out.print("<i>" + System.getProperty("net.i2p.router.web.ReseedHandler.statusMessage","") + "</i><br />");
55        } else {
56            // While no reseed occurring, show reseed link
57            long nonce = new java.util.Random().nextLong();
58            String prev = System.getProperty("net.i2p.router.web.ReseedHandler.nonce");
59            if (prev != null) System.setProperty("net.i2p.router.web.ReseedHandler.noncePrev", prev);
60            System.setProperty("net.i2p.router.web.ReseedHandler.nonce", nonce+"");
61            String uri = request.getRequestURI();
62            if (uri.indexOf('?') > 0)
63                uri = uri + "&reseedNonce=" + nonce;
64            else
65                uri = uri + "?reseedNonce=" + nonce;
66            out.print(" <a href=\"" + uri + "\">reseed</a><br />");
67        }
68    }
69    // If a new reseed ain't running, and the last reseed had errors, show error message
70    if ("false".equals(System.getProperty("net.i2p.router.web.ReseedHandler.reseedInProgress", "false"))) {
71        String reseedErrorMessage = System.getProperty("net.i2p.router.web.ReseedHandler.errorMessage","");
72        if (reseedErrorMessage.length() > 0) {
73            out.print("<i>" + reseedErrorMessage + "</i><br />");
74        }
75    }
76 %><hr />
77 
78 <u><b><a href="config.jsp" title="Configure the bandwidth limits">Bandwidth in/out</a></b></u><br />
79 <b>1s:</b> <jsp:getProperty name="helper" property="inboundSecondKBps" />/<jsp:getProperty name="helper" property="outboundSecondKBps" />KBps<br />
80 <b>5m:</b> <jsp:getProperty name="helper" property="inboundFiveMinuteKBps" />/<jsp:getProperty name="helper" property="outboundFiveMinuteKBps" />KBps<br />
81 <b>Total:</b> <jsp:getProperty name="helper" property="inboundLifetimeKBps" />/<jsp:getProperty name="helper" property="outboundLifetimeKBps" />KBps<br />
82 <b>Used:</b> <jsp:getProperty name="helper" property="inboundTransferred" />/<jsp:getProperty name="helper" property="outboundTransferred" /><br />
83 <hr />
84 
85 <jsp:getProperty name="helper" property="destinations" />
86 
87 <u><b>Tunnels in/out</b></u><br />
88 <b>Exploratory:</b> <jsp:getProperty name="helper" property="inboundTunnels" />/<jsp:getProperty name="helper" property="outboundTunnels" /><br />
89 <b>Client:</b> <jsp:getProperty name="helper" property="inboundClientTunnels" />/<jsp:getProperty name="helper" property="outboundClientTunnels" /><br />
90 <b>Participating:</b> <jsp:getProperty name="helper" property="participatingTunnels" /><br />
91 <hr />
92 
93 <u><b>Congestion</b></u><br />
94 <b>Job lag:</b> <jsp:getProperty name="helper" property="jobLag" /><br />
95 <b>Message delay:</b> <jsp:getProperty name="helper" property="messageDelay" /><br />
96 <b>Tunnel lag:</b> <jsp:getProperty name="helper" property="tunnelLag" /><br />
97 <b>Handle backlog:</b> <jsp:getProperty name="helper" property="inboundBacklog" /><br />
98 <b>PRNG wait/fill:</b> <jsp:getProperty name="helper" property="PRNGStatus" /><br />
99 <b><jsp:getProperty name="helper" property="tunnelStatus" /></b><br />
100 <hr />
101 
102</div>
Note: See TracBrowser for help on using the repository browser.