public abstract class PhaseBuilder<PB extends PhaseBuilder> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PhaseBuilder.Always |
static class |
PhaseBuilder.AtOnce |
static class |
PhaseBuilder.Catalog |
static class |
PhaseBuilder.ConstantPerSec |
static class |
PhaseBuilder.RampPerSec |
static class |
PhaseBuilder.Sequentially |
| Modifier and Type | Field and Description |
|---|---|
protected long |
duration |
protected List<PhaseForkBuilder> |
forks |
protected long |
maxDuration |
protected int |
maxIterations |
protected int |
maxUnfinishedSessions |
protected String |
name |
protected BenchmarkBuilder |
parent |
protected Collection<PhaseReference> |
startAfter |
protected Collection<PhaseReference> |
startAfterStrict |
protected long |
startTime |
protected Collection<PhaseReference> |
terminateAfterStrict |
| Modifier | Constructor and Description |
|---|---|
protected |
PhaseBuilder(BenchmarkBuilder parent,
String name) |
protected final String name
protected final BenchmarkBuilder parent
protected long startTime
protected Collection<PhaseReference> startAfter
protected Collection<PhaseReference> startAfterStrict
protected Collection<PhaseReference> terminateAfterStrict
protected long duration
protected long maxDuration
protected int maxUnfinishedSessions
protected int maxIterations
protected List<PhaseForkBuilder> forks
protected PhaseBuilder(BenchmarkBuilder parent, String name)
public static Phase.Noop noop(SerializableSupplier<Benchmark> benchmark, int id, String iterationName, List<String> startAfter, List<String> startAfterStrict, List<String> terminateAfterStrict)
public BenchmarkBuilder endPhase()
public String name()
public ScenarioBuilder scenario()
public PhaseForkBuilder fork(String name)
public PB startTime(long startTime)
public PB startAfter(PhaseReference phase)
public PB startAfterStrict(PhaseReference phase)
public PB duration(long duration)
public PB maxDuration(long maxDuration)
public PB maxUnfinishedSessions(int maxUnfinishedSessions)
public PB maxIterations(int iterations)
public void prepareBuild()
public Collection<Phase> build(SerializableSupplier<Benchmark> benchmark, AtomicInteger idCounter)
protected abstract Phase buildPhase(SerializableSupplier<Benchmark> benchmark, SerializableSupplier<Phase> ps, int phaseId, int iteration, PhaseForkBuilder f)
public void readForksFrom(PhaseBuilder<?> other)
Copyright © 2019 JBoss by Red Hat. All rights reserved.