Package io.jenkins.plugins.casc.misc.jmh
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 hudson.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, terminateJenkinsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.RootAction
getBadge, isPrimaryAction
-
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
-