Search in sources :

Example 6 with JoinDataSourceBo

use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinDataSourceBo in project pinpoint by naver.

the class ApplicationDataSourceServiceTest method createJoinDataSourceBoList.

private List<JoinDataSourceBo> createJoinDataSourceBoList(int plus, long timestamp) {
    List<JoinDataSourceBo> joinDataSourceBoList = new ArrayList<>();
    AggreJoinDataSourceBo joinDataSourceBo1 = new AggreJoinDataSourceBo((short) 1000, "jdbc:mysql", 30 + plus, 25 + plus, "agent_id_1_" + plus, 60 + plus, "agent_id_6_" + plus, timestamp);
    AggreJoinDataSourceBo joinDataSourceBo2 = new AggreJoinDataSourceBo((short) 2000, "jdbc:mssql", 20 + plus, 5 + plus, "agent_id_2_" + plus, 30 + plus, "agent_id_7_" + plus, timestamp);
    AggreJoinDataSourceBo joinDataSourceBo3 = new AggreJoinDataSourceBo((short) 3000, "jdbc:postgre", 10 + plus, 25 + plus, "agent_id_3_" + plus, 50 + plus, "agent_id_8_" + plus, timestamp);
    AggreJoinDataSourceBo joinDataSourceBo4 = new AggreJoinDataSourceBo((short) 4000, "jdbc:oracle", 40 + plus, 10 + plus, "agent_id_4_" + plus, 70 + plus, "agent_id_9_" + plus, timestamp);
    AggreJoinDataSourceBo joinDataSourceBo5 = new AggreJoinDataSourceBo((short) 5000, "jdbc:cubrid", 50 + plus, 25 + plus, "agent_id_5_" + plus, 80 + plus, "agent_id_10_" + plus, timestamp);
    joinDataSourceBoList.add(joinDataSourceBo1);
    joinDataSourceBoList.add(joinDataSourceBo2);
    joinDataSourceBoList.add(joinDataSourceBo3);
    joinDataSourceBoList.add(joinDataSourceBo4);
    joinDataSourceBoList.add(joinDataSourceBo5);
    return joinDataSourceBoList;
}
Also used : JoinDataSourceBo(com.navercorp.pinpoint.common.server.bo.stat.join.JoinDataSourceBo) AggreJoinDataSourceBo(com.navercorp.pinpoint.web.vo.stat.AggreJoinDataSourceBo) AggreJoinDataSourceBo(com.navercorp.pinpoint.web.vo.stat.AggreJoinDataSourceBo)

Example 7 with JoinDataSourceBo

use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinDataSourceBo in project pinpoint by naver.

the class JoinDataSourceSampler method sampleDataPoints.

@Override
public AggreJoinDataSourceListBo sampleDataPoints(int index, long timestamp, List<JoinDataSourceListBo> joinDataSourceListBoList, JoinDataSourceListBo previousJoinDataSourceListBo) {
    if (CollectionUtils.isEmpty(joinDataSourceListBoList)) {
        return AggreJoinDataSourceListBo.createUncollectedObject(timestamp);
    }
    JoinDataSourceListBo joinDataSourceListBo = JoinDataSourceListBo.joinDataSourceListBoList(joinDataSourceListBoList, timestamp);
    String id = joinDataSourceListBo.getId();
    List<JoinDataSourceBo> joinDataSourceBoList = joinDataSourceListBo.getJoinDataSourceBoList();
    List<JoinDataSourceBo> aggreJoinDataSourceBoList = getJoinDataSourceBoList(timestamp, joinDataSourceBoList);
    AggreJoinDataSourceListBo aggreJoinDataSourceListBo = new AggreJoinDataSourceListBo(id, aggreJoinDataSourceBoList, timestamp);
    return aggreJoinDataSourceListBo;
}
Also used : JoinDataSourceBo(com.navercorp.pinpoint.common.server.bo.stat.join.JoinDataSourceBo) AggreJoinDataSourceBo(com.navercorp.pinpoint.web.vo.stat.AggreJoinDataSourceBo) AggreJoinDataSourceListBo(com.navercorp.pinpoint.web.vo.stat.AggreJoinDataSourceListBo) AggreJoinDataSourceListBo(com.navercorp.pinpoint.web.vo.stat.AggreJoinDataSourceListBo) JoinDataSourceListBo(com.navercorp.pinpoint.common.server.bo.stat.join.JoinDataSourceListBo)

Example 8 with JoinDataSourceBo

use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinDataSourceBo in project pinpoint by naver.

the class DataSourceCodecTest method createJoinDataSourceBoList.

private List<JoinDataSourceBo> createJoinDataSourceBoList(int plus) {
    List<JoinDataSourceBo> joinDataSourceBoList = new ArrayList<>();
    JoinDataSourceBo joinDataSourceBo1 = new JoinDataSourceBo((short) 1000, "jdbc:mysql", 30 + plus, 25 + plus, "agent_id_1", 60 + plus, "agent_id_6");
    JoinDataSourceBo joinDataSourceBo2 = new JoinDataSourceBo((short) 2000, "jdbc:mssql", 20 + plus, 5 + plus, "agent_id_2", 30 + plus, "agent_id_7");
    JoinDataSourceBo joinDataSourceBo3 = new JoinDataSourceBo((short) 3000, "jdbc:postgre", 10 + plus, 25 + plus, "agent_id_3", 50 + plus, "agent_id_8");
    JoinDataSourceBo joinDataSourceBo4 = new JoinDataSourceBo((short) 4000, "jdbc:oracle", 40 + plus, 5 + plus, "agent_id_4", 70 + plus, "agent_id_9");
    JoinDataSourceBo joinDataSourceBo5 = new JoinDataSourceBo((short) 5000, "jdbc:cubrid", 50 + plus, 25 + plus, "agent_id_5", 80 + plus, "agent_id_10");
    joinDataSourceBoList.add(joinDataSourceBo1);
    joinDataSourceBoList.add(joinDataSourceBo2);
    joinDataSourceBoList.add(joinDataSourceBo3);
    joinDataSourceBoList.add(joinDataSourceBo4);
    joinDataSourceBoList.add(joinDataSourceBo5);
    return joinDataSourceBoList;
}
Also used : JoinDataSourceBo(com.navercorp.pinpoint.common.server.bo.stat.join.JoinDataSourceBo) ArrayList(java.util.ArrayList)

