@Test public void add() { testSubject.add(new QueryDefinition(DEFAULT_CONTEXT, "a"), "source", "target", DEFAULT_CONTEXT, 1L); }
public void add(QueryDefinition query, String sourceClientId, String targetClientId, String context, long duration) { try { timer(query, sourceClientId, targetClientId, context).record(duration, TimeUnit.MILLISECONDS); } catch (Exception ex) { logger.debug("Failed to create timer", ex); } }
QueryMetricsRegistry { public void add(QueryDefinition query, String sourceClientId, String targetClientId, String context, long duration) { try { timer(query, sourceClientId, targetClientId, context).record(duration, TimeUnit.MILLISECONDS); } catch (Exception ex) { logger.debug("Failed to create timer", ex); } } }
QueryMetricsRegistry { public void add(QueryDefinition query, String sourceClientId, String targetClientId, String context, long duration) { try { timer(query, sourceClientId, targetClientId, context).record(duration, TimeUnit.MILLISECONDS); } catch (Exception ex) { logger.debug("Failed to create timer", ex); } } QueryMetricsRegistry(MeterFactory meterFactory); }
QueryMetricsRegistry { public void add(QueryDefinition query, String sourceClientId, String targetClientId, String context, long duration) { try { timer(query, sourceClientId, targetClientId, context).record(duration, TimeUnit.MILLISECONDS); } catch (Exception ex) { logger.debug("Failed to create timer", ex); } } QueryMetricsRegistry(MeterFactory meterFactory); void add(QueryDefinition query,
                    String sourceClientId,
                    String targetClientId,
                    String context,
                    long duration); ClusterMetric clusterMetric(QueryDefinition query, String targetClientId, String context); QueryMetric queryMetric(QueryDefinition query, String targetClientId, String context, String componentName); Gauge gauge(BaseMetricName name, T objectToWatch, ToDoubleFunction<T> gaugeFunction); MeterFactory.RateMeter rateMeter(String context, BaseMetricName meterName); }
QueryMetricsRegistry { public void add(QueryDefinition query, String sourceClientId, String targetClientId, String context, long duration) { try { timer(query, sourceClientId, targetClientId, context).record(duration, TimeUnit.MILLISECONDS); } catch (Exception ex) { logger.debug("Failed to create timer", ex); } } QueryMetricsRegistry(MeterFactory meterFactory); void add(QueryDefinition query,
                    String sourceClientId,
                    String targetClientId,
                    String context,
                    long duration); ClusterMetric clusterMetric(QueryDefinition query, String targetClientId, String context); QueryMetric queryMetric(QueryDefinition query, String targetClientId, String context, String componentName); Gauge gauge(BaseMetricName name, T objectToWatch, ToDoubleFunction<T> gaugeFunction); MeterFactory.RateMeter rateMeter(String context, BaseMetricName meterName);  }