public class SuperConsoleEventBusListener extends AbstractConsoleEventBusListener
actionGraphEvents, actionGraphFinished, actionGraphStarted, ansi, buildDetailsCommands, buildFinished, buildRuleThreadTracker, buildStarted, clock, commandFinished, console, installFinished, installStarted, networkStatsTracker, numRulesCompleted, parseStats, progressEstimator, projectGenerationFinished, projectGenerationStarted, publicAnnouncements, ruleCount, UNFINISHED_EVENT_PAIR, verbosity, watchmanFinished, watchmanStarted
Constructor and Description |
---|
SuperConsoleEventBusListener(SuperConsoleConfig config,
RenderingConsole renderingConsole,
Clock clock,
TestResultSummaryVerbosity summaryVerbosity,
ExecutionEnvironment executionEnvironment,
Locale locale,
Path testLogPath,
BuildId buildId,
boolean printBuildId,
Optional<String> buildDetailsTemplate,
com.google.common.collect.ImmutableSet<String> buildDetailsCommands,
com.google.common.collect.ImmutableList<AdditionalConsoleLineProvider> additionalConsoleLineProviders,
int maxConcurrentReExecutions) |
SuperConsoleEventBusListener(SuperConsoleConfig config,
RenderingConsole renderingConsole,
Clock clock,
TestResultSummaryVerbosity summaryVerbosity,
ExecutionEnvironment executionEnvironment,
Locale locale,
Path testLogPath,
long minimumDurationMillisecondsToShowParse,
long minimumDurationMillisecondsToShowActionGraph,
long minimumDurationMillisecondsToShowWatchman,
boolean hideEmptyDownload,
BuildId buildId,
boolean printBuildId,
Optional<String> buildDetailsTemplate,
com.google.common.collect.ImmutableSet<String> buildDetailsCommands,
com.google.common.collect.ImmutableList<AdditionalConsoleLineProvider> additionalConsoleLineProviders,
int maxConcurrentReExecutions) |
actionGraphFinished, actionGraphStarted, addLineFromEventInterval, addLineFromEvents, aggregateFinishedEvent, aggregateStartedEvent, buildFinished, buildRuleFinished, buildRuleResumed, buildRuleStarted, buildRuleSuspended, buildStarted, commandFinished, commandStartedEvent, convertToAllCapsIfNeeded, formatConsoleEvent, getApproximateBuildProgress, getBuildDetailsLine, getBuildLogLine, getEstimatedProgressOfCreatingActionGraph, getEstimatedProgressOfGeneratingProjectFiles, getEstimatedProgressOfParsingBuckFiles, getEventsBetween, getNetworkStatsLine, getOptionalBuildLineSuffix, getTotalCompletedTimeFromEventIntervals, getWorkingTimeFromLastStartUntilNow, installFinished, installStarted, logEventInterval, logEventInterval, logHttpCacheUploads, projectGenerationFinished, projectGenerationProcessedTarget, projectGenerationStarted, register, renderRemoteUploads, ruleCountCalculated, ruleCountUpdated, setProgressEstimator, setPublicAnnouncements, testRuleFinished, testRuleStarted, watchmanFinished, watchmanStarted
public SuperConsoleEventBusListener(SuperConsoleConfig config, RenderingConsole renderingConsole, Clock clock, TestResultSummaryVerbosity summaryVerbosity, ExecutionEnvironment executionEnvironment, Locale locale, Path testLogPath, BuildId buildId, boolean printBuildId, Optional<String> buildDetailsTemplate, com.google.common.collect.ImmutableSet<String> buildDetailsCommands, com.google.common.collect.ImmutableList<AdditionalConsoleLineProvider> additionalConsoleLineProviders, int maxConcurrentReExecutions)
public SuperConsoleEventBusListener(SuperConsoleConfig config, RenderingConsole renderingConsole, Clock clock, TestResultSummaryVerbosity summaryVerbosity, ExecutionEnvironment executionEnvironment, Locale locale, Path testLogPath, long minimumDurationMillisecondsToShowParse, long minimumDurationMillisecondsToShowActionGraph, long minimumDurationMillisecondsToShowWatchman, boolean hideEmptyDownload, BuildId buildId, boolean printBuildId, Optional<String> buildDetailsTemplate, com.google.common.collect.ImmutableSet<String> buildDetailsCommands, com.google.common.collect.ImmutableList<AdditionalConsoleLineProvider> additionalConsoleLineProviders, int maxConcurrentReExecutions)
public com.google.common.collect.ImmutableList<String> createRenderLinesAtTime(long currentTimeMillis)
currentTimeMillis
- The time in ms to use when computing elapsed times.public int renderLinesWithMaybeCompression(MultiStateRenderer renderer, com.google.common.collect.ImmutableList.Builder<String> lines, int maxLines, boolean alwaysSortByTime)
maxLines
, compress the extraneous lines into a single line. See also #renderLinesWithMaybeTruncation
.renderer
- the renderer to use for rendering lineslines
- the builder to add the rendered lines tomaxLines
- the maximum number of lines to renderalwaysSortByTime
- true if the rendered lines should be sorted by timepublic int renderLinesWithMaybeTruncation(int numLinesAlreadyRendered, MultiStateRenderer renderer, com.google.common.collect.ImmutableList.Builder<String> lines, int maxLines)
maxLines
, return early and ignore the other lines that were to be rendered. See also
#renderLinesWithMaybeCompression
.numLinesAlreadyRendered
- the number of lines already previously rendered; used to
calculate if maxLines
has been reachedrenderer
- the renderer to use for rendering lineslines
- the builder to add the rendered lines tomaxLines
- the maximum number of lines to renderpublic void stepStarted(StepEvent.Started started)
public void stepFinished(StepEvent.Finished finished)
public void simpleLeafEventStarted(LeafEvents.SimpleLeafEvent.Started started)
public void simpleLeafEventFinished(LeafEvents.SimpleLeafEvent.Finished finished)
public void ruleKeyCalculationStarted(RuleKeyCalculationEvent.Started started)
public void ruleKeyCalculationFinished(RuleKeyCalculationEvent.Finished finished)
public void artifactCacheStarted(ArtifactCacheEvent.Started started)
public void artifactCacheFinished(ArtifactCacheEvent.Finished finished)
public void artifactCompressionStarted(ArtifactCompressionEvent.Started started)
public void artifactCompressionFinished(ArtifactCompressionEvent.Finished finished)
public void testRunStarted(TestRunEvent.Started event)
public void testRunFinished(TestRunEvent.Finished finished)
public void testStatusMessageStarted(TestStatusMessageEvent.Started started)
public void testStatusMessageFinished(TestStatusMessageEvent.Finished finished)
public void testSummaryStarted(TestSummaryEvent.Started started)
public void testSummaryFinished(TestSummaryEvent.Finished finished)
public void logEvent(ConsoleEvent event)
public void forceRender(FlushConsoleEvent event)
public void printSevereWarningDirectly(String line)
printSevereWarningDirectly
in class AbstractConsoleEventBusListener
public void actionGraphCacheHit(ActionGraphEvent.Cache.Hit event)
public void watchmanOverflow(WatchmanStatusEvent.Overflow event)
public void watchmanFileCreation(WatchmanStatusEvent.FileCreation event)
public void watchmanFileDeletion(WatchmanStatusEvent.FileDeletion event)
public void watchmanZeroFileChanges(WatchmanStatusEvent.ZeroFileChanges event)
public void symlinkInvalidation(ParsingEvent.SymlinkInvalidation event)
public void envVariableChange(ParsingEvent.EnvVariableChange event)
public void onActionEventStarted(RemoteExecutionActionEvent.Started event)
public void onActionEventTerminated(RemoteExecutionActionEvent.Terminal event)
public void onActionEventStolen(HybridLocalEvent.Stolen event)
protected String formatElapsedTime(long elapsedTimeMs)
formatElapsedTime
in class AbstractConsoleEventBusListener
public void close() throws IOException
BuckEventListener
close
in interface BuckEventListener
close
in interface Closeable
close
in interface AutoCloseable
close
in class AbstractConsoleEventBusListener
IOException
public boolean displaysEstimatedProgress()
displaysEstimatedProgress
in class AbstractConsoleEventBusListener