public abstract class Collector extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Collector.MetricFamilySamples
A metric, and all of it's samples.
|
static class |
Collector.Type |
| Modifier and Type | Field and Description |
|---|---|
static double |
MILLISECONDS_PER_SECOND
Number of milliseconds in a second.
|
static double |
NANOSECONDS_PER_SECOND
Number of nanoseconds in a second.
|
| Constructor and Description |
|---|
Collector() |
| Modifier and Type | Method and Description |
|---|---|
abstract List<Collector.MetricFamilySamples> |
collect()
Return all of the metrics of this Collector.
|
<T extends Collector> |
register()
Register the Collector with the default registry.
|
<T extends Collector> |
register(CollectorRegistry registry)
Register the Collector with the given registry.
|
public static final double NANOSECONDS_PER_SECOND
public static final double MILLISECONDS_PER_SECOND
public abstract List<Collector.MetricFamilySamples> collect()
public <T extends Collector> T register()
public <T extends Collector> T register(CollectorRegistry registry)
Copyright © 2014. All Rights Reserved.