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;
}
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;
}
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;
}
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;
}
Aggregations