public AccumulatedTimeTracker(ExecutionEnvironment executionEnvironment) { this.threadsToRunningBuildRuleEvent = new ConcurrentHashMap<>(executionEnvironment.getAvailableCores()); this.threadsToRunningTestRuleEvent = new ConcurrentHashMap<>(executionEnvironment.getAvailableCores()); this.accumulatedRuleTime = new ConcurrentHashMap<>(); }
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()); }