use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinMemoryBo in project pinpoint by naver.
the class TBaseFlatMapperTest method assertJoinMemoryBo.
private void assertJoinMemoryBo(List<JoinMemoryBo> joinMemoryBoList) {
assertEquals(2, joinMemoryBoList.size());
JoinMemoryBo joinMemoryBo = joinMemoryBoList.get(0);
assertEquals(joinMemoryBo.getId(), AGENT_ID);
assertEquals((long) joinMemoryBo.getHeapUsedJoinValue().getAvg(), 3000);
assertEquals((long) joinMemoryBo.getNonHeapUsedJoinValue().getAvg(), 450);
assertEquals(joinMemoryBo.getTimestamp(), 1491274143454L);
JoinMemoryBo joinMemoryBo2 = joinMemoryBoList.get(1);
assertEquals(joinMemoryBo2.getId(), AGENT_ID);
assertEquals((long) joinMemoryBo2.getHeapUsedJoinValue().getAvg(), 2000);
assertEquals((long) joinMemoryBo2.getNonHeapUsedJoinValue().getAvg(), 850);
assertEquals(joinMemoryBo2.getTimestamp(), 1491274148454L);
}
use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinMemoryBo in project pinpoint by naver.
the class JoinMemorySamplerTest method createJoinMemoryBoList.
private List<JoinMemoryBo> createJoinMemoryBoList(long currentTime) {
List<JoinMemoryBo> joinMemoryBoList = new ArrayList<JoinMemoryBo>();
JoinMemoryBo joinMemoryBo1 = new JoinMemoryBo(ID, currentTime + 5000, 3000, 2000, 5000, "app_1_1", "app_1_2", 500, 50, 600, "app_1_3", "app_1_4");
JoinMemoryBo joinMemoryBo2 = new JoinMemoryBo(ID, currentTime + 10000, 4000, 1000, 7000, "app_2_1", "app_2_2", 400, 150, 600, "app_2_3", "app_2_4");
JoinMemoryBo joinMemoryBo3 = new JoinMemoryBo(ID, currentTime + 15000, 5000, 3000, 8000, "app_3_1", "app_3_2", 200, 100, 200, "app_3_3", "app_3_4");
JoinMemoryBo joinMemoryBo4 = new JoinMemoryBo(ID, currentTime + 20000, 1000, 100, 3000, "app_4_1", "app_4_2", 100, 900, 1000, "app_4_3", "app_4_4");
JoinMemoryBo joinMemoryBo5 = new JoinMemoryBo(ID, currentTime + 25000, 2000, 1000, 6000, "app_5_1", "app_5_2", 300, 100, 2900, "app_5_3", "app_5_4");
joinMemoryBoList.add(joinMemoryBo1);
joinMemoryBoList.add(joinMemoryBo3);
joinMemoryBoList.add(joinMemoryBo2);
joinMemoryBoList.add(joinMemoryBo5);
joinMemoryBoList.add(joinMemoryBo4);
return joinMemoryBoList;
}
Aggregations