Search in sources :

Example 1 with DirectBufferBo

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

the class GrpcDirectBufferBoMapper method map.

@Override
public void map(AgentStatBo.Builder.StatBuilder builder, PAgentStat agentStat) {
    // directBuffer
    if (agentStat.hasDirectBuffer()) {
        final PDirectBuffer directBuffer = agentStat.getDirectBuffer();
        final DirectBufferBo directBufferBo = this.map(directBuffer);
        builder.addDirectBuffer(directBufferBo);
    }
}
Also used : PDirectBuffer(com.navercorp.pinpoint.grpc.trace.PDirectBuffer) DirectBufferBo(com.navercorp.pinpoint.common.server.bo.stat.DirectBufferBo)

Example 2 with DirectBufferBo

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

the class GrpcDirectBufferBoMapper method map.

public DirectBufferBo map(final PDirectBuffer tOpenDirectBuffer) {
    final DirectBufferBo directBufferBo = new DirectBufferBo();
    directBufferBo.setDirectCount(tOpenDirectBuffer.getDirectCount());
    directBufferBo.setDirectMemoryUsed(tOpenDirectBuffer.getDirectMemoryUsed());
    directBufferBo.setMappedCount(tOpenDirectBuffer.getMappedCount());
    directBufferBo.setMappedMemoryUsed(tOpenDirectBuffer.getMappedMemoryUsed());
    return directBufferBo;
}
Also used : DirectBufferBo(com.navercorp.pinpoint.common.server.bo.stat.DirectBufferBo)

Example 3 with DirectBufferBo

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

the class TFDirectBufferMapperTest method mapTest.

@Test
public void mapTest() {
    TFDirectBufferMapper tFDirectBufferMapper = new TFDirectBufferMapper();
    DirectBufferBo directBufferBo = new DirectBufferBo();
    directBufferBo.setDirectCount(30);
    directBufferBo.setDirectMemoryUsed(30);
    directBufferBo.setMappedCount(30);
    directBufferBo.setMappedMemoryUsed(30);
    TFDirectBuffer tFDirectBuffer = tFDirectBufferMapper.map(directBufferBo);
    assertEquals(tFDirectBuffer.getDirectCount(), 30, 0);
    assertEquals(tFDirectBuffer.getDirectMemoryUsed(), 30, 0);
    assertEquals(tFDirectBuffer.getMappedCount(), 30, 0);
    assertEquals(tFDirectBuffer.getMappedMemoryUsed(), 30, 0);
}
Also used : TFDirectBuffer(com.navercorp.pinpoint.thrift.dto.flink.TFDirectBuffer) DirectBufferBo(com.navercorp.pinpoint.common.server.bo.stat.DirectBufferBo) Test(org.junit.Test)

Example 4 with DirectBufferBo

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

the class ThriftDirectBufferBoMapper method map.

@Override
public void map(AgentStatBo.Builder.StatBuilder agentStatBo, TAgentStat tAgentStat) {
    // directBuffer
    if (tAgentStat.isSetDirectBuffer()) {
        DirectBufferBo directBufferBo = this.map(tAgentStat.getDirectBuffer());
        agentStatBo.addDirectBuffer(directBufferBo);
    }
}
Also used : DirectBufferBo(com.navercorp.pinpoint.common.server.bo.stat.DirectBufferBo)

Example 5 with DirectBufferBo

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

the class ThriftDirectBufferBoMapper method map.

@Override
public DirectBufferBo map(TDirectBuffer tOpenDirectBuffer) {
    DirectBufferBo directBufferBo = new DirectBufferBo();
    directBufferBo.setDirectCount(tOpenDirectBuffer.getDirectCount());
    directBufferBo.setDirectMemoryUsed(tOpenDirectBuffer.getDirectMemoryUsed());
    directBufferBo.setMappedCount(tOpenDirectBuffer.getMappedCount());
    directBufferBo.setMappedMemoryUsed(tOpenDirectBuffer.getMappedMemoryUsed());
    return directBufferBo;
}
Also used : DirectBufferBo(com.navercorp.pinpoint.common.server.bo.stat.DirectBufferBo)

Aggregations

DirectBufferBo (com.navercorp.pinpoint.common.server.bo.stat.DirectBufferBo)8 SampledDirectBuffer (com.navercorp.pinpoint.web.vo.stat.SampledDirectBuffer)2 AgentStatBo (com.navercorp.pinpoint.common.server.bo.stat.AgentStatBo)1 PDirectBuffer (com.navercorp.pinpoint.grpc.trace.PDirectBuffer)1 TFDirectBuffer (com.navercorp.pinpoint.thrift.dto.flink.TFDirectBuffer)1 SampledAgentStatResultExtractor (com.navercorp.pinpoint.web.mapper.stat.SampledAgentStatResultExtractor)1 Range (com.navercorp.pinpoint.web.vo.Range)1 Test (org.junit.Test)1