Package org.frankframework.statistics
Class MetricsInitializer
java.lang.Object
org.frankframework.statistics.MetricsInitializer
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
public class MetricsInitializer
extends Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
io.micrometer.core.instrument.Counter
createCounter
(IConfigurationAware frankElement, FrankMeterType type) io.micrometer.core.instrument.DistributionSummary
createDistributionSummary
(IConfigurationAware frankElement, FrankMeterType type) io.micrometer.core.instrument.Gauge
createGauge
(IConfigurationAware frankElement, FrankMeterType type, Supplier<Number> numberSupplier) io.micrometer.core.instrument.DistributionSummary
createSubDistributionSummary
(IConfigurationAware parentFrankElement, String subFrankElement, FrankMeterType type) io.micrometer.core.instrument.DistributionSummary
createSubDistributionSummary
(IConfigurationAware parentFrankElement, INamedObject subFrankElement, FrankMeterType type) This DistributionSummary is suffixed under a pipeio.micrometer.core.instrument.DistributionSummary
createThreadBasedDistributionSummary
(Receiver<?> receiver, FrankMeterType type, int threadNumber) io.micrometer.core.instrument.Timer.ResourceSample
createTimerResource
(IConfigurationAware frankElement, FrankMeterType type, String... tags) void
destroy()
void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setMeterRegistry
(io.micrometer.core.instrument.MeterRegistry meterRegistry)
-
Field Details
-
PARENT_CHILD_NAME_FORMAT
- See Also:
-
log
protected org.apache.logging.log4j.Logger log
-
-
Constructor Details
-
MetricsInitializer
public MetricsInitializer()
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
createCounter
public io.micrometer.core.instrument.Counter createCounter(@Nonnull IConfigurationAware frankElement, @Nonnull FrankMeterType type) -
createTimerResource
public io.micrometer.core.instrument.Timer.ResourceSample createTimerResource(@Nonnull IConfigurationAware frankElement, @Nonnull FrankMeterType type, String... tags) -
createSubDistributionSummary
public io.micrometer.core.instrument.DistributionSummary createSubDistributionSummary(@Nonnull IConfigurationAware parentFrankElement, @Nonnull INamedObject subFrankElement, @Nonnull FrankMeterType type) This DistributionSummary is suffixed under a pipe -
createSubDistributionSummary
public io.micrometer.core.instrument.DistributionSummary createSubDistributionSummary(@Nonnull IConfigurationAware parentFrankElement, @Nonnull String subFrankElement, @Nonnull FrankMeterType type) -
createDistributionSummary
public io.micrometer.core.instrument.DistributionSummary createDistributionSummary(@Nonnull IConfigurationAware frankElement, @Nonnull FrankMeterType type) -
createThreadBasedDistributionSummary
public io.micrometer.core.instrument.DistributionSummary createThreadBasedDistributionSummary(Receiver<?> receiver, FrankMeterType type, int threadNumber) -
createGauge
public io.micrometer.core.instrument.Gauge createGauge(@Nonnull IConfigurationAware frankElement, @Nonnull FrankMeterType type, Supplier<Number> numberSupplier) -
destroy
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- Throws:
Exception
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-
setMeterRegistry
public void setMeterRegistry(io.micrometer.core.instrument.MeterRegistry meterRegistry)
-