Search in sources :

Example 1 with PDataSource

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);
    }
}
Also used : PDataSourceList(com.navercorp.pinpoint.grpc.trace.PDataSourceList) PDataSource(com.navercorp.pinpoint.grpc.trace.PDataSource) DataSourceListBo(com.navercorp.pinpoint.common.server.bo.stat.DataSourceListBo) DataSourceBo(com.navercorp.pinpoint.common.server.bo.stat.DataSourceBo)

Aggregations

DataSourceBo (com.navercorp.pinpoint.common.server.bo.stat.DataSourceBo)1 DataSourceListBo (com.navercorp.pinpoint.common.server.bo.stat.DataSourceListBo)1 PDataSource (com.navercorp.pinpoint.grpc.trace.PDataSource)1 PDataSourceList (com.navercorp.pinpoint.grpc.trace.PDataSourceList)1