public class Player
extends java.lang.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(java.lang.String urlPrefix,
java.lang.String inputLogLocation) |
Player |
setInputLog(java.lang.String urlPrefix,
java.lang.String inputLogLocation,
com.google.common.base.Predicate<? super Exchange> inputFilter) |
Player |
setOutputCollector(Collector collector) |
Player |
setOutputCollector(java.lang.String urlPrefix,
java.lang.String sockPath,
java.lang.String eventBusAddress) |
Player |
setOutputCollector(java.lang.String urlPrefix,
java.lang.String sockPath,
java.lang.String eventBusAddress,
com.google.common.base.Predicate<? super Exchange> outputFilter) |
void |
setResetElapsedTime(boolean resetElapsedTime) |
Player |
setTimingFunction(com.google.common.base.Function<java.lang.Long,java.lang.Long> timingFunction) |
public Player setInputLog(java.lang.String urlPrefix, java.lang.String inputLogLocation)
public Player setInputLog(java.lang.String urlPrefix, java.lang.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(java.lang.String urlPrefix, java.lang.String sockPath, java.lang.String eventBusAddress)
public Player setOutputCollector(java.lang.String urlPrefix, java.lang.String sockPath, java.lang.String eventBusAddress, com.google.common.base.Predicate<? super Exchange> outputFilter)
public Player setExchangeHandler(ExchangeHandler exchangeHandler)
public Player setTimingFunction(com.google.common.base.Function<java.lang.Long,java.lang.Long> timingFunction)
public Player setGracePeriod(long gracePeriod)
gracePeriod - gracePeriodpublic Player play()