public abstract static class BuildRuleEvent.BeginningBuildRuleEvent extends BuildRuleEvent
BuildRuleEvent
that denotes beginning of computation for a particular BuildRule
.BuildRuleEvent.BeginningBuildRuleEvent, BuildRuleEvent.EndingBuildRuleEvent, BuildRuleEvent.Finished, BuildRuleEvent.FinishedRuleKeyCalc, BuildRuleEvent.Resumed, BuildRuleEvent.Started, BuildRuleEvent.StartedRuleKeyCalc, BuildRuleEvent.Suspended, BuildRuleEvent.WillBuildLocally
duration
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
Constructor and Description |
---|
BeginningBuildRuleEvent(EventKey eventKey,
BuildRule rule,
BuildRuleDurationTracker tracker) |
Modifier and Type | Method and Description |
---|---|
void |
configure(long timestampMillis,
long nanoTime,
long threadUserNanoTime,
long threadId,
BuildId buildId)
Method to configure an event before posting it to the
BuckEventBus . |
boolean |
isRuleRunningAfterThisEvent() |
finished, getBuildRule, getDuration, getEventName, getValueString, resumed, ruleKeyCalculationFinished, ruleKeyCalculationScope, ruleKeyCalculationStarted, started, suspended, willBuildLocally
equals, getBuildId, getEventKey, getNanoTime, getThreadId, getThreadUserNanoTime, getTimestampMillis, hashCode, isConfigured, isRelatedTo, toLogMessage, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBuildId, getEventKey, getNanoTime, getThreadId, getThreadUserNanoTime, isConfigured, isRelatedTo, toLogMessage
getTimestampMillis, storeLastInstanceAndReplayForNewClients
public BeginningBuildRuleEvent(EventKey eventKey, BuildRule rule, BuildRuleDurationTracker tracker)
public void configure(long timestampMillis, long nanoTime, long threadUserNanoTime, long threadId, BuildId buildId)
AbstractBuckEvent
BuckEventBus
. This method should
only be invoked once per event, and only by the BuckEventBus
in production code.configure
in interface BuckEvent
configure
in class AbstractBuckEvent
public final boolean isRuleRunningAfterThisEvent()
isRuleRunningAfterThisEvent
in class BuildRuleEvent