public abstract class CommandEvent extends AbstractBuckEvent implements WorkAdvanceEvent
Modifier and Type | Class and Description |
---|---|
static class |
CommandEvent.Finished |
static class |
CommandEvent.Interrupted |
static class |
CommandEvent.Started |
BUILD_FINISHED, BUILD_REPORT, BUILD_STARTED, BUILD_STATUS_EVENT, CACHE_RATE_STATS_UPDATE_EVENT, INDIVIDUAL_TEST_AWAITING_RESULTS, INSTALL_STARTED, PARSE_FINISHED, PARSE_STARTED, PROJECT_GENERATION_FINISHED, PROJECT_GENERATION_STARTED, TEST_RUN_STARTED
Modifier and Type | Method and Description |
---|---|
static CommandEvent.Finished |
finished(CommandEvent.Started started,
ExitCode exitCode) |
com.google.common.collect.ImmutableList<String> |
getArgs() |
String |
getCommandName() |
OptionalLong |
getDaemonUptime() |
long |
getPid() |
protected String |
getValueString() |
static CommandEvent.Interrupted |
interrupted(CommandEvent.Started started,
ExitCode exitCode) |
boolean |
isDaemon() |
static CommandEvent.Started |
started(String commandName,
com.google.common.collect.ImmutableList<String> args,
Path clientSubdirectory,
OptionalLong daemonUptime,
long pid) |
configure, equals, getBuildId, getEventKey, getNanoTime, getThreadId, getThreadUserNanoTime, getTimestampMillis, hashCode, isConfigured, isRelatedTo, toLogMessage, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
configure, getBuildId, getEventKey, getNanoTime, getThreadId, getThreadUserNanoTime, isConfigured, isRelatedTo, toLogMessage
getEventName, getTimestampMillis, storeLastInstanceAndReplayForNewClients
public String getCommandName()
public com.google.common.collect.ImmutableList<String> getArgs()
getCommandName()
.public boolean isDaemon()
public OptionalLong getDaemonUptime()
public long getPid()
protected String getValueString()
getValueString
in class AbstractBuckEvent
public static CommandEvent.Started started(String commandName, com.google.common.collect.ImmutableList<String> args, Path clientSubdirectory, OptionalLong daemonUptime, long pid)
public static CommandEvent.Finished finished(CommandEvent.Started started, ExitCode exitCode)
public static CommandEvent.Interrupted interrupted(CommandEvent.Started started, ExitCode exitCode)