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

Set limits for warnings criteria only.

Cannot be initialized more than once.

Parameters
lowErrThreshrelative lower error threshold.
lowWarnThreshrelative lower warning threshold.

Definition at line 126 of file JLimit.java.

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

126  {
127  if (initialized) {
128  throw new IllegalArgumentException("It is already initialized with values: " +
129  this.lowWarnThresh + ", " + this.lowErrThresh + ", " + this.upWarnThresh + ", " + this.upErrThresh);
130  }
131  Objects.requireNonNull(lowWarnThresh);
132  Objects.requireNonNull(lowErrThresh);
133 
134  this.lowErrThresh = lowErrThresh;
135  this.upErrThresh = UpErrThresh.of(Double.POSITIVE_INFINITY);
136  this.lowWarnThresh = lowWarnThresh;
137  this.upWarnThresh = UpWarnThresh.of(Double.POSITIVE_INFINITY);
138 
139  initialized = true;
140 
141  return this;
142  }

Here is the call graph for this function: