public abstract class ParseBuckFileEvent extends AbstractBuckEvent implements WorkAdvanceEvent
| Modifier and Type | Class and Description |
|---|---|
static class |
ParseBuckFileEvent.Finished
The event raised when build file parsing is finished
|
static class |
ParseBuckFileEvent.ParserKind
The kind of parser used to parse a particular build file.
|
static class |
ParseBuckFileEvent.Started
The event raised when build file parsing is 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 | Constructor and Description |
|---|---|
protected |
ParseBuckFileEvent(EventKey eventKey,
Path buckFilePath,
Class<? extends FileParser<?>> parserClass) |
| Modifier and Type | Method and Description |
|---|---|
static ParseBuckFileEvent.Finished |
finished(ParseBuckFileEvent.Started started,
int rulesCount,
long processedBytes,
Optional<String> profile)
Create an event when parsing of build file finishes
|
Path |
getBuckFilePath() |
Class<? extends FileParser<?>> |
getParserClass() |
String |
getValueString() |
static ParseBuckFileEvent.Started |
started(Path buckFilePath,
ParseBuckFileEvent.ParserKind parser,
Class<? extends FileParser<?>> parserClass)
Create an event when parsing of build file starts
|
configure, equals, getBuildId, getEventKey, getNanoTime, getThreadId, getThreadUserNanoTime, getTimestampMillis, hashCode, isConfigured, isRelatedTo, toLogMessage, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitconfigure, getBuildId, getEventKey, getNanoTime, getThreadId, getThreadUserNanoTime, isConfigured, isRelatedTo, toLogMessagegetEventName, getTimestampMillis, storeLastInstanceAndReplayForNewClientsprotected ParseBuckFileEvent(EventKey eventKey, Path buckFilePath, Class<? extends FileParser<?>> parserClass)
public Path getBuckFilePath()
public Class<? extends FileParser<?>> getParserClass()
public String getValueString()
getValueString in class AbstractBuckEventpublic static ParseBuckFileEvent.Started started(Path buckFilePath, ParseBuckFileEvent.ParserKind parser, Class<? extends FileParser<?>> parserClass)
buckFilePath - Path to a build file that is about to start parsingparser - Parser being used to parse this fileparserClass - Java class of a parser implementationpublic static ParseBuckFileEvent.Finished finished(ParseBuckFileEvent.Started started, int rulesCount, long processedBytes, Optional<String> profile)
started - Event created when corresponding build file parsing was startedrulesCount - Total number of rules parsed from this build fileprocessedBytes - Total number of bytes read while parsing this build file, if applicableprofile - This is the value of getProfile() from PythonDSL parser result. TODO(buck_team)
Update description with real meaning