1 package com.griddynamics.jagger.user.test.configurations.load;
3 import com.griddynamics.jagger.user.test.configurations.load.aux.MaxLoadThreads;
4 import com.griddynamics.jagger.user.test.configurations.load.aux.RequestsPerSecond;
5 import com.griddynamics.jagger.user.test.configurations.load.aux.WarmUpTimeInSeconds;
7 import java.util.Objects;
16 private final long requestsPerSecond;
17 private final long maxLoadThreads;
18 private final long warmUpTimeInSeconds;
27 Objects.nonNull(requestsPerSecond);
28 Objects.nonNull(maxLoadThreads);
29 Objects.nonNull(warmUpTimeInSeconds);
31 this.requestsPerSecond = requestsPerSecond.
value();
32 this.maxLoadThreads = maxLoadThreads.
value();
33 this.warmUpTimeInSeconds = warmUpTimeInSeconds.
value();
43 return new JLoadProfileRps(requestsPerSecond, maxLoadThreads, warmUpTimeInSeconds);
47 return requestsPerSecond;
51 return maxLoadThreads;
55 return warmUpTimeInSeconds;