public abstract class ActionExecutionContext extends Object
Action
s can use for its Action.execute(ActionExecutionContext)
Constructor and Description |
---|
ActionExecutionContext() |
Modifier and Type | Method and Description |
---|---|
abstract ArtifactFilesystem |
getArtifactFilesystem() |
protected abstract BuckEventBus |
getBuckEventBus() |
abstract Map<String,String> |
getEnvironment() |
abstract ProcessExecutor |
getProcessExecutor() |
abstract Path |
getWorkingDirectory() |
void |
logError(Throwable e,
String msg,
Object... formatArgs)
Logs an error
|
static ActionExecutionContext |
of(BuckEventBus buckEventBus,
ArtifactFilesystem artifactFilesystem,
ProcessExecutor processExecutor,
Map<String,? extends String> environment,
Path workingDirectory) |
void |
postEvent(BuckEvent event)
posts the given event to the global event bus
|
protected abstract BuckEventBus getBuckEventBus()
public abstract ArtifactFilesystem getArtifactFilesystem()
ArtifactFilesystem
the Action
can access for it's execution. This is
a filesystem that operates on Artifact
s without
requiring actions to be aware of the actual underlying paths.public void postEvent(BuckEvent event)
public abstract ProcessExecutor getProcessExecutor()
public abstract Map<String,String> getEnvironment()
public abstract Path getWorkingDirectory()
public static ActionExecutionContext of(BuckEventBus buckEventBus, ArtifactFilesystem artifactFilesystem, ProcessExecutor processExecutor, Map<String,? extends String> environment, Path workingDirectory)