Example 9 with JoinDataSourceBo

use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinDataSourceBo in project pinpoint by naver.

the class JoinDataSourceSamplerTest method createJoinDataSourceBoList.

private List<JoinDataSourceBo> createJoinDataSourceBoList(int plus) {
    List<JoinDataSourceBo> joinDataSourceBoList = new ArrayList<JoinDataSourceBo>();
    JoinDataSourceBo joinDataSourceBo1 = new JoinDataSourceBo((short) 1000, "jdbc:mysql", 30 + plus, 25 + plus, "agent_id_1_" + plus, 60 + plus, "agent_id_6_" + plus);
    JoinDataSourceBo joinDataSourceBo2 = new JoinDataSourceBo((short) 2000, "jdbc:mssql", 20 + plus, 5 + plus, "agent_id_2_" + plus, 30 + plus, "agent_id_7_" + plus);
    JoinDataSourceBo joinDataSourceBo3 = new JoinDataSourceBo((short) 3000, "jdbc:postgre", 10 + plus, 25 + plus, "agent_id_3_" + plus, 50 + plus, "agent_id_8_" + plus);
    JoinDataSourceBo joinDataSourceBo4 = new JoinDataSourceBo((short) 4000, "jdbc:oracle", 40 + plus, 10 + plus, "agent_id_4_" + plus, 70 + plus, "agent_id_9_" + plus);
    JoinDataSourceBo joinDataSourceBo5 = new JoinDataSourceBo((short) 5000, "jdbc:cubrid", 50 + plus, 25 + plus, "agent_id_5_" + plus, 80 + plus, "agent_id_10_" + plus);
    joinDataSourceBoList.add(joinDataSourceBo1);
    joinDataSourceBoList.add(joinDataSourceBo2);
    joinDataSourceBoList.add(joinDataSourceBo3);
    joinDataSourceBoList.add(joinDataSourceBo4);
    joinDataSourceBoList.add(joinDataSourceBo5);
    return joinDataSourceBoList;
}
Also used : JoinDataSourceBo(com.navercorp.pinpoint.common.server.bo.stat.join.JoinDataSourceBo) AggreJoinDataSourceBo(com.navercorp.pinpoint.web.vo.stat.AggreJoinDataSourceBo) ArrayList(java.util.ArrayList)

Aggregations

JoinDataSourceBo (com.navercorp.pinpoint.common.server.bo.stat.join.JoinDataSourceBo)9 ArrayList (java.util.ArrayList)6 AggreJoinDataSourceBo (com.navercorp.pinpoint.web.vo.stat.AggreJoinDataSourceBo)4 JoinDataSourceListBo (com.navercorp.pinpoint.common.server.bo.stat.join.JoinDataSourceListBo)3 JoinIntFieldBo (com.navercorp.pinpoint.common.server.bo.stat.join.JoinIntFieldBo)3 TFDataSource (com.navercorp.pinpoint.thrift.dto.flink.TFDataSource)2 TFDataSourceList (com.navercorp.pinpoint.thrift.dto.flink.TFDataSourceList)2 AgentStatHeaderDecoder (com.navercorp.pinpoint.common.server.bo.codec.stat.header.AgentStatHeaderDecoder)1 AgentStatHeaderEncoder (com.navercorp.pinpoint.common.server.bo.codec.stat.header.AgentStatHeaderEncoder)1 BitCountingHeaderDecoder (com.navercorp.pinpoint.common.server.bo.codec.stat.header.BitCountingHeaderDecoder)1 BitCountingHeaderEncoder (com.navercorp.pinpoint.common.server.bo.codec.stat.header.BitCountingHeaderEncoder)1 JoinIntFieldEncodingStrategy (com.navercorp.pinpoint.common.server.bo.codec.stat.strategy.JoinIntFieldEncodingStrategy)1 JoinIntFieldStrategyAnalyzer (com.navercorp.pinpoint.common.server.bo.codec.stat.strategy.JoinIntFieldStrategyAnalyzer)1 StrategyAnalyzer (com.navercorp.pinpoint.common.server.bo.codec.stat.strategy.StrategyAnalyzer)1 StringEncodingStrategy (com.navercorp.pinpoint.common.server.bo.codec.stat.strategy.StringEncodingStrategy)1 UnsignedShortEncodingStrategy (com.navercorp.pinpoint.common.server.bo.codec.stat.strategy.UnsignedShortEncodingStrategy)1 TFAgentStat (com.navercorp.pinpoint.thrift.dto.flink.TFAgentStat)1 AggreJoinDataSourceListBo (com.navercorp.pinpoint.web.vo.stat.AggreJoinDataSourceListBo)1 Test (org.junit.Test)1