public interface MetricPlugin
Defines a Metric plugin
| Modifier and Type | Method and Description |
|---|---|
void |
enableDataSync(boolean sync)
Enable/Disable metric data sync to persistent store
|
Metric |
metric()
Returns the default
Metric instance |
Metric |
metric(java.lang.String name)
Returns a
Metric instance by name |
MetricStore |
metricStore()
Returns a
MetricStore instance. |
Metric metric(java.lang.String name)
Returns a Metric instance by name
The plugin shall check if a Logger get by name metric.$name is trace enabled to return the real Metric instance, otherwise then it shall return the the do-nothing metric instance
name - the name (could be the name of the metric root hierarchy)Metric metric()
Returns the default Metric instance
Note the plugin shall always return the same instance with this method call
MetricStore metricStore()
Returns a MetricStore instance.
Note the plugin shall always returns the same instance
void enableDataSync(boolean sync)
Enable/Disable metric data sync to persistent store
sync - true if enable sync data, false otherwiseCopyright © 2014–2017 ActFramework. All rights reserved.