public class DataSourcePublicMetrics extends Object implements PublicMetrics
PublicMetrics implementation that provides data source usage statistics.| Constructor and Description |
|---|
DataSourcePublicMetrics() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createPrefix(String name,
DataSource dataSource,
boolean primary)
Create the prefix to use for the metrics to associate with the given
DataSource. |
void |
initialize() |
Collection<Metric<?>> |
metrics() |
@PostConstruct public void initialize()
public Collection<Metric<?>> metrics()
metrics in interface PublicMetricsprotected String createPrefix(String name, DataSource dataSource, boolean primary)
DataSource.name - the name of the data source beandataSource - the data source to configureprimary - if this data source is the primary data sourceCopyright © 2015 Pivotal Software, Inc.. All rights reserved.