Class MainShellScript
- java.lang.Object
-
- org.jenkinsci.plugins.radargun.model.impl.RgShellScript
-
- org.jenkinsci.plugins.radargun.model.impl.NodeShellScript
-
- org.jenkinsci.plugins.radargun.model.impl.MainShellScript
-
- All Implemented Interfaces:
Serializable
,MainScriptConfig
,NodeScriptConfig
,RgScriptConfig
public class MainShellScript extends NodeShellScript implements MainScriptConfig
Represent RG main shell script, i.e. $RG_HOME/bin/msater.sh- Author:
- vjuranek
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jenkinsci.plugins.radargun.model.MainScriptConfig
MainScriptConfig.Options
-
Nested classes/interfaces inherited from interface org.jenkinsci.plugins.radargun.model.NodeScriptConfig
NodeScriptConfig.Options
-
-
Field Summary
Fields Modifier and Type Field Description protected String
configPath
static String
MAIN_SCRIPT_NAME
protected String
reporterPath
protected int
workerNumber
-
Fields inherited from class org.jenkinsci.plugins.radargun.model.impl.NodeShellScript
javaOpts, mainHost, outputPath, plugin, pluginConfig, tailFollow, wait
-
Fields inherited from class org.jenkinsci.plugins.radargun.model.impl.RgShellScript
scriptPath, SEP, SHELL_EXEC
-
-
Constructor Summary
Constructors Constructor Description MainShellScript()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getConfigPath()
String
getReporterPath()
String[]
getScriptCmd()
Construct command for executing the script, including script configuration optionsString
getScriptName()
Name of the script, without full path.int
getWorkerNumber()
MainScriptConfig
withConfigPath(String configPath)
MainScriptConfig
withNumberOfWorkers(int workerNumber)
MainScriptConfig
withReporter(String reporterPath)
-
Methods inherited from class org.jenkinsci.plugins.radargun.model.impl.NodeShellScript
getJavaOpts, getMainHost, getOutputPath, getPlugin, getPluginConfig, isTailFollow, isWait, withJavaOpts, withMainHost, withOutput, withPlugin, withPluginConfig, withTailFollow, withWait
-
Methods inherited from class org.jenkinsci.plugins.radargun.model.impl.RgShellScript
getInterpreter, getScriptPath, toString, withScriptPath
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jenkinsci.plugins.radargun.model.NodeScriptConfig
getJavaOpts, getMainHost, getOutputPath, getPlugin, getPluginConfig, isTailFollow, isWait, withJavaOpts, withMainHost, withOutput, withPlugin, withPluginConfig, withTailFollow, withWait
-
Methods inherited from interface org.jenkinsci.plugins.radargun.model.RgScriptConfig
getInterpreter, getScriptPath, withScriptPath
-
-
-
-
Field Detail
-
MAIN_SCRIPT_NAME
public static final String MAIN_SCRIPT_NAME
- See Also:
- Constant Field Values
-
configPath
protected String configPath
-
workerNumber
protected int workerNumber
-
reporterPath
protected String reporterPath
-
-
Method Detail
-
getScriptName
public String getScriptName()
Description copied from interface:RgScriptConfig
Name of the script, without full path.- Specified by:
getScriptName
in interfaceRgScriptConfig
- Specified by:
getScriptName
in classNodeShellScript
- Returns:
- Script file name
-
getConfigPath
public String getConfigPath()
- Specified by:
getConfigPath
in interfaceMainScriptConfig
-
getWorkerNumber
public int getWorkerNumber()
- Specified by:
getWorkerNumber
in interfaceMainScriptConfig
-
getReporterPath
public String getReporterPath()
- Specified by:
getReporterPath
in interfaceMainScriptConfig
-
withConfigPath
public MainScriptConfig withConfigPath(String configPath)
- Specified by:
withConfigPath
in interfaceMainScriptConfig
-
withNumberOfWorkers
public MainScriptConfig withNumberOfWorkers(int workerNumber)
- Specified by:
withNumberOfWorkers
in interfaceMainScriptConfig
-
withReporter
public MainScriptConfig withReporter(String reporterPath)
- Specified by:
withReporter
in interfaceMainScriptConfig
-
getScriptCmd
public String[] getScriptCmd()
Description copied from interface:RgScriptConfig
Construct command for executing the script, including script configuration options- Specified by:
getScriptCmd
in interfaceRgScriptConfig
- Overrides:
getScriptCmd
in classNodeShellScript
- Returns:
- Script path and its configuration options as an array of strings, each item for one option/parameter
-
-