use of com.navercorp.pinpoint.profiler.context.monitor.DataSourceMonitorWrapper in project pinpoint by naver.
the class DefaultDataSourceMetric method dataSourceList.
@Override
public TDataSourceList dataSourceList() {
TDataSourceList dataSourceList = new TDataSourceList();
List<DataSourceMonitorWrapper> dataSourceMonitorList = dataSourceMonitorRegistryService.getPluginMonitorWrapperList();
if (!CollectionUtils.isEmpty(dataSourceMonitorList)) {
for (DataSourceMonitorWrapper dataSourceMonitor : dataSourceMonitorList) {
TDataSource dataSource = collectDataSource(dataSourceMonitor);
dataSourceList.addToDataSourceList(dataSource);
}
} else {
dataSourceList.setDataSourceList(Collections.<TDataSource>emptyList());
}
return dataSourceList;
}
Aggregations