Class CascJmhBenchmarkState
java.lang.Object
jenkins.benchmark.jmh.JmhBenchmarkState
io.jenkins.plugins.casc.misc.jmh.CascJmhBenchmarkState
- All Implemented Interfaces:
ExtensionPoint, Action, ModelObject, RootAction
public abstract class CascJmhBenchmarkState
extends jenkins.benchmark.jmh.JmhBenchmarkState
Use Configuration as Code to setup the Jenkins instance for JMH benchmark.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Class<?> The class containing this benchmark state.protected abstract StringLocation of the YAML file to be used for configuration-as-codevoidsetup()Setups the Jenkins instance using configuration as code available through thegetResourcePath().Methods inherited from class jenkins.benchmark.jmh.JmhBenchmarkState
getDisplayName, getIconFileName, getJenkins, getUrlName, setupJenkins, tearDown, terminateJenkins
-
Constructor Details
-
CascJmhBenchmarkState
public CascJmhBenchmarkState()
-
-
Method Details
-
getResourcePath
Location of the YAML file to be used for configuration-as-code- Returns:
- String containing the location of YAML file in the classpath
-
getEnclosingClass
The class containing this benchmark state. The config is loaded using this class'sClass.getResource(String).- Returns:
- the class containing this benchmark state
-
setup
Setups the Jenkins instance using configuration as code available through thegetResourcePath().- Overrides:
setupin classjenkins.benchmark.jmh.JmhBenchmarkState- Throws:
io.jenkins.plugins.casc.ConfiguratorException- when unable to configureException
-