|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.stagent.options.OptionsManager
public class OptionsManager
Manages options tuning and configuration parameters of the agent. Parameters are initialized from JVM parameters or from a properties file
if present and can be overridden programmatically.
The following is the order or precedence for applying options:
OptionsParameter class.
getInstance() method.
| Method Summary | |
|---|---|
static void |
addInitParameters(Map<String,String> initParams)
Adds custom init parameters used for options. |
static OptionsManager |
getInstance()
Gets the instance of the operations manager. |
OptionsParameter |
getParameter(String paramName)
Gets a single option parameter by name. |
Collection<OptionsParameter> |
getParameters()
Gets a collection of all set option parameters. |
void |
setOptionsParameter(OptionsParameter param)
Sets an options parameter. |
void |
setOptionsParameters(Collection<OptionsParameter> params)
Sets a collection of options parameters. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void addInitParameters(Map<String,String> initParams)
option parameters. Names are the string used when calling
getParameter(String).
getInstance(), the manager immediately searched
for JVM parameters in the map's values and loads them into the manager.
initParams - A map of option names to JVM parameters.public static OptionsManager getInstance()
public Collection<OptionsParameter> getParameters()
public OptionsParameter getParameter(String paramName)
paramName - The name of the parameter to retrieve.
public void setOptionsParameter(OptionsParameter param)
param - The options paremeter to set.public void setOptionsParameters(Collection<OptionsParameter> params)
params -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||