private Finished( Started event, ImmutableMap<String, Object> data, boolean wasUploadSuccessful, Optional<CacheResult> cacheResult) { super( event.getEventKey(), CACHE_MODE, event.getOperation(), event.getTarget(), event.getRuleKeys(), event.getInvocationType(), cacheResult); this.startedEvent = event; this.eventInfo = data; this.requestDurationMillis = -1; this.wasUploadSuccessful = wasUploadSuccessful; }
@Override public void configure( long timestampMillis, long nanoTime, long userThreadNanoTime, long threadId, BuildId buildId) { super.configure(timestampMillis, nanoTime, userThreadNanoTime, threadId, buildId); requestDurationMillis = timestampMillis - startedEvent.getTimestamp(); }
protected Finished(Started started) { super(started.getBuildTarget()); chain(started); }
protected Finished(Started started, Optional<TargetGraph> graph) { super(started.getBuildTargets()); this.graph = graph; chain(started); }
public Finished(Started started) { super(started.getEventKey(), started.uri); }
@Subscribe public void started(Started event) { bus.publish(new ProjectStartedMessage(event.getId(), event.getStartedAt())); }