public final class RegistryFactory extends Object
getInstance() or getInstance(io.helidon.config.Config).
This instance is lazily initialized - the latest call that provides a config instance before a
MetricRegistry.Type.BASE registry is obtained would be used to configure
the base registry (as that is the only configurable registry in current implementation)
create(Config) or create(). This would create a
new instance of a registry factory (in case multiple instances are desired), independent on the singleton instance
and on other instances provided by these methods.| Modifier and Type | Method and Description |
|---|---|
static RegistryFactory |
create()
Create a new factory with default configuration, with pre-filled
MetricRegistry.Type.VENDOR and
MetricRegistry.Type.BASE metrics. |
static RegistryFactory |
create(Config config)
Create a new factory with provided configuration, with pre filled
MetricRegistry.Type.VENDOR and
MetricRegistry.Type.BASE metrics. |
static RegistryFactory |
createSeFactory(Config config)
Deprecated.
use
create() or create(io.helidon.config.Config) instead when a new
registry factory instance is needed. Use getInstance() or getInstance(io.helidon.config.Config)
to retrieve the shared (singleton) instance. |
static RegistryFactory |
getInstance()
Get a singleton instance of the registry factory.
|
static RegistryFactory |
getInstance(Config config)
Get a singleton instance of the registry factory for and update it with provided configuration.
|
MetricRegistry |
getRegistry(MetricRegistry.Type type)
Get a registry based on its type.
|
static Supplier<RegistryFactory> |
getRegistryFactory()
Deprecated.
use
RegistryFactory::getInstance instead. |
public static RegistryFactory create()
MetricRegistry.Type.VENDOR and
MetricRegistry.Type.BASE metrics.public static RegistryFactory create(Config config)
MetricRegistry.Type.VENDOR and
MetricRegistry.Type.BASE metrics.config - configuration to use@Deprecated public static Supplier<RegistryFactory> getRegistryFactory()
RegistryFactory::getInstance instead.@Deprecated public static RegistryFactory createSeFactory(Config config)
create() or create(io.helidon.config.Config) instead when a new
registry factory instance is needed. Use getInstance() or getInstance(io.helidon.config.Config)
to retrieve the shared (singleton) instance.config - configuration to load the factory config frompublic static RegistryFactory getInstance()
public static RegistryFactory getInstance(Config config)
config - configuration of the registry factory used to update behavior of the instance returnedpublic MetricRegistry getRegistry(MetricRegistry.Type type)
MetricRegistry.Type.APPLICATION returns a modifiable registry, for other types
returns a final registry (cannot register new metrics).type - type of registryCopyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.