public class SummaryHelper extends HelperBase
修飾子とタイプ | クラス | 説明 |
---|---|---|
static class |
SummaryHelper.NetworkState |
|
static class |
SummaryHelper.NetworkStateMessage |
State message to be displayed to the user in the summary bar.
|
修飾子とタイプ | フィールド | 説明 |
---|---|---|
(package private) static java.lang.String |
DEFAULT_FULL |
|
(package private) static java.lang.String |
DEFAULT_FULL_ADVANCED |
|
(package private) static java.lang.String |
DEFAULT_MINIMAL |
|
(package private) static java.lang.String |
DEFAULT_MINIMAL_ADVANCED |
|
(package private) static java.lang.String |
PROP_SUMMARYBAR |
|
(package private) static java.lang.String |
THINSP |
_context, _out, CHECKED, PROP_ADVANCED
コンストラクタ | 説明 |
---|---|
SummaryHelper() |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
boolean |
allowReseed() |
allowReseed
|
java.lang.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
|
int |
getBanlistedPeers() |
How many peers are banned.
|
java.lang.String |
getConfigTable() |
|
java.lang.String |
getConsoleNonce() |
|
java.lang.String |
getDestinations() |
Client destinations connected locally.
|
int |
getFailingPeers() |
How many peers the router ranks as failing.
|
int |
getFastPeers() |
How many active peers the router ranks as fast.
|
java.lang.String |
getFirewallAndReseedStatus() |
The firewall status and reseed status/buttons
|
java.lang.String |
getFiveMinuteKBps() |
|
int |
getHighCapacityPeers() |
How many active peers the router ranks as having a high capacity.
|
java.lang.String |
getIdent() |
Retrieve the shortened 4 character ident for the router located within
the current JVM at the given context.
|
java.lang.String |
getInboundBacklog() |
|
int |
getInboundClientTunnels() |
How many inbound client tunnels we have.
|
java.lang.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.
|
java.lang.String |
getJobLag() |
How lagged our job queue is over the last minute (pretty printed with
the units attached)
|
java.lang.String |
getLifetimeKBps() |
|
java.lang.String |
getMemory() |
Retrieve amount of used memory.
|
java.lang.String |
getMemoryBar() |
|
java.lang.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.
|
java.lang.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.
|
SummaryHelper.NetworkStateMessage |
getReachability() |
|
java.lang.String |
getRequestURI() |
|
java.lang.String |
getRestartStatus() |
The restart status and buttons
|
java.lang.String |
getSecondKBps() |
|
java.lang.String |
getShareRatio() |
|
java.util.List<java.lang.String> |
getSummaryBarSections(java.lang.String page) |
|
java.lang.String |
getTunnelLag() |
How long it takes us to test our tunnels, averaged over the last 10 minutes
(pretty printed with the units attached)
|
java.lang.String |
getTunnelStatus() |
|
java.lang.String |
getUpdateNonce() |
|
java.lang.String |
getUpdateStatus() |
The update status and buttons
|
java.lang.String |
getUptime() |
Retrieve a pretty printed uptime count (ala 4d or 7h or 39m)
|
java.lang.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,
java.lang.String page,
java.util.Map<java.lang.Integer,java.lang.String> sections) |
|
void |
setAction(java.lang.String s) |
|
void |
setConsoleNonce(java.lang.String s) |
|
void |
setRequestURI(java.lang.String s) |
|
void |
setUpdateNonce(java.lang.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 java.lang.String THINSP
static final java.lang.String PROP_SUMMARYBAR
static final java.lang.String DEFAULT_FULL
static final java.lang.String DEFAULT_FULL_ADVANCED
static final java.lang.String DEFAULT_MINIMAL
static final java.lang.String DEFAULT_MINIMAL_ADVANCED
public java.lang.String getIdent()
public java.lang.String getVersion()
public java.lang.String getUptime()
public boolean allowReseed()
public int getAllPeers()
public SummaryHelper.NetworkStateMessage getReachability()
public java.lang.String getMemory()
public java.lang.String getMemoryBar()
public int getActivePeers()
public boolean showFirewallWarning()
public int getActiveProfiles()
public int getFastPeers()
public int getHighCapacityPeers()
public int getWellIntegratedPeers()
public int getFailingPeers()
public int getBanlistedPeers()
public java.lang.String getSecondKBps()
public java.lang.String getFiveMinuteKBps()
public java.lang.String getLifetimeKBps()
public java.lang.String getInboundTransferred()
public java.lang.String getOutboundTransferred()
public java.lang.String getDestinations()
public int getInboundTunnels()
public int getOutboundTunnels()
public int getInboundClientTunnels()
public int getOutboundClientTunnels()
public int getParticipatingTunnels()
public java.lang.String getShareRatio()
public java.lang.String getJobLag()
public java.lang.String getMessageDelay()
public java.lang.String getTunnelLag()
public java.lang.String getTunnelStatus()
public java.lang.String getInboundBacklog()
public java.lang.String getUpdateStatus()
public java.lang.String getRestartStatus()
public java.lang.String getFirewallAndReseedStatus()
public void storeNewsHelper(NewsHelper n)
public NewsHelper getNewsHelper()
public java.util.List<java.lang.String> getSummaryBarSections(java.lang.String page)
static void saveSummaryBarSections(RouterContext ctx, java.lang.String page, java.util.Map<java.lang.Integer,java.lang.String> sections)
public void renderSummaryBar() throws java.io.IOException
java.io.IOException
public void setAction(java.lang.String s)
public java.lang.String getAction()
public void setConsoleNonce(java.lang.String s)
public java.lang.String getConsoleNonce()
public void setUpdateNonce(java.lang.String s)
public java.lang.String getUpdateNonce()
public void setRequestURI(java.lang.String s)
public java.lang.String getRequestURI()
public java.lang.String getConfigTable()