Class YamlNodeConfigParser
- java.lang.Object
-
- org.jenkinsci.plugins.radargun.yaml.YamlNodeConfigParser
-
- All Implemented Interfaces:
NodeConfigParser
public class YamlNodeConfigParser extends Object implements NodeConfigParser
NodeConfigParserfor YAML configurations. YAML file can contain arbitrary section, the only required isnodeslist, containing list of nodes, each represented by it's name followed by a map of options. This options can contain following elements:fqdnis node FQND or IP address. If not specified, node name is used as a hostname.jvmOtionsandenvVars.jvmOtionsis a plain string containing JVM options like -Xmx etc.javaPropsis a map of java propertied to be passed to RG startup script. Typically should be used for setting up variables used in RG scenarios. Properties are entered without "-D" prefix, this will be added later on automatically.envVarsis a map of environment variables and their values, which should be exported to given host.
- Author:
- vjuranek
-
-
Field Summary
Fields Modifier and Type Field Description static StringAFTER_CMDSstatic StringBEFORE_CMDSstatic StringENV_VARS_KEYstatic StringEOF_REG_EXPstatic StringFQDNstatic StringGATHET_LOGSstatic StringINCLUDE_TAGstatic StringJAVA_PROPS_KEYstatic StringJVM_OPTS_KEYDeprecated.static StringLINE_SEPstatic StringNODES_KEY
-
Constructor Summary
Constructors Constructor Description YamlNodeConfigParser()
-
-
-
Field Detail
-
NODES_KEY
public static final String NODES_KEY
- See Also:
- Constant Field Values
-
FQDN
public static final String FQDN
- See Also:
- Constant Field Values
-
JVM_OPTS_KEY
@Deprecated public static final String JVM_OPTS_KEY
Deprecated.- See Also:
- Constant Field Values
-
JAVA_PROPS_KEY
public static final String JAVA_PROPS_KEY
- See Also:
- Constant Field Values
-
ENV_VARS_KEY
public static final String ENV_VARS_KEY
- See Also:
- Constant Field Values
-
BEFORE_CMDS
public static final String BEFORE_CMDS
- See Also:
- Constant Field Values
-
AFTER_CMDS
public static final String AFTER_CMDS
- See Also:
- Constant Field Values
-
GATHET_LOGS
public static final String GATHET_LOGS
- See Also:
- Constant Field Values
-
LINE_SEP
public static final String LINE_SEP
-
EOF_REG_EXP
public static final String EOF_REG_EXP
- See Also:
- Constant Field Values
-
INCLUDE_TAG
public static final String INCLUDE_TAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
parseNodeList
public NodeList parseNodeList(String nodesConfig)
- Specified by:
parseNodeListin interfaceNodeConfigParser
-
-