Class WorkerShellScript
- java.lang.Object
-
- org.jenkinsci.plugins.radargun.model.impl.RgShellScript
-
- org.jenkinsci.plugins.radargun.model.impl.NodeShellScript
-
- org.jenkinsci.plugins.radargun.model.impl.WorkerShellScript
-
- All Implemented Interfaces:
Serializable
,NodeScriptConfig
,RgScriptConfig
,WorkerScriptConfig
public class WorkerShellScript extends NodeShellScript implements WorkerScriptConfig
Represents RG worker script, i.e. $RG_HOME/bin/worker.sh- Author:
- vjuranek
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jenkinsci.plugins.radargun.model.NodeScriptConfig
NodeScriptConfig.Options
-
Nested classes/interfaces inherited from interface org.jenkinsci.plugins.radargun.model.WorkerScriptConfig
WorkerScriptConfig.Options
-
-
Field Summary
Fields Modifier and Type Field Description static String
WORKER_SCRIPT_NAME
protected int
workerIndex
protected String
workerName
-
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 WorkerShellScript()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getScriptCmd()
Construct command for executing the script, including script configuration optionsString
getScriptName()
Name of the script, without full path.int
getWorkerIndex()
String
getWorkerName()
WorkerScriptConfig
withWorkerIndex(int workerIndex)
WorkerScriptConfig
withWorkerName(String workerName)
-
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
-
WORKER_SCRIPT_NAME
public static final String WORKER_SCRIPT_NAME
- See Also:
- Constant Field Values
-
workerIndex
protected int workerIndex
-
workerName
protected String workerName
-
-
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
-
getWorkerIndex
public int getWorkerIndex()
- Specified by:
getWorkerIndex
in interfaceWorkerScriptConfig
-
getWorkerName
public String getWorkerName()
- Specified by:
getWorkerName
in interfaceWorkerScriptConfig
-
withWorkerIndex
public WorkerScriptConfig withWorkerIndex(int workerIndex)
- Specified by:
withWorkerIndex
in interfaceWorkerScriptConfig
-
withWorkerName
public WorkerScriptConfig withWorkerName(String workerName)
- Specified by:
withWorkerName
in interfaceWorkerScriptConfig
-
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
-
-