public MetricName createMetricName(String metricName) { return createMetricName(type, metricName, scope); }
public CassandraMetricsRegistry.MetricName createMetricName(String metricName) { return createMetricName(type, metricName, scope); }
public CassandraMetricsRegistry.MetricName createMetricName(String metricName) { return createMetricName(type, metricName, scope); }
public CassandraMetricsRegistry.MetricName createMetricName(String metricName) { return createMetricName(type, metricName, scope); }
public CassandraMetricsRegistry.MetricName createMetricName(String metricName) { return createMetricName(type, metricName, scope); }
@Override public void onMeterAdded(String metricName, Meter meter) { // Given metricName consists of appender name in logback.xml + "." + metric name. // We first separate appender name int separator = metricName.lastIndexOf('.'); String appenderName = metricName.substring(0, separator); String metric = metricName.substring(separator + 1); // remove "." ObjectName name = DefaultNameFactory.createMetricName(appenderName, metric, null).getMBeanName(); CassandraMetricsRegistry.Metrics.registerMBean(meter, name); } });
@Override public void onMeterAdded(String metricName, Meter meter) { // Given metricName consists of appender name in logback.xml + "." + metric name. // We first separate appender name int separator = metricName.lastIndexOf('.'); String appenderName = metricName.substring(0, separator); String metric = metricName.substring(separator + 1); // remove "." ObjectName name = DefaultNameFactory.createMetricName(appenderName, metric, null).getMBeanName(); CassandraMetricsRegistry.Metrics.registerMBean(meter, name); } });
@Override public void onMeterAdded(String metricName, Meter meter) { // Given metricName consists of appender name in logback.xml + "." + metric name. // We first separate appender name int separator = metricName.lastIndexOf('.'); String appenderName = metricName.substring(0, separator); String metric = metricName.substring(separator + 1); // remove "." ObjectName name = DefaultNameFactory.createMetricName(appenderName, metric, null).getMBeanName(); CassandraMetricsRegistry.Metrics.registerMBean(meter, name); } });
MemtablePool(long maxOnHeapMemory, long maxOffHeapMemory, float cleanThreshold, Runnable cleaner) { this.onHeap = getSubPool(maxOnHeapMemory, cleanThreshold); this.offHeap = getSubPool(maxOffHeapMemory, cleanThreshold); this.cleaner = getCleaner(cleaner); blockedOnAllocating = CassandraMetricsRegistry.Metrics.timer(new DefaultNameFactory("MemtablePool") .createMetricName("BlockedOnAllocation")); if (this.cleaner != null) this.cleaner.start(); }
MemtablePool(long maxOnHeapMemory, long maxOffHeapMemory, float cleanThreshold, Runnable cleaner) { this.onHeap = getSubPool(maxOnHeapMemory, cleanThreshold); this.offHeap = getSubPool(maxOffHeapMemory, cleanThreshold); this.cleaner = getCleaner(cleaner); blockedOnAllocating = CassandraMetricsRegistry.Metrics.timer(new DefaultNameFactory("MemtablePool") .createMetricName("BlockedOnAllocation")); if (this.cleaner != null) this.cleaner.start(); }
MemtablePool(long maxOnHeapMemory, long maxOffHeapMemory, float cleanThreshold, Runnable cleaner) { this.onHeap = getSubPool(maxOnHeapMemory, cleanThreshold); this.offHeap = getSubPool(maxOffHeapMemory, cleanThreshold); this.cleaner = getCleaner(cleaner); blockedOnAllocating = CassandraMetricsRegistry.Metrics.timer(new DefaultNameFactory("MemtablePool") .createMetricName("BlockedOnAllocation")); if (this.cleaner != null) this.cleaner.start(); }
MemtablePool(long maxOnHeapMemory, long maxOffHeapMemory, float cleanThreshold, Runnable cleaner) { this.onHeap = getSubPool(maxOnHeapMemory, cleanThreshold); this.offHeap = getSubPool(maxOffHeapMemory, cleanThreshold); this.cleaner = getCleaner(cleaner); blockedOnAllocating = CassandraMetricsRegistry.Metrics.timer(new DefaultNameFactory("MemtablePool") .createMetricName("BlockedOnAllocation")); if (this.cleaner != null) this.cleaner.start(); }