public class SidebarHelper extends HelperBase
| Modifier and Type | Class and Description |
|---|---|
static class |
SidebarHelper.NetworkState
Enumeration of network reachability state values.
|
static class |
SidebarHelper.NetworkStateMessage
State message to be displayed to the user in the summary bar.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) I2PAppContext |
ctx |
(package private) static String |
DEFAULT_FULL |
(package private) static String |
DEFAULT_FULL_ADVANCED |
(package private) static String |
DEFAULT_FULL_NEWUSER |
(package private) static String |
DEFAULT_MINIMAL |
(package private) static String |
DEFAULT_MINIMAL_ADVANCED |
(package private) String |
firstVersion |
(package private) static String |
PROP_SUMMARYBAR |
(package private) static String |
THINSP |
(package private) String |
version |
_context, _out, CHECKED, SELECTED| Constructor and Description |
|---|
SidebarHelper() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowReseed()
allowReseed
|
String |
getAction() |
int |
getActivePeers()
How many peers we are talking to now
|
int |
getActiveProfiles()
How many active identities have we spoken with recently
|
int |
getAllPeers()
subtract one for ourselves, so if we know no other peers it displays zero
|
String |
getAvgJobLag() |
int |
getAvgPeerTestTime() |
int |
getAvgPeerTestTimeGood() |
int |
getBanlistedPeers()
How many peers are banned.
|
String |
getConcurrency() |
String |
getConfigTable() |
String |
getConsoleNonce() |
String |
getCPUBar()
Render JVM CPU Load Bar
|
int |
getCPULoad()
Retrieve CPU Load as a percentage.
|
int |
getCPULoadAvg()
Retrieve CPU Load Average as a percentage.
|
String |
getDestinations()
Client destinations connected locally.
|
int |
getFastPeers()
How many active peers the router ranks as fast.
|
String |
getFirewallAndReseedStatus()
The firewall status and reseed status/buttons
|
String |
getFiveMinuteKBps() |
int |
getHighCapacityPeers()
How many active peers the router ranks as having a high capacity.
|
String |
getIdent()
Retrieve the shortened 4 character ident for the router located within
the current JVM at the given context.
|
String |
getInboundBacklog() |
int |
getInboundClientTunnels()
How many inbound client tunnels we have.
|
String |
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)
|
int |
getInboundTunnels()
How many free inbound tunnels we have.
|
String |
getJobLag()
How lagged our job queue is over the last minute (pretty printed with
the units attached)
|
String |
getLifetimeKBps() |
String |
getMaxParticipatingTunnels() |
String |
getMemory()
Retrieve amount of used memory.
|
String |
getMemoryBar() |
String |
getMessageDelay()
How long it takes us to pump out a message, averaged over the last minute
(pretty printed with the units attached)
|
NewsHelper |
getNewsHelper() |
int |
getOutboundClientTunnels()
How many active outbound client tunnels we have.
|
String |
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)
|
int |
getOutboundTunnels()
How many active outbound tunnels we have.
|
int |
getParticipatingTunnels()
How many tunnels we are participating in.
|
SidebarHelper.NetworkStateMessage |
getReachability() |
String |
getRequestURI() |
String |
getRestartStatus()
The restart status and buttons
|
String |
getSecondKBps() |
String |
getShareRatio() |
int |
getStoredRouterInfos() |
List<String> |
getSummaryBarSections(String page) |
int |
getSystemLoad()
Retrieve System Load Average as a percentage.
|
int |
getTunnelBuildSuccess()
Retrieve Tunnel build success as a percentage.
|
String |
getTunnelLag()
How long it takes us to test our tunnels, averaged over the last 10 minutes
(pretty printed with the units attached)
|
String |
getTunnelStatus() |
int |
getUnreachablePeers()
How many peers are unreachable.
|
String |
getUpdateNonce() |
String |
getUpdateStatus()
The update status and buttons
|
String |
getUptime()
Retrieve a pretty printed uptime count (ala 4d or 7h or 39m)
|
String |
getVersion()
Retrieve the version number of the router.
|
int |
getWellIntegratedPeers()
How many active peers the router ranks as well integrated.
|
boolean |
isAdvanced()
Check if advanced mode is enabled.
|
boolean |
isI2PTunnelRunning()
Are both the webapp and TCG running?
|
void |
renderSummaryBar()
output the summary bar to _out
|
(package private) static void |
saveSummaryBarSections(RouterContext ctx,
String page,
Map<Integer,String> sections) |
void |
setAction(String s) |
void |
setConsoleNonce(String s) |
void |
setRequestURI(String s) |
void |
setUpdateNonce(String s) |
boolean |
showFirewallWarning()
Should we warn about a possible firewall problem?
|
void |
storeNewsHelper(NewsHelper n) |
boolean |
unifiedSidebar() |
_t, _t, _t, _x, getChecked, getCheckedDefaultTrue, ngettext, setContextId, storeWriterI2PAppContext ctx
static final String DEFAULT_FULL
static final String DEFAULT_FULL_ADVANCED
static final String DEFAULT_FULL_NEWUSER
static final String DEFAULT_MINIMAL
static final String DEFAULT_MINIMAL_ADVANCED
String firstVersion
static final String PROP_SUMMARYBAR
static final String THINSP
String version
public boolean allowReseed()
public String getAction()
public int getActivePeers()
public int getActiveProfiles()
public int getAllPeers()
public String getAvgJobLag()
public int getAvgPeerTestTime()
public int getAvgPeerTestTimeGood()
public int getBanlistedPeers()
public String getConcurrency()
public String getConfigTable()
public String getConsoleNonce()
public String getCPUBar()
public int getCPULoad()
public int getCPULoadAvg()
public String getDestinations()
public int getFastPeers()
public String getFirewallAndReseedStatus()
public String getFiveMinuteKBps()
public int getHighCapacityPeers()
public String getIdent()
public String getInboundBacklog()
public int getInboundClientTunnels()
public String getInboundTransferred()
public int getInboundTunnels()
public String getJobLag()
public String getLifetimeKBps()
public String getMaxParticipatingTunnels()
public String getMemory()
public String getMemoryBar()
public String getMessageDelay()
public NewsHelper getNewsHelper()
public int getOutboundClientTunnels()
public String getOutboundTransferred()
public int getOutboundTunnels()
public int getParticipatingTunnels()
public SidebarHelper.NetworkStateMessage getReachability()
public String getRequestURI()
public String getRestartStatus()
public String getSecondKBps()
public String getShareRatio()
public int getStoredRouterInfos()
public int getSystemLoad()
public int getTunnelBuildSuccess()
public String getTunnelLag()
public String getTunnelStatus()
public int getUnreachablePeers()
public String getUpdateNonce()
public String getUpdateStatus()
public String getUptime()
public String getVersion()
public int getWellIntegratedPeers()
public boolean isAdvanced()
HelperBaseisAdvanced in class HelperBasepublic boolean isI2PTunnelRunning()
public void renderSummaryBar()
throws IOException
IOExceptionstatic void saveSummaryBarSections(RouterContext ctx, String page, Map<Integer,String> sections)
public void setAction(String s)
public void setConsoleNonce(String s)
public void setRequestURI(String s)
public void setUpdateNonce(String s)
public boolean showFirewallWarning()
public void storeNewsHelper(NewsHelper n)
public boolean unifiedSidebar()