Class ScriptSource
- java.lang.Object
-
- org.jenkinsci.plugins.radargun.config.ScriptSource
-
- All Implemented Interfaces:
Describable<ScriptSource>
- Direct Known Subclasses:
BuildInScriptSource
,FileScriptSource
,TextScriptSource
public abstract class ScriptSource extends Object implements Describable<ScriptSource>
Init scripts used for launching RG on remote nodes, typically via ssh. This seems to be redundant and will be removed soon - actually probably only removed as it contains important stuff like construcing cmd line. TODO replace by more convenient construct or script should be completely generated based on used configuration.- Author:
- vjuranek
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScriptSource.ScriptSourceDescriptor
-
Field Summary
Fields Modifier and Type Field Description static String
CD_CMD
static char
CMD_SEPARATOR
static String
ENV_CMD
static char
ENV_KEY_VAL_SEPARATOR
static char
ENV_VAR_QUOTE
static String
EXPORT_CMD
static String
JAVA_PROP_PREFIX
static String
RG_SUFFIX_ENV_VAR
static char
VAR_SEPARATOR
-
Constructor Summary
Constructors Constructor Description ScriptSource()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static DescriptorExtensionList<ScriptSource,Descriptor<ScriptSource>>
all()
abstract void
cleanup()
Descriptor<ScriptSource>
getDescriptor()
String[]
getMainCmdLine(RgBuild rgBuild, MainScriptConfig mainScriptConfig)
abstract String
getMainScriptPath(FilePath workspace)
String[]
getWorkerCmdLine(int workerId, RgBuild rgBuild, WorkerScriptConfig nodeScriptConfig)
abstract String
getWorkerScriptPath(FilePath workspace)
-
-
-
Field Detail
-
CD_CMD
public static final String CD_CMD
- See Also:
- Constant Field Values
-
ENV_CMD
public static final String ENV_CMD
- See Also:
- Constant Field Values
-
EXPORT_CMD
public static final String EXPORT_CMD
- See Also:
- Constant Field Values
-
RG_SUFFIX_ENV_VAR
public static final String RG_SUFFIX_ENV_VAR
- See Also:
- Constant Field Values
-
JAVA_PROP_PREFIX
public static final String JAVA_PROP_PREFIX
- See Also:
- Constant Field Values
-
ENV_KEY_VAL_SEPARATOR
public static final char ENV_KEY_VAL_SEPARATOR
- See Also:
- Constant Field Values
-
ENV_VAR_QUOTE
public static final char ENV_VAR_QUOTE
- See Also:
- Constant Field Values
-
VAR_SEPARATOR
public static final char VAR_SEPARATOR
- See Also:
- Constant Field Values
-
CMD_SEPARATOR
public static final char CMD_SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMainScriptPath
public abstract String getMainScriptPath(FilePath workspace) throws InterruptedException, IOException
- Throws:
InterruptedException
IOException
-
getWorkerScriptPath
public abstract String getWorkerScriptPath(FilePath workspace) throws InterruptedException, IOException
- Throws:
InterruptedException
IOException
-
cleanup
public abstract void cleanup() throws InterruptedException, IOException
- Throws:
InterruptedException
IOException
-
getMainCmdLine
public String[] getMainCmdLine(RgBuild rgBuild, MainScriptConfig mainScriptConfig) throws InterruptedException, IOException
- Throws:
InterruptedException
IOException
-
getWorkerCmdLine
public String[] getWorkerCmdLine(int workerId, RgBuild rgBuild, WorkerScriptConfig nodeScriptConfig) throws InterruptedException, IOException
- Throws:
InterruptedException
IOException
-
getDescriptor
public Descriptor<ScriptSource> getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<ScriptSource>
-
all
public static final DescriptorExtensionList<ScriptSource,Descriptor<ScriptSource>> all()
-
-