Class Player


  • public class Player
    extends java.lang.Object
    Replays requests from a request log.
    Author:
    https://github.com/lbovet [Laurent Bovet]
    • Constructor Detail

      • Player

        public Player()
    • Method Detail

      • setInputLog

        public Player setInputLog​(com.google.common.collect.FluentIterable<Exchange> inputLog)
      • setInputLog

        public Player setInputLog​(java.lang.String urlPrefix,
                                  java.lang.String inputLogLocation)
      • setInputLog

        public Player setInputLog​(java.lang.String urlPrefix,
                                  java.lang.String inputLogLocation,
                                  com.google.common.base.Predicate<? super Exchange> inputFilter)
      • getInputLog

        public com.google.common.collect.FluentIterable<Exchange> getInputLog()
      • isResetElapsedTime

        public boolean isResetElapsedTime()
      • setResetElapsedTime

        public void setResetElapsedTime​(boolean resetElapsedTime)
      • setOutputCollector

        public Player setOutputCollector​(Collector collector)
      • setOutputCollector

        public Player setOutputCollector​(java.lang.String urlPrefix,
                                         java.lang.String sockPath,
                                         java.lang.String eventBusAddress)
      • setOutputCollector

        public Player setOutputCollector​(java.lang.String urlPrefix,
                                         java.lang.String sockPath,
                                         java.lang.String eventBusAddress,
                                         com.google.common.base.Predicate<? super Exchange> outputFilter)
      • setTimingFunction

        public Player setTimingFunction​(com.google.common.base.Function<java.lang.Long,​java.lang.Long> timingFunction)
      • setGracePeriod

        public Player setGracePeriod​(long gracePeriod)
        The time (ms) at the end of the scenario to wait before closing the collector. This is needed to collect the last log events. Defaults to 200 ms.
        Parameters:
        gracePeriod - gracePeriod
        Returns:
        Player