/** * Name of the datacenter that will be considered "local" for latency load balancing. When * unset, load-balancing is round-robin. */ public Builder localDc(@Nullable String localDc) { this.localDc = localDc; return this; }
/** Will throw an exception on startup if authentication fails. No default. */ public Builder password(@Nullable String password) { this.password = password; return this; }
/** * Version of {@link zipkin.SpanStore#getDependencies} that returns {@link ListenableFuture}. */ ListenableFuture<List<DependencyLink>> getDependencies(long endTs, @Nullable Long lookback); }
DependencyLinkV2SpanIterator(PeekingIterator<Record> delegate, @Nullable Long traceIdHi, long traceIdLo) { this.delegate = delegate; this.traceIdHi = traceIdHi; this.traceIdLo = traceIdLo; }
/** Will throw an exception on startup if authentication fails. No default. */ public Builder username(@Nullable String username) { this.username = username; return this; }
public Builder listenerProvider(@Nullable ExecuteListenerProvider listenerProvider) { this.listenerProvider = listenerProvider; return this; }
/** * Version of {@link zipkin.SpanStore#getDependencies} that returns {@link ListenableFuture}. */ ListenableFuture<List<DependencyLink>> getDependencies(long endTs, @Nullable Long lookback); }
@Override public void toJson(JsonWriter writer, @Nullable BinaryAnnotation value) throws IOException { throw new UnsupportedOperationException(); } };
@Override public void toJson(JsonWriter writer, @Nullable Endpoint value) throws IOException { throw new UnsupportedOperationException(); } }.nullSafe();
@Override public void toJson(JsonWriter writer, @Nullable Span value) throws IOException { throw new UnsupportedOperationException(); } };
@Override public void toJson(JsonWriter writer, @Nullable Annotation value) throws IOException { throw new UnsupportedOperationException(); } };
@Override public void toJson(JsonWriter writer, @Nullable DependencyLink value) throws IOException { throw new UnsupportedOperationException(); } };
@Override public Set<Object> apply(@Nullable List<Map<Object, ?>> input) { Set<Object> traceIds = Sets.newLinkedHashSet(input.get(0).keySet()); for (int i = 1; i < input.size(); i++) { traceIds.retainAll(input.get(i).keySet()); } return traceIds; }
@Override public List<String> apply(@Nullable ResultSet input) { Set<String> spanNames = new HashSet<>(); for (Row row : input) { spanNames.add(row.getString("span_name")); } return Ordering.natural().sortedCopy(spanNames); } }
@Nullable @Override public Integer statusCode(@Nonnull Response response) { return response.getStatusCode(); } }
@Nullable @Override public Integer statusCode(@Nonnull Response response) { return response.getStatusCode(); } }
@Nullable @Override public String requestHeader(@Nonnull Invocation invocation, @Nonnull String key) { return invocation.getContext().get(key); }
@Override public ListenableFuture<Map<Long, Long>> apply(@Nullable List<String> serviceNames) { return getTraceIdsByServiceNames(serviceNames, request.endTs * 1000, request.lookback * 1000, traceIndexFetchSize); } });
@Override public List<String> apply(@Nullable ResultSet input) { Set<String> serviceNames = new HashSet<>(); for (Row row : input) { serviceNames.add(row.getString("service_name")); } return Ordering.natural().sortedCopy(serviceNames); } }