Class YamlNodeConfigParser
- java.lang.Object
-
- org.jenkinsci.plugins.radargun.yaml.YamlNodeConfigParser
-
- All Implemented Interfaces:
NodeConfigParser
public class YamlNodeConfigParser extends Object implements NodeConfigParser
NodeConfigParser
for YAML configurations. YAML file can contain arbitrary section, the only required isnodes
list, containing list of nodes, each represented by it's name followed by a map of options. This options can contain following elements:fqdn
is node FQND or IP address. If not specified, node name is used as a hostname.jvmOtions
andenvVars
.jvmOtions
is a plain string containing JVM options like -Xmx etc.javaProps
is 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.envVars
is 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 String
AFTER_CMDS
static String
BEFORE_CMDS
static String
ENV_VARS_KEY
static String
EOF_REG_EXP
static String
FQDN
static String
GATHET_LOGS
static String
INCLUDE_TAG
static String
JAVA_PROPS_KEY
static String
JVM_OPTS_KEY
Deprecated.static String
LINE_SEP
static String
NODES_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:
parseNodeList
in interfaceNodeConfigParser
-
-