@Test public void testCreateMetricName() { String groupName = "com.ericsson.bss.cassandra.ecaudit"; String typeName = "Audit"; String metricName = "test"; String scopeName = null; String mbeanName = "com.ericsson.bss.cassandra.ecaudit:type=Audit,name=test"; CassandraMetricsRegistry.MetricName expectedMetricName = new CassandraMetricsRegistry.MetricName(groupName, typeName, metricName, scopeName, mbeanName); CassandraMetricsRegistry.MetricName actualMetricName = AuditMetrics.createMetricName("test"); assertThat(actualMetricName).isEqualToComparingFieldByField(expectedMetricName); }
static CassandraMetricsRegistry.MetricName createMetricName(String metricName) { return new CassandraMetricsRegistry.MetricName(GROUP_NAME, METRIC_TYPE, metricName, null, createMBeanName(metricName)); }
AuditMetrics { static CassandraMetricsRegistry.MetricName createMetricName(String metricName) { return new CassandraMetricsRegistry.MetricName(GROUP_NAME, METRIC_TYPE, metricName, null, createMBeanName(metricName)); } }
AuditMetrics { static CassandraMetricsRegistry.MetricName createMetricName(String metricName) { return new CassandraMetricsRegistry.MetricName(GROUP_NAME, METRIC_TYPE, metricName, null, createMBeanName(metricName)); } AuditMetrics();   AuditMetrics(Function<CassandraMetricsRegistry.MetricName, Timer> timerFunction); }
AuditMetrics { static CassandraMetricsRegistry.MetricName createMetricName(String metricName) { return new CassandraMetricsRegistry.MetricName(GROUP_NAME, METRIC_TYPE, metricName, null, createMBeanName(metricName)); } AuditMetrics();   AuditMetrics(Function<CassandraMetricsRegistry.MetricName, Timer> timerFunction); void filterAuditRequest(long time, TimeUnit timeUnit); void logAuditRequest(long time, TimeUnit timeUnit); }
AuditMetrics { static CassandraMetricsRegistry.MetricName createMetricName(String metricName) { return new CassandraMetricsRegistry.MetricName(GROUP_NAME, METRIC_TYPE, metricName, null, createMBeanName(metricName)); } AuditMetrics();   AuditMetrics(Function<CassandraMetricsRegistry.MetricName, Timer> timerFunction); void filterAuditRequest(long time, TimeUnit timeUnit); void logAuditRequest(long time, TimeUnit timeUnit);  }