Uses of Class
com.codahale.metrics.MetricRegistry
-
Uses of MetricRegistry in com.codahale.metrics
Subclasses of MetricRegistry in com.codahale.metricsModifier and TypeClassDescriptionfinal classA registry of metric instances which never creates or registers any metrics and returns no-op implementations of any metric type.Methods in com.codahale.metrics that return MetricRegistryModifier and TypeMethodDescriptionstatic MetricRegistrySharedMetricRegistries.add(String name, MetricRegistry registry) static MetricRegistrySharedMetricRegistries.getDefault()Gets the name of the default registry, if it has been setstatic MetricRegistrySharedMetricRegistries.getOrCreate(String name) static MetricRegistrySharedMetricRegistries.setDefault(String name) Creates a new registry and sets it as the default one under the provided name.static MetricRegistrySharedMetricRegistries.setDefault(String name, MetricRegistry metricRegistry) Sets the provided registry as the default one under the provided namestatic MetricRegistrySharedMetricRegistries.tryGetDefault()Same asSharedMetricRegistries.getDefault()except returns null when the default registry has not been set.Methods in com.codahale.metrics with parameters of type MetricRegistryModifier and TypeMethodDescriptionstatic MetricRegistrySharedMetricRegistries.add(String name, MetricRegistry registry) static ConsoleReporter.BuilderConsoleReporter.forRegistry(MetricRegistry registry) Returns a newConsoleReporter.BuilderforConsoleReporter.static CsvReporter.BuilderCsvReporter.forRegistry(MetricRegistry registry) Returns a newCsvReporter.BuilderforCsvReporter.static Slf4jReporter.BuilderSlf4jReporter.forRegistry(MetricRegistry registry) Returns a newSlf4jReporter.BuilderforSlf4jReporter.static MetricRegistrySharedMetricRegistries.setDefault(String name, MetricRegistry metricRegistry) Sets the provided registry as the default one under the provided nameConstructors in com.codahale.metrics with parameters of type MetricRegistryModifierConstructorDescriptionInstrumentedExecutorService(ExecutorService delegate, MetricRegistry registry) Wraps anExecutorServiceuses an auto-generated default name.InstrumentedExecutorService(ExecutorService delegate, MetricRegistry registry, String name) Wraps anExecutorServicewith an explicit name.InstrumentedScheduledExecutorService(ScheduledExecutorService delegate, MetricRegistry registry) Wraps anScheduledExecutorServiceuses an auto-generated default name.InstrumentedScheduledExecutorService(ScheduledExecutorService delegate, MetricRegistry registry, String name) Wraps anScheduledExecutorServicewith an explicit name.InstrumentedThreadFactory(ThreadFactory delegate, MetricRegistry registry) Wraps aThreadFactory, uses a default auto-generated name.InstrumentedThreadFactory(ThreadFactory delegate, MetricRegistry registry, String name) Wraps aThreadFactorywith an explicit name.protectedScheduledReporter(MetricRegistry registry, String name, MetricFilter filter, TimeUnit rateUnit, TimeUnit durationUnit) Creates a newScheduledReporterinstance.protectedScheduledReporter(MetricRegistry registry, String name, MetricFilter filter, TimeUnit rateUnit, TimeUnit durationUnit, ScheduledExecutorService executor) Creates a newScheduledReporterinstance.protectedScheduledReporter(MetricRegistry registry, String name, MetricFilter filter, TimeUnit rateUnit, TimeUnit durationUnit, ScheduledExecutorService executor, boolean shutdownExecutorOnStop) Creates a newScheduledReporterinstance.protectedScheduledReporter(MetricRegistry registry, String name, MetricFilter filter, TimeUnit rateUnit, TimeUnit durationUnit, ScheduledExecutorService executor, boolean shutdownExecutorOnStop, Set<MetricAttribute> disabledMetricAttributes)