Search in sources :

Example 11 with JoinMemoryBo

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);
}
Also used : JoinMemoryBo(com.navercorp.pinpoint.common.server.bo.stat.join.JoinMemoryBo)

Example 12 with JoinMemoryBo

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;
}
Also used : AggreJoinMemoryBo(com.navercorp.pinpoint.web.vo.stat.AggreJoinMemoryBo) JoinMemoryBo(com.navercorp.pinpoint.common.server.bo.stat.join.JoinMemoryBo) ArrayList(java.util.ArrayList)

Aggregations

JoinMemoryBo (com.navercorp.pinpoint.common.server.bo.stat.join.JoinMemoryBo)12 JoinLongFieldBo (com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo)5 ArrayList (java.util.ArrayList)5 Test (org.junit.Test)4 JoinStatBo (com.navercorp.pinpoint.common.server.bo.stat.join.JoinStatBo)3 TFAgentStat (com.navercorp.pinpoint.thrift.dto.flink.TFAgentStat)3 TFJvmGc (com.navercorp.pinpoint.thrift.dto.flink.TFJvmGc)3 AggreJoinMemoryBo (com.navercorp.pinpoint.web.vo.stat.AggreJoinMemoryBo)3 AgentStatHeaderDecoder (com.navercorp.pinpoint.common.server.bo.codec.stat.header.AgentStatHeaderDecoder)1 BitCountingHeaderDecoder (com.navercorp.pinpoint.common.server.bo.codec.stat.header.BitCountingHeaderDecoder)1 JoinLongFieldEncodingStrategy (com.navercorp.pinpoint.common.server.bo.codec.stat.strategy.JoinLongFieldEncodingStrategy)1 JoinLongFieldStrategyAnalyzer (com.navercorp.pinpoint.common.server.bo.codec.stat.strategy.JoinLongFieldStrategyAnalyzer)1 JoinAgentStatBo (com.navercorp.pinpoint.common.server.bo.stat.join.JoinAgentStatBo)1 TFAgentStatBatch (com.navercorp.pinpoint.thrift.dto.flink.TFAgentStatBatch)1