Allow multiple percentile arguments and remove arbitrary 50% lower bound.
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | */ |
| | | package com.sun.opends.sdk.tools; |
| | | |
| | |
| | | } |
| | | |
| | | // If there is a lower bound, then the value must be greater than or |
| | | // equal |
| | | // to it. |
| | | // equal to it. |
| | | if (hasLowerBound && (intValue < lowerBound)) |
| | | { |
| | | invalidReason.append(ERR_INTARG_VALUE_BELOW_LOWER_BOUND.get(getName(), |
| | |
| | | } |
| | | |
| | | // If there is an upper bound, then the value must be less than or |
| | | // equal to |
| | | // it. |
| | | // equal to it. |
| | | if (hasUpperBound && (intValue > upperBound)) |
| | | { |
| | | |
| | |
| | | argParser.addArgument(targetThroughputArgument); |
| | | |
| | | percentilesArgument = new IntegerArgument("percentile", 'e', "percentile", |
| | | false, true, LocalizableMessage.raw("{percentile}"), true, 50, true, |
| | | false, true, LocalizableMessage.raw("{percentile}"), true, 0, true, |
| | | 100, LocalizableMessage.raw("Calculate max response time for a " |
| | | + "percentile of operations")); |
| | | percentilesArgument.setPropertyName("percentile"); |
| | | percentilesArgument.setMultiValued(true); |
| | | argParser.addArgument(percentilesArgument); |
| | | |
| | | keepConnectionsOpen = new BooleanArgument("keepConnectionsOpen", 'f', |