public abstract class BuildRuleEvent extends AbstractBuckEvent implements WorkAdvanceEvent
Modifier and Type | Class and Description |
---|---|
static class |
BuildRuleEvent.BeginningBuildRuleEvent
A
BuildRuleEvent that denotes beginning of computation for a particular BuildRule . |
static class |
BuildRuleEvent.EndingBuildRuleEvent
A
BuildRuleEvent that denotes ending of computation for a particular BuildRule . |
static class |
BuildRuleEvent.Finished
Marks the end of processing a build rule.
|
static class |
BuildRuleEvent.FinishedRuleKeyCalc
Marks the completion of processing a rule to calculate its rule key.
|
static class |
BuildRuleEvent.Resumed
Marks the continuation of processing a rule.
|
static class |
BuildRuleEvent.Started
Marks the start of processing a build rule.
|
static class |
BuildRuleEvent.StartedRuleKeyCalc
Marks the start of processing a rule to calculate its rule key.
|
static class |
BuildRuleEvent.Suspended
Marks a rule is suspended from processing.
|
static class |
BuildRuleEvent.WillBuildLocally
Denotes that a particular build rule will be built locally.
|
Modifier and Type | Field and Description |
---|---|
protected ClockDuration |
duration
Accumulated duration of work spent on this rule up until this event occurred.
|
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 | Constructor and Description |
---|---|
protected |
BuildRuleEvent(EventKey eventKey,
BuildRule rule) |
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
getTimestampMillis, storeLastInstanceAndReplayForNewClients
@Nullable protected ClockDuration duration
public BuildRule getBuildRule()
public ClockDuration getDuration()
public String getValueString()
getValueString
in class AbstractBuckEvent
public final String getEventName()
getEventName
in interface BuckEventExternalInterface
public abstract boolean isRuleRunningAfterThisEvent()
public static BuildRuleEvent.Started started(BuildRule rule, BuildRuleDurationTracker tracker)
public static BuildRuleEvent.Finished finished(BuildRuleEvent.BeginningBuildRuleEvent beginning, BuildRuleKeys ruleKeys, BuildRuleStatus status, CacheResult cacheResult, Optional<BuildId> origin, Optional<BuildRuleSuccessType> successType, UploadToCacheResultType uploadToCacheResultType, Optional<com.google.common.hash.HashCode> outputHash, Optional<Long> outputSize, Optional<BuildRuleDiagnosticData> diagnosticData, Optional<ManifestFetchResult> manifestFetchResult, Optional<ManifestStoreResult> manifestStoreResult, Optional<Pair<Long,Long>> ruleKeyCacheCheckTimestamps, Optional<Pair<Long,Long>> inputRuleKeyCacheCheckTimestamps, Optional<Pair<Long,Long>> manifestRuleKeyCacheCheckTimestamps, Optional<Pair<Long,Long>> buildTimestamps, Optional<String> strategyResult)
public static BuildRuleEvent.StartedRuleKeyCalc ruleKeyCalculationStarted(BuildRule rule, BuildRuleDurationTracker tracker)
public static BuildRuleEvent.FinishedRuleKeyCalc ruleKeyCalculationFinished(BuildRuleEvent.StartedRuleKeyCalc started, RuleKeyFactory<RuleKey> ruleKeyFactory)
public static BuildRuleEvent.Suspended suspended(BuildRuleEvent.BeginningBuildRuleEvent beginning, RuleKeyFactory<RuleKey> ruleKeyFactory)
public static BuildRuleEvent.Resumed resumed(BuildRule rule, BuildRuleDurationTracker tracker, RuleKeyFactory<RuleKey> ruleKeyFactory)
public static BuildRuleEvent.WillBuildLocally willBuildLocally(BuildRule rule)
public static Scope ruleKeyCalculationScope(BuckEventBus eventBus, BuildRule rule, BuildRuleDurationTracker tracker, RuleKeyFactory<RuleKey> ruleKeyFactory)