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 classScriptSource.ScriptSourceDescriptor
-
Field Summary
Fields Modifier and Type Field Description static StringCD_CMDstatic charCMD_SEPARATORstatic StringENV_CMDstatic charENV_KEY_VAL_SEPARATORstatic charENV_VAR_QUOTEstatic StringEXPORT_CMDstatic StringJAVA_PROP_PREFIXstatic StringRG_SUFFIX_ENV_VARstatic charVAR_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 voidcleanup()Descriptor<ScriptSource>getDescriptor()String[]getMainCmdLine(RgBuild rgBuild, MainScriptConfig mainScriptConfig)abstract StringgetMainScriptPath(FilePath workspace)String[]getWorkerCmdLine(int workerId, RgBuild rgBuild, WorkerScriptConfig nodeScriptConfig)abstract StringgetWorkerScriptPath(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:
InterruptedExceptionIOException
-
getWorkerScriptPath
public abstract String getWorkerScriptPath(FilePath workspace) throws InterruptedException, IOException
- Throws:
InterruptedExceptionIOException
-
cleanup
public abstract void cleanup() throws InterruptedException, IOException- Throws:
InterruptedExceptionIOException
-
getMainCmdLine
public String[] getMainCmdLine(RgBuild rgBuild, MainScriptConfig mainScriptConfig) throws InterruptedException, IOException
- Throws:
InterruptedExceptionIOException
-
getWorkerCmdLine
public String[] getWorkerCmdLine(int workerId, RgBuild rgBuild, WorkerScriptConfig nodeScriptConfig) throws InterruptedException, IOException
- Throws:
InterruptedExceptionIOException
-
getDescriptor
public Descriptor<ScriptSource> getDescriptor()
- Specified by:
getDescriptorin interfaceDescribable<ScriptSource>
-
all
public static final DescriptorExtensionList<ScriptSource,Descriptor<ScriptSource>> all()
-
-