use of com.navercorp.pinpoint.grpc.trace.PDataSource in project pinpoint by naver.
the class GrpcDataSourceBoMapper method map.
@Override
public void map(AgentStatBo.Builder.StatBuilder builder, PAgentStat agentStat) {
// datasource
if (agentStat.hasDataSourceList()) {
final PDataSourceList dataSourceList = agentStat.getDataSourceList();
final DataSourceListBo dataSourceListBo = new DataSourceListBo();
for (PDataSource dataSource : dataSourceList.getDataSourceList()) {
final DataSourceBo dataSourceBo = this.map(dataSource);
dataSourceListBo.add(dataSourceBo);
}
builder.addDataSourceList(dataSourceListBo);
}
}
Aggregations