public class DatabaseConnectionPoolMetricSet extends Object implements com.codahale.metrics.MetricSet
getMetrics()
will return an empty map.Modifier and Type | Field and Description |
---|---|
static String |
ACTIVE |
static String |
MAX |
static String |
MIN |
static String |
USAGE |
Constructor and Description |
---|
DatabaseConnectionPoolMetricSet(String namePrefix,
DataSource dataSource)
Construct a new database connection pool metric set.
|
public static final String ACTIVE
public static final String MIN
public static final String MAX
public static final String USAGE
public DatabaseConnectionPoolMetricSet(String namePrefix, DataSource dataSource)
namePrefix
- the prefix to use for all metric names, will prepend this to all metric names in this setdataSource
- the DataSource from which to extract the metrics in this metric setpublic Map<String,com.codahale.metrics.Metric> getMetrics()
getMetrics
in interface com.codahale.metrics.MetricSet
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.