public interface MetricsProvider
configure(java.util.Properties)
in order to provide configuration,
and then when the system is ready to work it will call start()
.
Modifier and Type | Method and Description |
---|---|
void |
configure(Properties configuration)
Configure the provider.
|
void |
dump(BiConsumer<String,Object> sink)
Dumps all metrics as a key-value pair.
|
MetricsContext |
getRootContext()
Provides access to the root context.
|
void |
resetAllValues()
Reset all values.
|
void |
start()
Start the provider.
|
void |
stop()
Releases resources held by the provider.
This method must not throw exceptions. This method can be called more than once. |
void configure(Properties configuration) throws MetricsProviderLifeCycleException
configuration
- the configuration.MetricsProviderLifeCycleException
- in case of invalid configuration.void start() throws MetricsProviderLifeCycleException
MetricsProviderLifeCycleException
- in case of failureMetricsContext getRootContext()
void stop()
void dump(BiConsumer<String,Object> sink)
sink
- the receiver of all of the current values.void resetAllValues()
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.