Package | Description |
---|---|
com.espertech.esper.metrics.codahale_metrics.metrics |
Metrics (Codahale).
|
com.espertech.esper.metrics.codahale_metrics.metrics.core |
Metrics core (Codehale).
|
com.espertech.esper.metrics.codahale_metrics.metrics.reporting |
Metrics reporting (Codehale).
|
com.espertech.esper.metrics.jmx |
EPL to JMX helpers.
|
Modifier and Type | Method and Description |
---|---|
static MetricName |
MetricNameFactory.name(java.lang.String engineURI,
java.lang.String type) |
static MetricName |
MetricNameFactory.name(java.lang.String engineURI,
java.lang.String type,
java.lang.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,
java.lang.String eventType,
java.util.concurrent.TimeUnit unit)
Creates a new
Meter and registers it under the given metric
name. |
static Timer |
Metrics.newTimer(MetricName metricName,
java.util.concurrent.TimeUnit durationUnit,
java.util.concurrent.TimeUnit rateUnit)
Creates a new
Timer and registers it under the given metric
name. |
Modifier and Type | Method and Description |
---|---|
protected MetricName |
MetricsRegistry.createName(java.lang.Class<?> klass,
java.lang.String name,
java.lang.String scope)
Override to customize how
MetricName s are created. |
Modifier and Type | Method and Description |
---|---|
java.util.Map<MetricName,Metric> |
MetricsRegistry.allMetrics()
Returns an unmodifiable map of all metrics and their names.
|
java.util.SortedMap<java.lang.String,java.util.SortedMap<MetricName,Metric>> |
MetricsRegistry.groupedMetrics()
Returns a grouped and sorted map of all registered metrics.
|
java.util.SortedMap<java.lang.String,java.util.SortedMap<MetricName,Metric>> |
MetricsRegistry.groupedMetrics(MetricPredicate predicate)
Returns a grouped and sorted map of all registered metrics which match then given
MetricPredicate . |
protected java.util.concurrent.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,
java.lang.String eventType,
java.util.concurrent.TimeUnit unit)
Creates a new
Meter and registers it under the given metric name. |
Timer |
MetricsRegistry.newTimer(MetricName metricName,
java.util.concurrent.TimeUnit durationUnit,
java.util.concurrent.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 java.io.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.metrics.codahale_metrics.metrics.reporting.JmxReporter.Context context) |
void |
ConsoleReporter.processCounter(MetricName name,
Counter counter,
java.io.PrintStream stream) |
void |
CsvReporter.processGauge(MetricName name,
Gauge<?> gauge,
CsvReporter.Context context) |
void |
ConsoleReporter.processGauge(MetricName name,
Gauge<?> gauge,
java.io.PrintStream stream) |
void |
JmxReporter.processGauge(MetricName name,
Gauge gauge,
com.espertech.esper.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.metrics.codahale_metrics.metrics.reporting.JmxReporter.Context context) |
void |
ConsoleReporter.processHistogram(MetricName name,
Histogram histogram,
java.io.PrintStream stream) |
void |
CsvReporter.processMeter(MetricName name,
Metered meter,
CsvReporter.Context context) |
void |
JmxReporter.processMeter(MetricName name,
Metered meter,
com.espertech.esper.metrics.codahale_metrics.metrics.reporting.JmxReporter.Context context) |
void |
ConsoleReporter.processMeter(MetricName name,
Metered meter,
java.io.PrintStream stream) |
void |
CsvReporter.processTimer(MetricName name,
Timer timer,
CsvReporter.Context context) |
void |
JmxReporter.processTimer(MetricName name,
Timer timer,
com.espertech.esper.metrics.codahale_metrics.metrics.reporting.JmxReporter.Context context) |
void |
ConsoleReporter.processTimer(MetricName name,
Timer timer,
java.io.PrintStream stream) |
Modifier and Type | Method and Description |
---|---|
static void |
CommonJMXUtil.registerMbean(java.lang.Object mbean,
MetricName name) |
static void |
CommonJMXUtil.unregisterMbean(MetricName name) |