Package net.i2p.router.web.helpers
Class ConfigStatsHelper
java.lang.Object
net.i2p.router.web.HelperBase
net.i2p.router.web.helpers.ConfigStatsHelper
public class ConfigStatsHelper extends HelperBase
-
Field Summary
Fields inherited from class net.i2p.router.web.HelperBase
_context, _out, CHECKED, PROP_ADVANCED, SELECTED -
Constructor Summary
Constructors Constructor Description ConfigStatsHelper() -
Method Summary
Modifier and Type Method Description booleangetCurrentCanBeGraphed()StringgetCurrentGraphName()StringgetCurrentGroupName()What group is the current stat inbooleangetCurrentIsGraphed()booleangetCurrentIsLogged()StringgetCurrentStatDescription()StringgetCurrentStatName()StringgetExplicitFilter()StringgetFilename()booleangetIsFull()booleangroupRequired()Is the current stat the first in the group?booleanhasMoreStats()move the cursor to the next known stat, returning true if a valid stat is available.voidsetContextId(String contextId)Configure this bean to query a particular router contextbooleanshouldShowLog()Just hide for everybody unless already set.Methods inherited from class net.i2p.router.web.HelperBase
_t, _t, _t, _x, getChecked, isAdvanced, ngettext, storeWriter
-
Constructor Details
-
ConfigStatsHelper
public ConfigStatsHelper()
-
-
Method Details
-
setContextId
Configure this bean to query a particular router context- Overrides:
setContextIdin classHelperBase- Parameters:
contextId- beginning few characters of the routerHash, or null to pick the first one we come across.
-
shouldShowLog
public boolean shouldShowLog()Just hide for everybody unless already set. To enable set advanced config stat.logFilters=foo before starting... it has to be set at startup anyway for logging to be enabled at all- Since:
- 0.9
-
getFilename
-
hasMoreStats
public boolean hasMoreStats()move the cursor to the next known stat, returning true if a valid stat is available.- Returns:
- true if a valid stat is available, otherwise false
-
groupRequired
public boolean groupRequired()Is the current stat the first in the group? -
getCurrentGroupName
What group is the current stat in -
getCurrentStatName
-
getCurrentGraphName
-
getCurrentStatDescription
-
getCurrentIsLogged
public boolean getCurrentIsLogged() -
getCurrentIsGraphed
public boolean getCurrentIsGraphed() -
getCurrentCanBeGraphed
public boolean getCurrentCanBeGraphed() -
getExplicitFilter
-
getIsFull
public boolean getIsFull()
-