public class SummaryHelper extends HelperBase
Modifier and Type | Field and Description |
---|---|
(package private) static String |
DEFAULT_FULL |
(package private) static String |
DEFAULT_MINIMAL |
(package private) static String |
PROP_SUMMARYBAR |
(package private) static String |
THINSP |
_context, _out, CHECKED, PROP_ADVANCED
Constructor and Description |
---|
SummaryHelper() |
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 |
getConfigTable() |
String |
getConsoleNonce() |
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 |
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.
|
String |
getReachability() |
String |
getRequestURI() |
String |
getRestartStatus()
The restart status and buttons
|
String |
getSecondKBps() |
String |
getShareRatio() |
List<String> |
getSummaryBarSections(String page) |
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() |
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.
|
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) |
_t, _t, _t, _x, getChecked, isAdvanced, ngettext, setContextId, storeWriter
static final String THINSP
static final String PROP_SUMMARYBAR
static final String DEFAULT_FULL
static final String DEFAULT_MINIMAL
public String getIdent()
public String getVersion()
public String getUptime()
public boolean allowReseed()
public int getAllPeers()
public String getReachability()
public int getActivePeers()
public boolean showFirewallWarning()
public int getActiveProfiles()
public int getFastPeers()
public int getHighCapacityPeers()
public int getWellIntegratedPeers()
public String getSecondKBps()
public String getFiveMinuteKBps()
public String getLifetimeKBps()
public String getInboundTransferred()
public String getOutboundTransferred()
public String getDestinations()
public int getInboundTunnels()
public int getOutboundTunnels()
public int getInboundClientTunnels()
public int getOutboundClientTunnels()
public int getParticipatingTunnels()
public String getShareRatio()
public String getJobLag()
public String getMessageDelay()
public String getTunnelLag()
public String getTunnelStatus()
public String getInboundBacklog()
public String getUpdateStatus()
public String getRestartStatus()
public String getFirewallAndReseedStatus()
public void storeNewsHelper(NewsHelper n)
public NewsHelper getNewsHelper()
static void saveSummaryBarSections(RouterContext ctx, String page, Map<Integer,String> sections)
public void renderSummaryBar() throws IOException
IOException
public void setAction(String s)
public String getAction()
public void setConsoleNonce(String s)
public String getConsoleNonce()
public void setUpdateNonce(String s)
public String getUpdateNonce()
public void setRequestURI(String s)
public String getRequestURI()
public String getConfigTable()