Jagger
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
Builder com.griddynamics.jagger.user.test.configurations.limits.JLimit.Builder.withOnlyWarnings ( LowWarnThresh  lowWarnThresh,
UpWarnThresh  upWarnThresh 
)

Set limits for warnings criteria only.

Cannot be initialized more than once.

Parameters
lowWarnThreshrelative lower warning threshold.
upWarnThreshrelative upper warning threshold.

Definition at line 51 of file JLimit.java.

References com.griddynamics.jagger.user.test.configurations.limits.auxiliary.LowErrThresh.of(), and com.griddynamics.jagger.user.test.configurations.limits.auxiliary.UpErrThresh.of().

51  {
52  if (initialized) {
53  throw new IllegalArgumentException("It is already initialized with values: " +
54  this.lowWarnThresh + ", " + this.lowErrThresh + ", " + this.upWarnThresh + ", " + this.upErrThresh);
55  }
56  Objects.requireNonNull(lowWarnThresh);
57  Objects.requireNonNull(upWarnThresh);
58 
59  this.lowErrThresh = LowErrThresh.of(Double.NEGATIVE_INFINITY);
60  this.upErrThresh = UpErrThresh.of(Double.POSITIVE_INFINITY);
61  this.lowWarnThresh = lowWarnThresh;
62  this.upWarnThresh = upWarnThresh;
63 
64  initialized = true;
65 
66  return this;
67  }

Here is the call graph for this function: