com.sun.faban.driver
Annotation Type BenchmarkOperation


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface BenchmarkOperation

This annotation interface describes the parameters required when defining a benchmark operation.


Optional Element Summary
 boolean countToMetric
          Whether this operation gets counted toward the final metric.
 double max90th
          The maximum 90th percentile allowed for this operation.
 String name
          The name of the operation.
 double[] percentileLimits
          The maximum limit of the percentiles set in the BenchmarkDriver annotation.
 Timing timing
          Sets the timing mode of this operation to manual or automatic.
 

name

public abstract String name
The name of the operation.

Default:
""

percentileLimits

public abstract double[] percentileLimits
The maximum limit of the percentiles set in the BenchmarkDriver annotation. Overrides max90th if set. Please specify the limit of 0 if there is no limit. At least one limit needs to be specified in a driver or a DefinitionException will be thrown.
The unit of measure is dependent on the response time unit specified in the BenchmarkDriver annotation.

See Also:
BenchmarkDriver.responseTimeUnit()
Default:
{}

max90th

public abstract double max90th
The maximum 90th percentile allowed for this operation. The benchmark run will fail if the 90th percentile of this operation exceeds the given limit.
The unit of measure is dependent on the response time unit specified in the BenchmarkDriver annotation.

See Also:
BenchmarkDriver.responseTimeUnit()
Default:
-1.0

timing

public abstract Timing timing
Sets the timing mode of this operation to manual or automatic. Manual timing is needed if the benchmark is not a client/server benchmark or the transport still does not support automatic timing.

Default:
com.sun.faban.driver.Timing.AUTO

countToMetric

public abstract boolean countToMetric
Whether this operation gets counted toward the final metric. The default is true.

Default:
true