Package net.i2p.router.web.helpers
Class SummaryHelper
java.lang.Object
net.i2p.router.web.HelperBase
net.i2p.router.web.helpers.SummaryHelper
Simple helper to query the appropriate router for data necessary to render
the summary sections on the router console.
For the full summary bar use renderSummaryBar()
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static class
State message to be displayed to the user in the summary bar. -
Field Summary
Modifier and TypeFieldDescription(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
Fields inherited from class net.i2p.router.web.HelperBase
_context, _out, CHECKED, PROP_ADVANCED, SELECTED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
allowReseedint
How many peers we are talking to nowint
How many active identities have we spoken with recentlyint
subtract one for ourselves, so if we know no other peers it displays zeroint
How many peers are banned.Client destinations connected locally.int
How many peers the router ranks as failing.int
How many active peers the router ranks as fast.The firewall status and reseed status/buttonsint
How many active peers the router ranks as having a high capacity.getIdent()
Retrieve the shortened 4 character ident for the router located within the current JVM at the given context.int
How many inbound client tunnels we have.How much data have we received since the router started (pretty printed string with 2 decimal places and the appropriate units - GB/MB/KB/bytes)int
How many free inbound tunnels we have.How lagged our job queue is over the last minute (pretty printed with the units attached)Retrieve amount of used memory.How long it takes us to pump out a message, averaged over the last minute (pretty printed with the units attached)int
How many active outbound client tunnels we have.How much data have we sent since the router started (pretty printed string with 2 decimal places and the appropriate units - GB/MB/KB/bytes)int
How many active outbound tunnels we have.int
How many tunnels we are participating in.The restart status and buttonsgetSummaryBarSections
(String page) How long it takes us to test our tunnels, averaged over the last 10 minutes (pretty printed with the units attached)The update status and buttonsRetrieve a pretty printed uptime count (ala 4d or 7h or 39m)Retrieve the version number of the router.int
How many active peers the router ranks as well integrated.void
output the summary bar to _out(package private) static void
saveSummaryBarSections
(RouterContext ctx, String page, Map<Integer, String> sections) void
void
void
void
boolean
Should we warn about a possible firewall problem?void
Methods inherited from class net.i2p.router.web.HelperBase
_t, _t, _t, _x, getChecked, isAdvanced, ngettext, setContextId, storeWriter
-
Field Details
-
THINSP
- See Also:
-
PROP_SUMMARYBAR
- See Also:
-
DEFAULT_FULL
- See Also:
-
DEFAULT_FULL_ADVANCED
- See Also:
-
DEFAULT_MINIMAL
- See Also:
-
DEFAULT_MINIMAL_ADVANCED
- Since:
- 0.9.32
- See Also:
-
-
Constructor Details
-
SummaryHelper
public SummaryHelper()
-
-
Method Details
-
getIdent
Retrieve the shortened 4 character ident for the router located within the current JVM at the given context. -
getVersion
Retrieve the version number of the router. -
getUptime
Retrieve a pretty printed uptime count (ala 4d or 7h or 39m) -
allowReseed
public boolean allowReseed()allowReseed -
getAllPeers
public int getAllPeers()subtract one for ourselves, so if we know no other peers it displays zero -
getReachability
-
getMemory
Retrieve amount of used memory.- Since:
- 0.9.32 uncommented
-
getMemoryBar
- Since:
- 0.9.32
-
getActivePeers
public int getActivePeers()How many peers we are talking to now -
showFirewallWarning
public boolean showFirewallWarning()Should we warn about a possible firewall problem? -
getActiveProfiles
public int getActiveProfiles()How many active identities have we spoken with recently -
getFastPeers
public int getFastPeers()How many active peers the router ranks as fast. -
getHighCapacityPeers
public int getHighCapacityPeers()How many active peers the router ranks as having a high capacity. -
getWellIntegratedPeers
public int getWellIntegratedPeers()How many active peers the router ranks as well integrated. -
getFailingPeers
public int getFailingPeers()How many peers the router ranks as failing.- Since:
- 0.9.32 uncommented
-
getBanlistedPeers
public int getBanlistedPeers()How many peers are banned.- Since:
- 0.9.32 uncommented
-
getSecondKBps
- Returns:
- "x.xx / y.yy {K|M}"
-
getFiveMinuteKBps
- Returns:
- "x.xx / y.yy {K|M}"
-
getLifetimeKBps
- Returns:
- "x.xx / y.yy {K|M}"
-
getInboundTransferred
How much data have we received since the router started (pretty printed string with 2 decimal places and the appropriate units - GB/MB/KB/bytes) -
getOutboundTransferred
How much data have we sent since the router started (pretty printed string with 2 decimal places and the appropriate units - GB/MB/KB/bytes) -
getDestinations
Client destinations connected locally.- Returns:
- html section summary
-
getInboundTunnels
public int getInboundTunnels()How many free inbound tunnels we have. -
getOutboundTunnels
public int getOutboundTunnels()How many active outbound tunnels we have. -
getInboundClientTunnels
public int getInboundClientTunnels()How many inbound client tunnels we have. -
getOutboundClientTunnels
public int getOutboundClientTunnels()How many active outbound client tunnels we have. -
getParticipatingTunnels
public int getParticipatingTunnels()How many tunnels we are participating in. -
getJobLag
How lagged our job queue is over the last minute (pretty printed with the units attached) -
getMessageDelay
How long it takes us to pump out a message, averaged over the last minute (pretty printed with the units attached) -
getTunnelLag
How long it takes us to test our tunnels, averaged over the last 10 minutes (pretty printed with the units attached) -
getTunnelStatus
-
getInboundBacklog
-
getUpdateStatus
The update status and buttons- Since:
- 0.8.13 moved from SummaryBarRenderer
-
getRestartStatus
The restart status and buttons- Since:
- 0.8.13 moved from SummaryBarRenderer
-
getFirewallAndReseedStatus
The firewall status and reseed status/buttons- Since:
- 0.9 moved from SummaryBarRenderer
-
storeNewsHelper
-
getNewsHelper
-
getSummaryBarSections
-
saveSummaryBarSections
-
renderSummaryBar
output the summary bar to _out- Throws:
IOException
-
setAction
-
getAction
-
setConsoleNonce
-
getConsoleNonce
-
setUpdateNonce
-
getUpdateNonce
-
setRequestURI
-
getRequestURI
- Returns:
- non-null; "/home" if (strangely) not set by jsp
-
getConfigTable
-