public static HttpArtifactCacheEvent.Scheduled postStoreScheduled( BuckEventBus eventBus, long threadId, String target, long timeInMs) { HttpArtifactCacheEvent.Scheduled storeScheduled = HttpArtifactCacheEvent.newStoreScheduledEvent(Optional.of(target), ImmutableSet.of()); eventBus.postWithoutConfiguring( configureTestEventAtTime(storeScheduled, timeInMs, TimeUnit.MILLISECONDS, threadId)); return storeScheduled; }
private static HttpArtifactCacheEvent.Finished.Builder createBuilder() { HttpArtifactCacheEvent.Scheduled scheduledEvent = HttpArtifactCacheEvent.newStoreScheduledEvent( Optional.of("target"), ImmutableSet.<RuleKey>of()); HttpArtifactCacheEvent.Started startedEvent = HttpArtifactCacheEvent.newStoreStartedEvent(scheduledEvent); configureEvent(startedEvent); return HttpArtifactCacheEvent.newFinishedEventBuilder(startedEvent); }