if (below == null && over == null) throw new IllegalStateException("Must define either 'below' or 'over'!");
}
@Override
public boolean evaluate(int threads, Statistics statistics) {
OperationStats stats = statistics.getOperationsStats().get(on);
if (stats == null) throw new IllegalStateException("No statistics for operation " + on);
org.radargun.stats.representation.Percentile percentile
= stats.getRepresentation(org.radargun.stats.representation.Percentile.class, value);
if (percentile == null) throw new IllegalStateException("Cannot determine percentile from " + stats);
log.info("Response time is " + Utils.prettyPrintTime((long) percentile.responseTimeMax, TimeUnit.NANOSECONDS) + PropertyHelper.toString(this));
if (below != null) return percentile.responseTimeMax < below;
if (over != null) return percentile.responseTimeMax > over;
throw new IllegalStateException();