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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
io.micrometer.core.instrument.Counter
createCounter
(FrankElement frankElement, FrankMeterType type) io.micrometer.core.instrument.DistributionSummary
createDistributionSummary
(FrankElement frankElement, FrankMeterType type) io.micrometer.core.instrument.Gauge
createGauge
(FrankElement frankElement, FrankMeterType type, Supplier<Number> numberSupplier) io.micrometer.core.instrument.DistributionSummary
createSubDistributionSummary
(FrankElement parentFrankElement, String subFrankElement, FrankMeterType type) io.micrometer.core.instrument.DistributionSummary
createSubDistributionSummary
(FrankElement parentFrankElement, HasName 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
(FrankElement frankElement, FrankMeterType type, String... tags) void
destroy()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContext
-
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 FrankElement frankElement, @Nonnull FrankMeterType type) -
createTimerResource
public io.micrometer.core.instrument.Timer.ResourceSample createTimerResource(@Nonnull FrankElement frankElement, @Nonnull FrankMeterType type, String... tags) -
createSubDistributionSummary
public io.micrometer.core.instrument.DistributionSummary createSubDistributionSummary(@Nonnull FrankElement parentFrankElement, @Nonnull HasName subFrankElement, @Nonnull FrankMeterType type) This DistributionSummary is suffixed under a pipe -
createSubDistributionSummary
public io.micrometer.core.instrument.DistributionSummary createSubDistributionSummary(@Nonnull FrankElement parentFrankElement, @Nonnull String subFrankElement, @Nonnull FrankMeterType type) -
createDistributionSummary
public io.micrometer.core.instrument.DistributionSummary createDistributionSummary(@Nonnull FrankElement 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 FrankElement frankElement, @Nonnull FrankMeterType type, Supplier<Number> numberSupplier) -
destroy
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- Throws:
Exception
-