Package net.i2p.router.web.helpers
Class WizardHelper
java.lang.Object
net.i2p.router.web.HelperBase
net.i2p.router.web.helpers.WizardHelper
The new user wizard.
This bean has SESSION scope so the results may be retrieved.
All necessary methods are synchronized.
- Since:
- 0.9.38
-
Field Summary
Modifier and TypeFieldDescriptionstatic final float
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final String
Fields inherited from class net.i2p.router.web.HelperBase
_context, _out, CHECKED, PROP_ADVANCED, SELECTED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) boolean
Cancel the test.void
complete()
long
To populate form with.Copied from ConfigNetHelper.To populate form with.Copied from ConfigNetHelper.int
Adapted from ConfigNetHelper.Copied from ConfigNetHelper.long
boolean
boolean
boolean
void
setContextId
(String contextId) Overriden to only do this once.(package private) boolean
startNDT()
Start the test.Methods inherited from class net.i2p.router.web.HelperBase
_t, _t, _t, _x, getChecked, isAdvanced, ngettext, storeWriter
-
Field Details
-
PROP_COMPLETE
- See Also:
-
BW_SCALE
public static final float BW_SCALE- See Also:
-
PAGE_LANG
public static final int PAGE_LANG- See Also:
-
PAGE_THEME
public static final int PAGE_THEME- See Also:
-
PAGE_CHECK
public static final int PAGE_CHECK- See Also:
-
PAGE_TEST
public static final int PAGE_TEST- See Also:
-
PAGE_RESULTS
public static final int PAGE_RESULTS- See Also:
-
PAGE_BROWSER
public static final int PAGE_BROWSER- See Also:
-
PAGE_DONE
public static final int PAGE_DONE- See Also:
-
-
Constructor Details
-
WizardHelper
public WizardHelper()
-
-
Method Details
-
setContextId
Overriden to only do this once.- Overrides:
setContextId
in classHelperBase
- Parameters:
contextId
- beginning few characters of the routerHash, or null to pick the first one we come across.
-
complete
public void complete() -
isNDTComplete
public boolean isNDTComplete() -
isNDTRunning
public boolean isNDTRunning() -
isNDTSuccessful
public boolean isNDTSuccessful() -
getTestStatus
- Returns:
- HTML-escaped status string or ""
-
getCompletionStatus
- Returns:
- HTML-escaped status string or ""
-
getDetailStatus
- Returns:
- HTML-escaped status string or ""
-
getUpBandwidth
public long getUpBandwidth()- Returns:
- bytes per second or 0
-
getDownBandwidth
public long getDownBandwidth()- Returns:
- bytes per second or 0
-
getServerLocation
- Returns:
- HTML-escaped location or ""
-
getInboundBurstRate
To populate form with. Uses the test result if available, else the current setting Adapted from ConfigNetHelper.- Returns:
- decimal KBytes/sec
-
getOutboundBurstRate
To populate form with. Uses the test result if available, else the current setting Adapted from ConfigNetHelper.- Returns:
- decimal KBytes/sec
-
getInboundBurstRateBits
Copied from ConfigNetHelper.- Returns:
- decimal
-
getOutboundBurstRateBits
Copied from ConfigNetHelper.- Returns:
- decimal
-
startNDT
boolean startNDT()Start the test. Called from the Handler.- Returns:
- success
-
cancelNDT
boolean cancelNDT()Cancel the test. Called from the Handler.- Returns:
- success
-