public class SLABuilder<P> extends Object implements Rewritable<SLABuilder<P>>
| Modifier and Type | Class and Description |
|---|---|
class |
SLABuilder.LimitsBuilder
Percentile limits.
|
static class |
SLABuilder.ListBuilder<P>
Defines a list of Service Level Agreements (SLAs) - conditions that must hold for benchmark to be deemed successful.
|
| Constructor and Description |
|---|
SLABuilder(P parent) |
| Modifier and Type | Method and Description |
|---|---|
SLABuilder<P> |
blockedRatio(double blockedRatio)
Maximum allowed ratio of time spent waiting for usable connection to sum of response latencies.
|
SLA |
build() |
P |
endSLA() |
SLABuilder<P> |
errorRatio(double errorRatio)
Maximum allowed ratio of errors.
|
SLABuilder.LimitsBuilder |
limits()
Percentile limits.
|
SLABuilder<P> |
meanResponseTime(long meanResponseTime,
TimeUnit timeUnit) |
SLABuilder<P> |
meanResponseTime(String meanResponseTime)
Maximum allowed mean (average) response time.
|
void |
prepareBuild() |
void |
readFrom(SLABuilder<P> other) |
SLABuilder<P> |
window(long window,
TimeUnit timeUnit) |
SLABuilder<P> |
window(String window)
Period over which the stats should be collected.
|
public SLABuilder(P parent)
public void prepareBuild()
public SLA build()
public P endSLA()
public SLABuilder<P> window(long window, TimeUnit timeUnit)
public SLABuilder<P> window(String window)
window - Window size with suffix ('s', 'm' or 'h') or just in milliseconds.public SLABuilder<P> errorRatio(double errorRatio)
errorRatio - Ratio.public SLABuilder<P> meanResponseTime(long meanResponseTime, TimeUnit timeUnit)
public SLABuilder<P> meanResponseTime(String meanResponseTime)
meanResponseTime - Mean response time.public SLABuilder<P> blockedRatio(double blockedRatio)
blockedRatio - Maximum ratio.public SLABuilder.LimitsBuilder limits()
public void readFrom(SLABuilder<P> other)
readFrom in interface Rewritable<SLABuilder<P>>Copyright © 2019 JBoss by Red Hat. All rights reserved.