| Package | Description |
|---|---|
| org.apache.hadoop.ipc.metrics |
RPC related metrics.
|
| org.apache.hadoop.metrics2 |
Metrics 2.0
|
| org.apache.hadoop.metrics2.filter |
Builtin metrics filters (to be used in metrics config files)
|
| org.apache.hadoop.metrics2.impl |
A metrics system implementation
|
| org.apache.hadoop.metrics2.lib |
A collection of library classes for implementing metrics sources
|
| org.apache.hadoop.metrics2.util |
General helpers for implementing source and sinks
|
| Modifier and Type | Method | Description |
|---|---|---|
MetricsTag |
RpcMetrics.getTag(java.lang.String tagName) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Collection<MetricsTag> |
MetricsRecord.tags() |
Get the tags of the record
Note: returning a collection instead of iterable as we
need to use tags as keys (hence Collection#hashCode etc.) in maps
|
| Modifier and Type | Method | Description |
|---|---|---|
abstract boolean |
MetricsFilter.accepts(MetricsTag tag) |
Whether to accept the tag
|
MetricsRecordBuilder |
MetricsJsonBuilder.add(MetricsTag tag) |
|
abstract MetricsRecordBuilder |
MetricsRecordBuilder.add(MetricsTag tag) |
Add an immutable metrics tag object
|
MetricsRecordBuilder |
MetricStringBuilder.add(MetricsTag tag) |
| Modifier and Type | Method | Description |
|---|---|---|
abstract boolean |
MetricsFilter.accepts(java.lang.Iterable<MetricsTag> tags) |
Whether to accept the tags
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
AbstractPatternFilter.accepts(MetricsTag tag) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
AbstractPatternFilter.accepts(java.lang.Iterable<MetricsTag> tags) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<MetricsTag> |
MetricsRecordImpl.tags() |
| Constructor | Description |
|---|---|
MetricsRecordImpl(MetricsInfo info,
long timestamp,
java.util.List<MetricsTag> tags,
java.lang.Iterable<AbstractMetric> metrics) |
Construct a metrics record
|
| Modifier and Type | Method | Description |
|---|---|---|
MetricsTag |
MetricsRegistry.getTag(java.lang.String name) |
Get a tag by name
|
static MetricsTag |
Interns.tag(java.lang.String name,
java.lang.String description,
java.lang.String value) |
Get a metrics tag.
|
static MetricsTag |
Interns.tag(MetricsInfo info,
java.lang.String value) |
Get a metrics tag.
|
| Modifier and Type | Method | Description |
|---|---|---|
MetricsCache.Record |
MetricsCache.get(java.lang.String name,
java.util.Collection<MetricsTag> tags) |
Get the cached record
|
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.