Class ScenarioSource
- java.lang.Object
-
- org.jenkinsci.plugins.radargun.config.ScenarioSource
-
- All Implemented Interfaces:
Describable<ScenarioSource>
- Direct Known Subclasses:
FileScenarioSource
,TextScenarioSource
public abstract class ScenarioSource extends Object implements Describable<ScenarioSource>
Base class for RG scenarios providers. Takes care about loading scenarios, expanding Jenkins variables and createing/deleteing temporal scenario file with resolved variables.- Author:
- vjuranek
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScenarioSource.ScenarioSourceDescriptor
-
Field Summary
Fields Modifier and Type Field Description protected static String
DEFAULT_SCENARIO_NAME
protected static String
DEFAULT_SCENARIO_SUFFIX
-
Constructor Summary
Constructors Constructor Description ScenarioSource()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static DescriptorExtensionList<ScenarioSource,Descriptor<ScenarioSource>>
all()
void
cleanup()
protected abstract FilePath
createTmpScenrioFile(AbstractBuild<?,?> build)
Descriptor<ScenarioSource>
getDescriptor()
String
getTmpScenarioPath(AbstractBuild<?,?> build)
FilePath
tmpScenarioFromContent(String scenarioContent, AbstractBuild<?,?> build)
Replace parameters in scenario and stores scenario into tmp file in workspaceFilePath
tmpScenarioFromFile(String scenarioPath, AbstractBuild<?,?> build)
-
-
-
Field Detail
-
DEFAULT_SCENARIO_NAME
protected static final String DEFAULT_SCENARIO_NAME
- See Also:
- Constant Field Values
-
DEFAULT_SCENARIO_SUFFIX
protected static final String DEFAULT_SCENARIO_SUFFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
createTmpScenrioFile
protected abstract FilePath createTmpScenrioFile(AbstractBuild<?,?> build) throws InterruptedException, IOException
- Throws:
InterruptedException
IOException
-
getTmpScenarioPath
public String getTmpScenarioPath(AbstractBuild<?,?> build) throws InterruptedException, IOException
- Throws:
InterruptedException
IOException
-
tmpScenarioFromContent
public FilePath tmpScenarioFromContent(String scenarioContent, AbstractBuild<?,?> build) throws InterruptedException, IOException
Replace parameters in scenario and stores scenario into tmp file in workspace- Throws:
InterruptedException
IOException
-
tmpScenarioFromFile
public FilePath tmpScenarioFromFile(String scenarioPath, AbstractBuild<?,?> build) throws InterruptedException, IOException
- Throws:
InterruptedException
IOException
-
cleanup
public void cleanup() throws InterruptedException, IOException
- Throws:
InterruptedException
IOException
-
getDescriptor
public Descriptor<ScenarioSource> getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<ScenarioSource>
-
all
public static final DescriptorExtensionList<ScenarioSource,Descriptor<ScenarioSource>> all()
-
-