Jagger
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
Builder com.griddynamics.jagger.user.test.configurations.limits.JLimit.Builder.withOnlyErrors ( LowErrThresh  lowErrThresh,
UpErrThresh  upErrThresh 
)

Set limits for errors criteria only.

Cannot be initialized more than once.

Parameters
lowErrThreshrelative lower error threshold.
upErrThreshrelative upper error threshold.

Definition at line 76 of file JLimit.java.

References com.griddynamics.jagger.user.test.configurations.limits.auxiliary.LowWarnThresh.of(), and com.griddynamics.jagger.user.test.configurations.limits.auxiliary.UpWarnThresh.of().

Referenced by JLoadScenarioProvider.exampleJaggerLoadScenario().

76  {
77  if (initialized) {
78  throw new IllegalArgumentException("It is already initialized with values: " +
79  this.lowWarnThresh + ", " + this.lowErrThresh + ", " + this.upWarnThresh + ", " + this.upErrThresh);
80  }
81  Objects.requireNonNull(lowErrThresh);
82  Objects.requireNonNull(upErrThresh);
83 
84  this.lowErrThresh = lowErrThresh;
85  this.upErrThresh = upErrThresh;
86  this.lowWarnThresh = LowWarnThresh.of(this.lowErrThresh.value());
87  this.upWarnThresh = UpWarnThresh.of(this.upErrThresh.value());
88 
89  initialized = true;
90 
91  return this;
92  }

Here is the call graph for this function:

Here is the caller graph for this function: