@InterfaceAudience.Private public class MetricRegistriesImpl extends MetricRegistries
Constructor and Description |
---|
MetricRegistriesImpl() |
MetricRegistriesImpl(MetricRegistryFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all the MetricRegisties.
|
MetricRegistry |
create(MetricRegistryInfo info)
Create or return MetricRegistry with the given info.
|
com.google.common.base.Optional<MetricRegistry> |
get(MetricRegistryInfo info)
Returns the MetricRegistry if found.
|
Collection<MetricRegistry> |
getMetricRegistries()
Returns MetricRegistry's created.
|
Set<MetricRegistryInfo> |
getMetricRegistryInfos()
Returns MetricRegistryInfo's for the MetricRegistry's created.
|
boolean |
remove(MetricRegistryInfo key)
Decrements the ref count of the MetricRegistry, and removes if ref count == 0.
|
global
public MetricRegistriesImpl()
public MetricRegistriesImpl(MetricRegistryFactory factory)
public MetricRegistry create(MetricRegistryInfo info)
MetricRegistries
create
in class MetricRegistries
info
- the info object for the MetricRegistrytry.public boolean remove(MetricRegistryInfo key)
MetricRegistries
remove
in class MetricRegistries
key
- the info object for the MetricRegistrytry.public com.google.common.base.Optional<MetricRegistry> get(MetricRegistryInfo info)
MetricRegistries
get
in class MetricRegistries
info
- the info for the registry.public Collection<MetricRegistry> getMetricRegistries()
MetricRegistries
getMetricRegistries
in class MetricRegistries
public void clear()
MetricRegistries
clear
in class MetricRegistries
public Set<MetricRegistryInfo> getMetricRegistryInfos()
MetricRegistries
getMetricRegistryInfos
in class MetricRegistries
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.