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.
  • Constructor Details

    • CascJmhBenchmarkState

      public CascJmhBenchmarkState()
  • Method Details

    • getResourcePath

      @NonNull protected abstract String 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

      @NonNull protected abstract Class<?> getEnclosingClass()
      The class containing this benchmark state. The config is loaded using this class's Class.getResource(String).
      Returns:
      the class containing this benchmark state
    • setup

      public void setup() throws Exception
      Setups the Jenkins instance using configuration as code available through the getResourcePath().
      Overrides:
      setup in class jenkins.benchmark.jmh.JmhBenchmarkState
      Throws:
      io.jenkins.plugins.casc.ConfiguratorException - when unable to configure
      Exception