public static class HttpArtifactCacheEvent.Finished extends ArtifactCacheEvent.Finished
Modifier and Type | Class and Description |
---|---|
static class |
HttpArtifactCacheEvent.Finished.Builder |
ArtifactCacheEvent.CacheMode, ArtifactCacheEvent.Finished, ArtifactCacheEvent.InvocationType, ArtifactCacheEvent.Operation, ArtifactCacheEvent.Started, ArtifactCacheEvent.StoreType
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 |
---|
Finished(ArtifactCacheEvent.Started event,
HttpArtifactCacheEvent.HttpArtifactCacheEventStoreData data) |
Finished(ArtifactCacheEvent.Started event,
Optional<BuildTarget> target,
HttpArtifactCacheEvent.HttpArtifactCacheEventFetchData data) |
Modifier and Type | Method and Description |
---|---|
void |
configure(long timestampMillis,
long nanoTime,
long userThreadNanoTime,
long threadId,
BuildId buildId)
Method to configure an event before posting it to the
BuckEventBus . |
String |
getEventName() |
HttpArtifactCacheEvent.HttpArtifactCacheEventFetchData |
getFetchData() |
long |
getRequestDurationMillis() |
ArtifactCacheEvent.Started |
getStartedEvent() |
HttpArtifactCacheEvent.HttpArtifactCacheEventStoreData |
getStoreData() |
equals, getCacheResult, hashCode, isSuccess
getCategory, getInvocationType, getOperation, getRuleKeys, getStoreType, getTarget, getValueString
getBuildId, getEventKey, getNanoTime, getThreadId, getThreadUserNanoTime, getTimestampMillis, isConfigured, isRelatedTo, toLogMessage, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBuildId, getEventKey, getNanoTime, getThreadId, getThreadUserNanoTime, isConfigured, isRelatedTo, toLogMessage
getTimestampMillis, storeLastInstanceAndReplayForNewClients
public Finished(ArtifactCacheEvent.Started event, Optional<BuildTarget> target, HttpArtifactCacheEvent.HttpArtifactCacheEventFetchData data)
public Finished(ArtifactCacheEvent.Started event, HttpArtifactCacheEvent.HttpArtifactCacheEventStoreData data)
public long getRequestDurationMillis()
public HttpArtifactCacheEvent.HttpArtifactCacheEventFetchData getFetchData()
public ArtifactCacheEvent.Started getStartedEvent()
public HttpArtifactCacheEvent.HttpArtifactCacheEventStoreData getStoreData()
public void configure(long timestampMillis, long nanoTime, long userThreadNanoTime, 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 String getEventName()
getEventName
in interface BuckEventExternalInterface
getEventName
in class ArtifactCacheEvent