Class JMHTask

  • All Implemented Interfaces:
    java.lang.Comparable<org.gradle.api.Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.TaskInternal, org.gradle.api.plugins.ExtensionAware, org.gradle.api.Task, org.gradle.util.Configurable<org.gradle.api.Task>

    public class JMHTask
    extends org.gradle.api.DefaultTask
    The JMH task converts our extension configuration into JMH specific Options then serializes them to disk. Then a forked JVM is created and a runner is executed using the JMH version that was used to compile the benchmarks. This runner will read the options from the serialized file and execute JMH using them.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.gradle.api.Task

        org.gradle.api.Task.Namer
    • Field Summary

      • Fields inherited from interface org.gradle.api.Task

        TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
    • Constructor Summary

      Constructors 
      Constructor Description
      JMHTask​(org.gradle.workers.WorkerExecutor workerExecutor)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void before()  
      void setDidWork​(boolean didWork)  
      • Methods inherited from class org.gradle.api.DefaultTask

        newInputDirectory, newInputFile, newOutputDirectory, newOutputFile
      • Methods inherited from class org.gradle.api.internal.AbstractTask

        appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JMHTask

        @Inject
        public JMHTask​(org.gradle.workers.WorkerExecutor workerExecutor)
    • Method Detail

      • before

        public void before()
      • setDidWork

        public void setDidWork​(boolean didWork)
        Specified by:
        setDidWork in interface org.gradle.api.Task
        Overrides:
        setDidWork in class org.gradle.api.internal.AbstractTask