Class OciMetricsBean
- java.lang.Object
-
- io.helidon.integrations.oci.metrics.cdi.OciMetricsBean
-
@Singleton public class OciMetricsBean extends Object
CDI bean for preparing OCI metrics integration.This bean relies on the OCI SDK integration to manufacture a
Monitoring
instance. It is also extensible in case an upstream library needs to fine-tune the way the OCI metrics integration is set up.
-
-
Constructor Summary
Constructors Constructor Description OciMetricsBean()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
activateOciMetricsSupport(Config rootConfig, Config ociMetricsConfig, OciMetricsSupport.Builder builder)
Activates OCI metrics support.protected String
configKey()
Returns the config key to use for retrieving OCI metrics settings from the root config.protected Config
ociMetricsConfig()
Returns the OCI metrics config settings previously retrieved from the config root.protected OciMetricsSupport.Builder
ociMetricsSupportBuilder(Config rootConfig, Config ociMetricsConfig, Monitoring monitoring)
Returns the builder for constructing a newOciMetricsSupport
instance, initialized using the config retrieved using theconfigKey()
return value and the providedMonitoring
instance.
-
-
-
Constructor Detail
-
OciMetricsBean
@Deprecated public OciMetricsBean()
Deprecated.For CDI use only.
-
-
Method Detail
-
configKey
protected String configKey()
Returns the config key to use for retrieving OCI metrics settings from the root config.- Returns:
- config key for OCI metrics settings
-
ociMetricsSupportBuilder
protected OciMetricsSupport.Builder ociMetricsSupportBuilder(Config rootConfig, Config ociMetricsConfig, Monitoring monitoring)
Returns the builder for constructing a newOciMetricsSupport
instance, initialized using the config retrieved using theconfigKey()
return value and the providedMonitoring
instance.- Parameters:
rootConfig
- rootConfig
nodeociMetricsConfig
- config node for the OCI metrics settingsmonitoring
- monitoring implementation to be used in preparing theOciMetricsSupport.Builder
.- Returns:
- resulting builder
-
ociMetricsConfig
protected Config ociMetricsConfig()
Returns the OCI metrics config settings previously retrieved from the config root.- Returns:
- OCI metrics config node
-
activateOciMetricsSupport
protected void activateOciMetricsSupport(Config rootConfig, Config ociMetricsConfig, OciMetricsSupport.Builder builder)
Activates OCI metrics support.- Parameters:
rootConfig
- root config nodeociMetricsConfig
- OCI metrics configurationbuilder
- builder forOciMetricsSupport
-
-