Class NodeShellScript
- java.lang.Object
-
- org.jenkinsci.plugins.radargun.model.impl.RgShellScript
-
- org.jenkinsci.plugins.radargun.model.impl.NodeShellScript
-
- All Implemented Interfaces:
Serializable
,NodeScriptConfig
,RgScriptConfig
- Direct Known Subclasses:
MainShellScript
,WorkerShellScript
public abstract class NodeShellScript extends RgShellScript implements NodeScriptConfig
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jenkinsci.plugins.radargun.model.NodeScriptConfig
NodeScriptConfig.Options
-
-
Field Summary
Fields Modifier and Type Field Description protected String
javaOpts
protected String
mainHost
protected String
outputPath
protected String
plugin
protected String
pluginConfig
protected boolean
tailFollow
protected boolean
wait
-
Fields inherited from class org.jenkinsci.plugins.radargun.model.impl.RgShellScript
scriptPath, SEP, SHELL_EXEC
-
-
Constructor Summary
Constructors Constructor Description NodeShellScript()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
getJavaOpts()
String
getMainHost()
String
getOutputPath()
String
getPlugin()
String
getPluginConfig()
String[]
getScriptCmd()
Construct command for executing the script, including script configuration optionsabstract String
getScriptName()
Name of the script, without full path.boolean
isTailFollow()
boolean
isWait()
NodeScriptConfig
withJavaOpts(String javaOpts)
NodeScriptConfig
withMainHost(String mainHostname)
NodeScriptConfig
withOutput(String outputPath)
NodeScriptConfig
withPlugin(String plugin)
NodeScriptConfig
withPluginConfig(String pluginConfig)
NodeScriptConfig
withTailFollow()
NodeScriptConfig
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.RgScriptConfig
getInterpreter, getScriptPath, withScriptPath
-
-
-
-
Method Detail
-
getScriptName
public abstract String getScriptName()
Description copied from interface:RgScriptConfig
Name of the script, without full path.- Specified by:
getScriptName
in interfaceRgScriptConfig
- Specified by:
getScriptName
in classRgShellScript
- Returns:
- Script file name
-
getMainHost
public String getMainHost()
- Specified by:
getMainHost
in interfaceNodeScriptConfig
-
getOutputPath
public String getOutputPath()
- Specified by:
getOutputPath
in interfaceNodeScriptConfig
-
isTailFollow
public boolean isTailFollow()
- Specified by:
isTailFollow
in interfaceNodeScriptConfig
-
isWait
public boolean isWait()
- Specified by:
isWait
in interfaceNodeScriptConfig
-
getPlugin
public String getPlugin()
- Specified by:
getPlugin
in interfaceNodeScriptConfig
-
getPluginConfig
public String getPluginConfig()
- Specified by:
getPluginConfig
in interfaceNodeScriptConfig
-
getJavaOpts
public String getJavaOpts()
- Specified by:
getJavaOpts
in interfaceNodeScriptConfig
-
withMainHost
public NodeScriptConfig withMainHost(String mainHostname)
- Specified by:
withMainHost
in interfaceNodeScriptConfig
-
withOutput
public NodeScriptConfig withOutput(String outputPath)
- Specified by:
withOutput
in interfaceNodeScriptConfig
-
withTailFollow
public NodeScriptConfig withTailFollow()
- Specified by:
withTailFollow
in interfaceNodeScriptConfig
-
withWait
public NodeScriptConfig withWait()
- Specified by:
withWait
in interfaceNodeScriptConfig
-
withPlugin
public NodeScriptConfig withPlugin(String plugin)
- Specified by:
withPlugin
in interfaceNodeScriptConfig
-
withPluginConfig
public NodeScriptConfig withPluginConfig(String pluginConfig)
- Specified by:
withPluginConfig
in interfaceNodeScriptConfig
-
withJavaOpts
public NodeScriptConfig withJavaOpts(String javaOpts)
- Specified by:
withJavaOpts
in interfaceNodeScriptConfig
-
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 classRgShellScript
- Returns:
- Script path and its configuration options as an array of strings, each item for one option/parameter
-
-