public interface MetricsStoreProvider
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close connection and release associated resources.
|
void |
connect()
Connect or verify connection to metrics store.
|
void |
init(AppMetricsConfig config)
Initialize resources with design-time configuration properties.
|
void |
publish(java.util.Iterator iterator)
Iterate and publish each
MetricRecord to the target store. |
void |
reconnectOnError(java.lang.Exception e)
Reconnect metrics store on error while publishing metric.
|
void init(AppMetricsConfig config)
config - AppMetricsConfigjava.lang.Exceptionvoid connect()
java.lang.Exceptionvoid reconnectOnError(java.lang.Exception e)
Exception - java.lang.Exceptionvoid publish(java.util.Iterator iterator)
MetricRecord to the target store. The implementations
should use an store specific client to publish each record individually or as
a batch.iterator - - MetricRecord iterator.java.lang.Exceptionvoid close()
java.lang.Exception