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

com.neotys.neoload.model.v3.project.scenario.PopulationPolicy Maven / Gradle / Ivy

package com.neotys.neoload.model.v3.project.scenario;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.neotys.neoload.model.v3.binding.serializer.PopulationPolicyDeserializer;
import com.neotys.neoload.model.v3.binding.serializer.PopulationPolicySerializer;
import com.neotys.neoload.model.v3.project.Element;
import com.neotys.neoload.model.v3.validation.constraints.RequiredCheck;
import com.neotys.neoload.model.v3.validation.groups.NeoLoad;
import org.immutables.value.Value;
import org.immutables.value.Value.Style.ValidationMethod;

import javax.validation.Valid;

@JsonInclude(value=Include.NON_EMPTY)
@JsonSerialize(using=PopulationPolicySerializer.class)
@JsonDeserialize(using=PopulationPolicyDeserializer.class)
@Value.Immutable
@Value.Style(validationMethod = ValidationMethod.NONE)
public interface PopulationPolicy extends Element {
	String LOAD_POLICY = "load_policy";
	String CONSTANT_LOAD = "constant_load";
	String RAMPUP_LOAD = "rampup_load";
	String PEAKS_LOAD = "peaks_load";
	String CUSTOM_LOAD = "custom_load";

	@RequiredCheck(groups={NeoLoad.class})
	@Valid
    LoadPolicy getLoadPolicy();
	
	class Builder extends ImmutablePopulationPolicy.Builder {}
	static Builder builder() {
		return new Builder();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy