Search in sources :

Example 1 with SuperConsoleEventBusListener

use of com.facebook.buck.event.listener.SuperConsoleEventBusListener in project buck by facebook.

the class Main method createConsoleEventListener.

private AbstractConsoleEventBusListener createConsoleEventListener(Clock clock, SuperConsoleConfig config, Console console, TestResultSummaryVerbosity testResultSummaryVerbosity, ExecutionEnvironment executionEnvironment, Optional<WebServer> webServer, Locale locale, Path testLogPath) {
    if (isSuperConsoleEnabled(console)) {
        SuperConsoleEventBusListener superConsole = new SuperConsoleEventBusListener(config, console, clock, testResultSummaryVerbosity, executionEnvironment, webServer, locale, testLogPath, TimeZone.getDefault());
        superConsole.startRenderScheduler(SUPER_CONSOLE_REFRESH_RATE.toMillis(), TimeUnit.MILLISECONDS);
        return superConsole;
    }
    return new SimpleConsoleEventBusListener(console, clock, testResultSummaryVerbosity, locale, testLogPath, executionEnvironment);
}
Also used : SuperConsoleEventBusListener(com.facebook.buck.event.listener.SuperConsoleEventBusListener) SimpleConsoleEventBusListener(com.facebook.buck.event.listener.SimpleConsoleEventBusListener)

Aggregations

SimpleConsoleEventBusListener (com.facebook.buck.event.listener.SimpleConsoleEventBusListener)1 SuperConsoleEventBusListener (com.facebook.buck.event.listener.SuperConsoleEventBusListener)1