Package io.helidon.common.metrics
Interface InternalBridge
-
public interface InternalBridgeInternal abstraction layer for MicroProfile 1.1 and 2.0.Only Helidon internal clients of metrics should use this interface. Other clients should use Helidon BOMs or bundles which will use the appropriate versions of Helidon metrics and MicroProfile Metrics.
Implementations provide for getting instances of these features:
- registry factory
- metric registry
- metric ID
- metadata builder
- metadata
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceInternalBridge.MetadataVersion-neutral abstraction of metric metadata.static interfaceInternalBridge.MetricIDVersion-neutral abstraction of a metric identifier.static interfaceInternalBridge.MetricRegistryAbstraction of theMetricRegistrybehavior used by internal Helidon clients.static interfaceInternalBridge.TagVersion-neutral representation of a tag.
-
Field Summary
Fields Modifier and Type Field Description static InternalBridgeINSTANCEReturns the singleton instance of the bridge.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description InternalBridge.MetricRegistry.RegistryFactorycreateRegistryFactory()Creates a newRegistryFactorywith the default configuration, as exposed through theInternalBridge.RegistryFactoryinterface.InternalBridge.MetricRegistry.RegistryFactorycreateRegistryFactory(Config config)Creates a newRegistryFactorywith the specified configuration, as exposed through theInternalBridge.RegistryFactoryinterface.InternalBridge.Metadata.MetadataBuilder.FactorygetMetadataBuilderFactory()InternalBridge.MetricID.FactorygetMetricIDFactory()InternalBridge.MetricRegistry.RegistryFactorygetRegistryFactory()static InternalBridge.Metadata.MetadataBuildernewMetadataBuilder()
-
-
-
Field Detail
-
INSTANCE
static final InternalBridge INSTANCE
Returns the singleton instance of the bridge.
-
-
Method Detail
-
getMetricIDFactory
InternalBridge.MetricID.Factory getMetricIDFactory()
- Returns:
- the singleton metric ID factory
-
getMetadataBuilderFactory
InternalBridge.Metadata.MetadataBuilder.Factory getMetadataBuilderFactory()
- Returns:
- the singleton metadata builder factory
-
getRegistryFactory
InternalBridge.MetricRegistry.RegistryFactory getRegistryFactory()
- Returns:
- the singleton registry factory
-
newMetadataBuilder
static InternalBridge.Metadata.MetadataBuilder newMetadataBuilder()
- Returns:
- a metadata builder
-
createRegistryFactory
InternalBridge.MetricRegistry.RegistryFactory createRegistryFactory()
Creates a newRegistryFactorywith the default configuration, as exposed through theInternalBridge.RegistryFactoryinterface.- Returns:
- the new
RegistryFactory
-
createRegistryFactory
InternalBridge.MetricRegistry.RegistryFactory createRegistryFactory(Config config)
Creates a newRegistryFactorywith the specified configuration, as exposed through theInternalBridge.RegistryFactoryinterface.- Parameters:
config- the HelidonConfigto use in initializing the factory.- Returns:
- the new
RegistryFactory
-
-