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

Set limits for upper limits only.

Cannot be initialized more than once.

Parameters
upWarnThreshrelative upper warning threshold.
upErrThreshrelative upper error threshold.

Definition at line 101 of file JLimit.java.

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

101  {
102  if (initialized) {
103  throw new IllegalArgumentException("It is already initialized with values: " +
104  this.lowWarnThresh + ", " + this.lowErrThresh + ", " + this.upWarnThresh + ", " + this.upErrThresh);
105  }
106  Objects.requireNonNull(upWarnThresh);
107  Objects.requireNonNull(upErrThresh);
108 
109  this.lowErrThresh = LowErrThresh.of(Double.NEGATIVE_INFINITY);
110  this.upErrThresh = upErrThresh;
111  this.lowWarnThresh = LowWarnThresh.of(Double.NEGATIVE_INFINITY);
112  this.upWarnThresh = upWarnThresh;
113 
114  initialized = true;
115 
116  return this;
117  }

Here is the call graph for this function: