public class Player extends Object
| Constructor and Description |
|---|
Player() |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.FluentIterable<Exchange> |
getInputLog() |
RequestLog |
getOutputLog() |
boolean |
isResetElapsedTime() |
Player |
play() |
Player |
setClient(Client client) |
Player |
setExchangeHandler(ExchangeHandler exchangeHandler) |
Player |
setGracePeriod(long gracePeriod)
The time (ms) at the end of the scenario to wait before closing the collector.
|
Player |
setInputLog(com.google.common.collect.FluentIterable<Exchange> inputLog) |
Player |
setInputLog(String urlPrefix,
String inputLogLocation) |
Player |
setInputLog(String urlPrefix,
String inputLogLocation,
com.google.common.base.Predicate<? super Exchange> inputFilter) |
Player |
setOutputCollector(Collector collector) |
Player |
setOutputCollector(String urlPrefix,
String sockPath,
String eventBusAddress) |
Player |
setOutputCollector(String urlPrefix,
String sockPath,
String eventBusAddress,
com.google.common.base.Predicate<? super Exchange> outputFilter) |
void |
setResetElapsedTime(boolean resetElapsedTime) |
Player |
setTimingFunction(com.google.common.base.Function<Long,Long> timingFunction) |
public Player setInputLog(String urlPrefix, String inputLogLocation, com.google.common.base.Predicate<? super Exchange> inputFilter)
public com.google.common.collect.FluentIterable<Exchange> getInputLog()
public RequestLog getOutputLog()
public boolean isResetElapsedTime()
public void setResetElapsedTime(boolean resetElapsedTime)
public Player setOutputCollector(String urlPrefix, String sockPath, String eventBusAddress)
public Player setOutputCollector(String urlPrefix, String sockPath, String eventBusAddress, com.google.common.base.Predicate<? super Exchange> outputFilter)
public Player setExchangeHandler(ExchangeHandler exchangeHandler)
public Player setTimingFunction(com.google.common.base.Function<Long,Long> timingFunction)
public Player setGracePeriod(long gracePeriod)
gracePeriod - gracePeriodpublic Player play()
Copyright © 2016–2020. All rights reserved.