/** * Create LatencyMetrics with given group, type, prefix to append to each metric name, and scope. * * @param type Type name * @param namePrefix Prefix to append to each metric name * @param scope Scope of metrics */ public LatencyMetrics(String type, String namePrefix, String scope) { this(new DefaultNameFactory(type, scope), namePrefix); }
/** * Create LatencyMetrics with given group, type, prefix to append to each metric name, and scope. * * @param type Type name * @param namePrefix Prefix to append to each metric name * @param scope Scope of metrics */ public LatencyMetrics(String type, String namePrefix, String scope) { this(new DefaultNameFactory(type, scope), namePrefix); }
/** * Create LatencyMetrics with given group, type, prefix to append to each metric name, and scope. * * @param type Type name * @param namePrefix Prefix to append to each metric name * @param scope Scope of metrics */ public LatencyMetrics(String type, String namePrefix, String scope) { this(new DefaultNameFactory(type, scope), namePrefix); }
/** * Create LatencyMetrics with given group, type, prefix to append to each metric name, and scope. * * @param type Type name * @param namePrefix Prefix to append to each metric name * @param scope Scope of metrics */ public LatencyMetrics(String type, String namePrefix, String scope) { this(new DefaultNameFactory(type, scope), namePrefix); }
public DroppedMessageMetrics(MessagingService.Verb verb) { this(new DefaultNameFactory("DroppedMessage", verb.toString())); }
public DroppedMessageMetrics(MessagingService.Verb verb) { this(new DefaultNameFactory("DroppedMessage", verb.toString())); }
public DroppedMessageMetrics(MessagingService.Verb verb) { this(new DefaultNameFactory("DroppedMessage", verb.toString())); }
public StreamingMetrics(final InetAddress peer) { MetricNameFactory factory = new DefaultNameFactory("Streaming", peer.getHostAddress().replace(':', '.')); incomingBytes = Metrics.counter(factory.createMetricName("IncomingBytes")); outgoingBytes= Metrics.counter(factory.createMetricName("OutgoingBytes")); } }
public StreamingMetrics(final InetAddress peer) { MetricNameFactory factory = new DefaultNameFactory("Streaming", peer.getHostAddress().replace(':', '.')); incomingBytes = Metrics.newCounter(factory.createMetricName("IncomingBytes")); outgoingBytes= Metrics.newCounter(factory.createMetricName("OutgoingBytes")); } }
public StreamingMetrics(final InetAddress peer) { MetricNameFactory factory = new DefaultNameFactory("Streaming", peer.getHostAddress().replace(':', '.')); incomingBytes = Metrics.counter(factory.createMetricName("IncomingBytes")); outgoingBytes= Metrics.counter(factory.createMetricName("OutgoingBytes")); } }
public StreamingMetrics(final InetAddress peer) { MetricNameFactory factory = new DefaultNameFactory("Streaming", peer.getHostAddress().replace(':', '.')); incomingBytes = Metrics.counter(factory.createMetricName("IncomingBytes")); outgoingBytes= Metrics.counter(factory.createMetricName("OutgoingBytes")); } }
public DroppedMessageMetrics(MessagingService.Verb verb) { MetricNameFactory factory = new DefaultNameFactory("DroppedMessage", verb.toString()); dropped = Metrics.newMeter(factory.createMetricName("Dropped"), "dropped", TimeUnit.SECONDS); }
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(); }
factory = new DefaultNameFactory("Connection", address);
MetricNameFactory factory = new DefaultNameFactory("Cache", type);
MetricNameFactory factory = new DefaultNameFactory("Cache", type);
MetricNameFactory factory = new DefaultNameFactory("Cache", type);