Search in sources :

Example 6 with AgentUriStatBo

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

the class AgentUriStatCodecV2 method decodeValues.

@Override
public List<AgentUriStatBo> decodeValues(Buffer valueBuffer, AgentStatDecodingContext decodingContext) {
    AgentUriStatBo agentUriStatBo = new AgentUriStatBo();
    final String agentId = decodingContext.getAgentId();
    agentUriStatBo.setAgentId(agentId);
    final long startTimeStamp = valueBuffer.readVLong();
    agentUriStatBo.setStartTimestamp(startTimeStamp);
    final long timestamp = valueBuffer.readVLong();
    agentUriStatBo.setTimestamp(timestamp);
    final byte bucketVersion = valueBuffer.readByte();
    agentUriStatBo.setBucketVersion(bucketVersion);
    EachUriStatCodecV2 eachUriStatCodecV2 = new EachUriStatCodecV2(codec);
    List<EachUriStatBo> eachUriStatBoList = eachUriStatCodecV2.decodeValues(valueBuffer, decodingContext);
    agentUriStatBo.addAllEachUriStatBo(eachUriStatBoList);
    return Arrays.asList(agentUriStatBo);
}
Also used : AgentUriStatBo(com.navercorp.pinpoint.common.server.bo.stat.AgentUriStatBo) EachUriStatBo(com.navercorp.pinpoint.common.server.bo.stat.EachUriStatBo)

Aggregations

AgentUriStatBo (com.navercorp.pinpoint.common.server.bo.stat.AgentUriStatBo)6 EachUriStatBo (com.navercorp.pinpoint.common.server.bo.stat.EachUriStatBo)4 AgentStatDataPoint (com.navercorp.pinpoint.common.server.bo.stat.AgentStatDataPoint)1 Header (com.navercorp.pinpoint.grpc.Header)1 PEachUriStat (com.navercorp.pinpoint.grpc.trace.PEachUriStat)1 SampledUriStatResultExtractor (com.navercorp.pinpoint.web.mapper.stat.SampledUriStatResultExtractor)1 Range (com.navercorp.pinpoint.web.vo.Range)1 SampledAgentUriStat (com.navercorp.pinpoint.web.vo.stat.SampledAgentUriStat)1 SampledEachUriStatBo (com.navercorp.pinpoint.web.vo.stat.SampledEachUriStatBo)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 List (java.util.List)1 Result (org.apache.hadoop.hbase.client.Result)1