@InterfaceAudience.LimitedPrivate(value="Coprocesssor") @InterfaceStability.Evolving public abstract class MetricRegistries extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
MetricRegistries.LazyHolder |
Constructor and Description |
---|
MetricRegistries() |
Modifier and Type | Method and Description |
---|---|
abstract void |
clear()
Removes all the MetricRegisties.
|
abstract MetricRegistry |
create(MetricRegistryInfo info)
Create or return MetricRegistry with the given info.
|
abstract Optional<MetricRegistry> |
get(MetricRegistryInfo info)
Returns the MetricRegistry if found.
|
abstract Collection<MetricRegistry> |
getMetricRegistries()
Returns MetricRegistry's created.
|
abstract Set<MetricRegistryInfo> |
getMetricRegistryInfos()
Returns MetricRegistryInfo's for the MetricRegistry's created.
|
static MetricRegistries |
global()
Return the global singleton instance for the MetricRegistries.
|
abstract boolean |
remove(MetricRegistryInfo key)
Decrements the ref count of the MetricRegistry, and removes if ref count == 0.
|
public MetricRegistries()
public static MetricRegistries global()
public abstract void clear()
public abstract MetricRegistry create(MetricRegistryInfo info)
info
- the info object for the MetricRegistrytry.public abstract boolean remove(MetricRegistryInfo key)
key
- the info object for the MetricRegistrytry.public abstract Optional<MetricRegistry> get(MetricRegistryInfo info)
info
- the info for the registry.public abstract Set<MetricRegistryInfo> getMetricRegistryInfos()
public abstract Collection<MetricRegistry> getMetricRegistries()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.