Search in sources :

Example 11 with JoinCpuLoadBo

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

the class JoinCpuLoadBoMapper method map.

@Override
public JoinCpuLoadBo map(TFAgentStat tFAgentStat) {
    if (!tFAgentStat.isSetCpuLoad()) {
        return JoinCpuLoadBo.EMPTY_JOIN_CPU_LOAD_BO;
    }
    JoinCpuLoadBo joinCpuLoadBo = new JoinCpuLoadBo();
    final String agentId = tFAgentStat.getAgentId();
    joinCpuLoadBo.setId(agentId);
    joinCpuLoadBo.setTimestamp(tFAgentStat.getTimestamp());
    TFCpuLoad tFCpuLoad = tFAgentStat.getCpuLoad();
    final double jvmCpuLoad = tFCpuLoad.getJvmCpuLoad();
    joinCpuLoadBo.setJvmCpuLoadJoinValue(new JoinDoubleFieldBo(jvmCpuLoad, jvmCpuLoad, agentId, jvmCpuLoad, agentId));
    final double systemCpuLoad = tFCpuLoad.getSystemCpuLoad();
    joinCpuLoadBo.setSystemCpuLoadJoinValue(new JoinDoubleFieldBo(systemCpuLoad, systemCpuLoad, agentId, systemCpuLoad, agentId));
    return joinCpuLoadBo;
}
Also used : JoinCpuLoadBo(com.navercorp.pinpoint.common.server.bo.stat.join.JoinCpuLoadBo) TFCpuLoad(com.navercorp.pinpoint.thrift.dto.flink.TFCpuLoad) JoinDoubleFieldBo(com.navercorp.pinpoint.common.server.bo.stat.join.JoinDoubleFieldBo)

Aggregations

JoinCpuLoadBo (com.navercorp.pinpoint.common.server.bo.stat.join.JoinCpuLoadBo)11 JoinDoubleFieldBo (com.navercorp.pinpoint.common.server.bo.stat.join.JoinDoubleFieldBo)6 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 TFCpuLoad (com.navercorp.pinpoint.thrift.dto.flink.TFCpuLoad)3 AggreJoinCpuLoadBo (com.navercorp.pinpoint.web.vo.stat.AggreJoinCpuLoadBo)2 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 JoinLongFieldBo (com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo)1 TFAgentStatBatch (com.navercorp.pinpoint.thrift.dto.flink.TFAgentStatBatch)1 Date (java.util.Date)1