public abstract class ExecutionContext extends Object implements Closeable
Modifier and Type | Class and Description |
---|---|
static class |
ExecutionContext.Builder |
Constructor and Description |
---|
ExecutionContext() |
public abstract Console getConsole()
public abstract BuckEventBus getBuckEventBus()
public abstract Platform getPlatform()
public abstract com.google.common.collect.ImmutableMap<String,String> getEnvironment()
public abstract JavaPackageFinder getJavaPackageFinder()
public abstract com.google.common.collect.ImmutableMap<ExecutorPool,com.google.common.util.concurrent.ListeningExecutorService> getExecutors()
public abstract Optional<TargetDevice> getTargetDevice()
public abstract Optional<AndroidDevicesHelper> getAndroidDevicesHelper()
public abstract Optional<ConcurrentMap<String,WorkerProcessPool>> getPersistentWorkerPools()
public abstract CellPathResolver getCellPathResolver()
public abstract Cells getCells()
public abstract Path getBuildCellRootPath()
public abstract ProcessExecutor getProcessExecutor()
public abstract ProjectFilesystemFactory getProjectFilesystemFactory()
@Value.Default public long getDefaultTestTimeoutMillis()
@Value.Default public boolean isCodeCoverageEnabled()
@Value.Default public boolean isInclNoLocationClassesEnabled()
@Value.Default public boolean shouldReportAbsolutePaths()
@Value.Default public boolean isDebugEnabled()
@Value.Default public RuleKeyDiagnosticsMode getRuleKeyDiagnosticsMode()
@Value.Default public boolean isTruncateFailingCommandEnabled()
@Value.Default public ConcurrentMap<String,WorkerProcessPool> getWorkerProcessPools()
@Value.Default public ConcurrencyLimit getConcurrencyLimit()
@Value.Default public ClassLoaderCache getClassLoaderCache()
@Value.Derived public Verbosity getVerbosity()
@Value.Derived public PrintStream getStdErr()
@Value.Derived public PrintStream getStdOut()
@Value.Derived public BuildId getBuildId()
@Value.Derived public Ansi getAnsi()
public void postEvent(BuckEvent event)
public ExecutionContext createSubContext(PrintStream newStdout, PrintStream newStderr, Optional<Verbosity> verbosityOverride)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public static ExecutionContext.Builder builder()
public ExecutionContext withProcessExecutor(ProcessExecutor processExecutor)
public ExecutionContext withBuildCellRootPath(Path cellRootPath)
public ExecutionContext withConsole(Console console)