All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.hyperfoil.api.config.BenchmarkSource Maven / Gradle / Ivy

There is a newer version: 0.27
Show newest version
package io.hyperfoil.api.config;

import java.io.Serializable;
import java.util.Map;

public class BenchmarkSource implements Serializable {
   public final String name;
   public final String version;
   public final String yaml;
   public final transient BenchmarkData data;
   public final Map paramsWithDefaults;

   public BenchmarkSource(String name, String yaml, BenchmarkData data, Map paramsWithDefaults) {
      this.name = name;
      // note: version of template and resulting benchmark don't have to match
      this.version = Benchmark.randomUUID();
      this.yaml = yaml;
      this.data = data;
      this.paramsWithDefaults = paramsWithDefaults;
   }

   public boolean isTemplate() {
      return !paramsWithDefaults.isEmpty();
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy