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();
 }
Exemplo n.º 3
0
 protected Finished(Started started) {
   super(started.getBuildTarget());
   chain(started);
 }
Exemplo n.º 4
0
 protected Finished(Started started, Optional<TargetGraph> graph) {
   super(started.getBuildTargets());
   this.graph = graph;
   chain(started);
 }
Exemplo n.º 5
0
 public Finished(Started started) {
   super(started.getEventKey(), started.uri);
 }
Exemplo n.º 6
0
 @Subscribe
 public void started(Started event) {
   bus.publish(new ProjectStartedMessage(event.getId(), event.getStartedAt()));
 }