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);
}
}
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;
}
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);
}
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);
}
}
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;
}
Aggregations