public class InfraControl extends Object
Modifier and Type | Field and Description |
---|---|
BenchmarkParams |
benchmarkParams |
boolean |
isDone
Flag that checks for time expiration.
|
boolean |
isFailing
Flag that checks for failure experienced by any measurement thread.
|
IterationParams |
iterationParams |
boolean |
lastIteration |
Control |
notifyControl |
CountDownLatch |
preSetup |
CountDownLatch |
preTearDown |
boolean |
volatileSpoiler |
CountDownLatch |
warmdownDone |
boolean |
warmdownShouldWait |
AtomicInteger |
warmdownVisited |
CountDownLatch |
warmupDone |
boolean |
warmupShouldWait |
AtomicInteger |
warmupVisited |
Constructor and Description |
---|
InfraControl(BenchmarkParams benchmarkParams,
IterationParams iterationParams,
CountDownLatch preSetup,
CountDownLatch preTearDown,
boolean lastIteration,
Control notifyControl) |
Modifier and Type | Method and Description |
---|---|
void |
announceDone() |
void |
announceWarmdownReady() |
void |
announceWarmupReady() |
void |
awaitWarmdownReady() |
void |
awaitWarmupReady() |
long |
getDuration() |
long |
getDuration(TimeUnit unit) |
String |
getParam(String name) |
boolean |
isLastIteration() |
void |
preSetup() |
void |
preSetupForce() |
void |
preTearDown() |
void |
preTearDownForce() |
public volatile boolean isDone
public volatile boolean isFailing
public volatile boolean volatileSpoiler
public final CountDownLatch preSetup
public final CountDownLatch preTearDown
public final boolean lastIteration
public final AtomicInteger warmupVisited
public final AtomicInteger warmdownVisited
public volatile boolean warmupShouldWait
public volatile boolean warmdownShouldWait
public final CountDownLatch warmupDone
public final CountDownLatch warmdownDone
public final BenchmarkParams benchmarkParams
public final IterationParams iterationParams
public final Control notifyControl
public InfraControl(BenchmarkParams benchmarkParams, IterationParams iterationParams, CountDownLatch preSetup, CountDownLatch preTearDown, boolean lastIteration, Control notifyControl)
public long getDuration()
public long getDuration(TimeUnit unit)
unit
- timeunit to usepublic void preSetup()
public void preTearDown() throws InterruptedException
InterruptedException
public void preSetupForce()
public void preTearDownForce()
public boolean isLastIteration()
public void announceDone()
public void announceWarmupReady()
public void announceWarmdownReady()
public void awaitWarmupReady()
public void awaitWarmdownReady()
Copyright © 2012–2020 Oracle. All rights reserved.