public class MetricRegistriesImpl extends MetricRegistries
| 构造器和说明 |
|---|
MetricRegistriesImpl() |
MetricRegistriesImpl(MetricRegistryFactory factory) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addReporterRegistration(Consumer<RatisMetricRegistry> reporterRegistration,
Consumer<RatisMetricRegistry> stopReporter)
Add hook to register reporter for the metricRegistry.
|
void |
clear()
Removes all the MetricRegisties.
|
RatisMetricRegistry |
create(MetricRegistryInfo info)
Create or return MetricRegistry with the given info.
|
void |
enableConsoleReporter(TimeDuration consoleReportRate)
Enable console reporter for the metricRegistry.
|
void |
enableJmxReporter()
Enable jmx reporter for the metricRegistry.
|
Optional<RatisMetricRegistry> |
get(MetricRegistryInfo info)
Returns the MetricRegistry if found.
|
Collection<RatisMetricRegistry> |
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.
|
void |
removeReporterRegistration(Consumer<RatisMetricRegistry> reporterRegistration,
Consumer<RatisMetricRegistry> stopReporter)
Remove hook of reporter for the metricRegistry.
|
globalpublic MetricRegistriesImpl()
public MetricRegistriesImpl(MetricRegistryFactory factory)
public RatisMetricRegistry create(MetricRegistryInfo info)
MetricRegistriescreate 在类中 MetricRegistriesinfo - the info object for the MetricRegistrytry.public boolean remove(MetricRegistryInfo key)
MetricRegistriesremove 在类中 MetricRegistrieskey - the info object for the MetricRegistrytry.public Optional<RatisMetricRegistry> get(MetricRegistryInfo info)
MetricRegistriesget 在类中 MetricRegistriesinfo - the info for the registry.public Collection<RatisMetricRegistry> getMetricRegistries()
MetricRegistriesgetMetricRegistries 在类中 MetricRegistriespublic void clear()
MetricRegistriesclear 在类中 MetricRegistriespublic Set<MetricRegistryInfo> getMetricRegistryInfos()
MetricRegistriesgetMetricRegistryInfos 在类中 MetricRegistriespublic void addReporterRegistration(Consumer<RatisMetricRegistry> reporterRegistration, Consumer<RatisMetricRegistry> stopReporter)
MetricRegistriesaddReporterRegistration 在类中 MetricRegistriesreporterRegistration - Consumer to create the reporter for the registry.stopReporter - Consumer to stop the reporter for the registry.public void removeReporterRegistration(Consumer<RatisMetricRegistry> reporterRegistration, Consumer<RatisMetricRegistry> stopReporter)
MetricRegistriesremoveReporterRegistration 在类中 MetricRegistriesreporterRegistration - Consumer to create the reporter for the registry.stopReporter - Consumer to stop the reporter for the registry.public void enableJmxReporter()
MetricRegistriesenableJmxReporter 在类中 MetricRegistriespublic void enableConsoleReporter(TimeDuration consoleReportRate)
MetricRegistriesenableConsoleReporter 在类中 MetricRegistriesconsoleReportRate - Console report rate.Copyright © 2017–2023 The Apache Software Foundation. All rights reserved.