Package | Description |
---|---|
com.espertech.esper.runtime.internal.metrics.codahale_metrics.metrics |
Metrics (Codahale).
|
com.espertech.esper.runtime.internal.metrics.codahale_metrics.metrics.core |
Metrics core (Codehale).
|
com.espertech.esper.runtime.internal.metrics.codahale_metrics.metrics.reporting |
Metrics reporting (Codehale).
|
com.espertech.esper.runtime.internal.metrics.jmx |
Modifier and Type | Method and Description |
---|---|
static MetricName |
MetricNameFactory.name(String runtimeURI,
String type) |
static MetricName |
MetricNameFactory.name(String runtimeURI,
String type,
Class clazz) |
Modifier and Type | Method and Description |
---|---|
static Counter |
Metrics.newCounter(MetricName metricName)
Creates a new
Counter and registers it under the given metric
name. |
static <T> Gauge<T> |
Metrics.newGauge(MetricName metricName,
Gauge<T> metric)
Given a new
Gauge , registers it under the given metric name. |
static Histogram |
Metrics.newHistogram(MetricName metricName)
Creates a new non-biased
Histogram and registers it under the
given metric name. |
static Histogram |
Metrics.newHistogram(MetricName metricName,
boolean biased)
Creates a new
Histogram and registers it under the given
metric name. |
static Meter |
Metrics.newMeter(MetricName metricName,
String eventType,
TimeUnit unit)
Creates a new
Meter and registers it under the given metric
name. |
static Timer |
Metrics.newTimer(MetricName metricName,
TimeUnit durationUnit,
TimeUnit rateUnit)
Creates a new
Timer and registers it under the given metric
name. |
Modifier and Type | Method and Description |
---|---|
protected MetricName |
MetricsRegistry.createName(Class<?> klass,
String name,
String scope)
Override to customize how
MetricName s are created. |
Modifier and Type | Method and Description |
---|---|
Map<MetricName,Metric> |
MetricsRegistry.allMetrics()
Returns an unmodifiable map of all metrics and their names.
|
SortedMap<String,SortedMap<MetricName,Metric>> |
MetricsRegistry.groupedMetrics()
Returns a grouped and sorted map of all registered metrics.
|
SortedMap<String,SortedMap<MetricName,Metric>> |
MetricsRegistry.groupedMetrics(MetricPredicate predicate)
Returns a grouped and sorted map of all registered metrics which match then given
MetricPredicate . |
protected ConcurrentMap<MetricName,Metric> |
MetricsRegistry.newMetricsMap()
Returns a new
ConcurrentMap implementation. |
Modifier and Type | Method and Description |
---|---|
int |
MetricName.compareTo(MetricName o) |
protected <T extends Metric> |
MetricsRegistry.getOrAdd(MetricName name,
T metric)
Gets any existing metric with the given name or, if none exists, adds the given metric.
|
boolean |
MetricPredicate.matches(MetricName name,
Metric metric)
Returns
true if the metric matches the predicate. |
Counter |
MetricsRegistry.newCounter(MetricName metricName)
Creates a new
Counter and registers it under the given metric name. |
<T> Gauge<T> |
MetricsRegistry.newGauge(MetricName metricName,
Gauge<T> metric)
Given a new
Gauge , registers it under the given metric name. |
Histogram |
MetricsRegistry.newHistogram(MetricName metricName,
boolean biased)
Creates a new
Histogram and registers it under the given metric name. |
Meter |
MetricsRegistry.newMeter(MetricName metricName,
String eventType,
TimeUnit unit)
Creates a new
Meter and registers it under the given metric name. |
Timer |
MetricsRegistry.newTimer(MetricName metricName,
TimeUnit durationUnit,
TimeUnit rateUnit)
Creates a new
Timer and registers it under the given metric name. |
void |
MetricsRegistryListener.onMetricAdded(MetricName name,
Metric metric)
Called when a metric has been added to the
MetricsRegistry . |
void |
MetricsRegistryListener.onMetricRemoved(MetricName name)
Called when a metric has been removed from the
MetricsRegistry . |
void |
MetricProcessor.processCounter(MetricName name,
Counter counter,
T context)
Process the given counter.
|
void |
MetricProcessor.processGauge(MetricName name,
Gauge<?> gauge,
T context)
Process the given gauge.
|
void |
MetricProcessor.processHistogram(MetricName name,
Histogram histogram,
T context)
Process the given histogram.
|
void |
MetricProcessor.processMeter(MetricName name,
Metered meter,
T context)
Process the given
Metered instance. |
void |
MetricProcessor.processTimer(MetricName name,
Timer timer,
T context)
Process the given timer.
|
<T> void |
Timer.processWith(MetricProcessor<T> processor,
MetricName name,
T context) |
<T> void |
Metric.processWith(MetricProcessor<T> processor,
MetricName name,
T context)
Allow the given
MetricProcessor to process this as a metric. |
<T> void |
Meter.processWith(MetricProcessor<T> processor,
MetricName name,
T context) |
<T> void |
Histogram.processWith(MetricProcessor<T> processor,
MetricName name,
T context) |
<T> void |
Counter.processWith(MetricProcessor<T> processor,
MetricName name,
T context) |
<U> void |
Gauge.processWith(MetricProcessor<U> processor,
MetricName name,
U context) |
void |
MetricsRegistry.removeMetric(MetricName name)
Removes the metric with the given name.
|
Modifier and Type | Method and Description |
---|---|
protected PrintStream |
CsvReporter.createStreamForMetric(MetricName metricName)
Returns an opened
PrintStream for the given MetricName which outputs data
to a metric-specific .csv file in the output directory. |
void |
JmxReporter.onMetricAdded(MetricName name,
Metric metric) |
void |
JmxReporter.onMetricRemoved(MetricName name) |
void |
CsvReporter.processCounter(MetricName name,
Counter counter,
CsvReporter.Context context) |
void |
JmxReporter.processCounter(MetricName name,
Counter counter,
com.espertech.esper.runtime.internal.metrics.codahale_metrics.metrics.reporting.JmxReporter.Context context) |
void |
ConsoleReporter.processCounter(MetricName name,
Counter counter,
PrintStream stream) |
void |
CsvReporter.processGauge(MetricName name,
Gauge<?> gauge,
CsvReporter.Context context) |
void |
ConsoleReporter.processGauge(MetricName name,
Gauge<?> gauge,
PrintStream stream) |
void |
JmxReporter.processGauge(MetricName name,
Gauge gauge,
com.espertech.esper.runtime.internal.metrics.codahale_metrics.metrics.reporting.JmxReporter.Context context) |
void |
CsvReporter.processHistogram(MetricName name,
Histogram histogram,
CsvReporter.Context context) |
void |
JmxReporter.processHistogram(MetricName name,
Histogram histogram,
com.espertech.esper.runtime.internal.metrics.codahale_metrics.metrics.reporting.JmxReporter.Context context) |
void |
ConsoleReporter.processHistogram(MetricName name,
Histogram histogram,
PrintStream stream) |
void |
CsvReporter.processMeter(MetricName name,
Metered meter,
CsvReporter.Context context) |
void |
JmxReporter.processMeter(MetricName name,
Metered meter,
com.espertech.esper.runtime.internal.metrics.codahale_metrics.metrics.reporting.JmxReporter.Context context) |
void |
ConsoleReporter.processMeter(MetricName name,
Metered meter,
PrintStream stream) |
void |
CsvReporter.processTimer(MetricName name,
Timer timer,
CsvReporter.Context context) |
void |
JmxReporter.processTimer(MetricName name,
Timer timer,
com.espertech.esper.runtime.internal.metrics.codahale_metrics.metrics.reporting.JmxReporter.Context context) |
void |
ConsoleReporter.processTimer(MetricName name,
Timer timer,
PrintStream stream) |
Modifier and Type | Method and Description |
---|---|
static void |
CommonJMXUtil.registerMbean(Object mbean,
MetricName name) |
static void |
CommonJMXUtil.unregisterMbean(MetricName name) |
Copyright © 2005–2018. All rights reserved.