Ejemplo n.º 1
0
 public AccumulatedTimeTracker(ExecutionEnvironment executionEnvironment) {
   this.threadsToRunningBuildRuleEvent =
       new ConcurrentHashMap<>(executionEnvironment.getAvailableCores());
   this.threadsToRunningTestRuleEvent =
       new ConcurrentHashMap<>(executionEnvironment.getAvailableCores());
   this.accumulatedRuleTime = new ConcurrentHashMap<>();
 }
Ejemplo n.º 2
0
  public SuperConsoleEventBusListener(
      Console console, Clock clock, ExecutionEnvironment executionEnvironment) {
    super(console, clock);

    this.threadsToRunningEvent = new ConcurrentHashMap<>(executionEnvironment.getAvailableCores());
    this.threadsToRunningStep = new ConcurrentHashMap<>(executionEnvironment.getAvailableCores());

    this.logEvents = new ConcurrentLinkedQueue<>();

    this.renderScheduler = Executors.newScheduledThreadPool(1);
    this.testFormatter = new TestResultFormatter(console.getAnsi());
  }