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()
Return an indication of current state through metrics.
|
@PostConstruct public void initialize()
public Collection<Metric<?>> metrics()
PublicMetrics
metrics
in interface PublicMetrics
protected 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 © 2016 Pivotal Software, Inc.. All rights reserved.