use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo in project pinpoint by naver.
the class JoinDirectBufferSampler method sampleDataPoints.
@Override
public AggreJoinDirectBufferBo sampleDataPoints(int timeWindowIndex, long timestamp, List<JoinDirectBufferBo> joinDirectBufferBoList, JoinDirectBufferBo previousDataPoint) {
if (CollectionUtils.isEmpty(joinDirectBufferBoList)) {
return AggreJoinDirectBufferBo.createUncollectedObject(timestamp);
}
JoinDirectBufferBo joinDirectBufferBo = JoinDirectBufferBo.joinDirectBufferBoList(joinDirectBufferBoList, timestamp);
String id = joinDirectBufferBo.getId();
final JoinLongFieldBo directCountJoinValue = joinDirectBufferBo.getDirectCountJoinValue();
final JoinLongFieldBo directMemoryUsedJoinValue = joinDirectBufferBo.getDirectMemoryUsedJoinValue();
final JoinLongFieldBo mappedCountJoinValue = joinDirectBufferBo.getMappedCountJoinValue();
final JoinLongFieldBo mappedMemoryUsedJoinValue = joinDirectBufferBo.getMappedMemoryUsedJoinValue();
AggreJoinDirectBufferBo aggreJoinDirectBufferBo = new AggreJoinDirectBufferBo(id, directCountJoinValue, directMemoryUsedJoinValue, mappedCountJoinValue, mappedMemoryUsedJoinValue, timestamp);
return aggreJoinDirectBufferBo;
}
use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo in project pinpoint by naver.
the class JoinLoadedClassSampler method sampleDataPoints.
@Override
public AggreJoinLoadedClassBo sampleDataPoints(int timeWindowIndex, long timestamp, List<JoinLoadedClassBo> joinLoadedClassBoList, JoinLoadedClassBo previousDataPoint) {
if (CollectionUtils.isEmpty(joinLoadedClassBoList)) {
return AggreJoinLoadedClassBo.createUncollectedObject(timestamp);
}
JoinLoadedClassBo joinLoadedClassBo = AggreJoinLoadedClassBo.joinLoadedClassBoList(joinLoadedClassBoList, timestamp);
String id = joinLoadedClassBo.getId();
JoinLongFieldBo loadedClassJoinValue = joinLoadedClassBo.getLoadedClassJoinValue();
JoinLongFieldBo unloadedClassJoinValue = joinLoadedClassBo.getUnloadedClassJoinValue();
AggreJoinLoadedClassBo aggreJoinLoadedClassBo = new AggreJoinLoadedClassBo(id, loadedClassJoinValue, unloadedClassJoinValue, timestamp);
return aggreJoinLoadedClassBo;
}
use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo in project pinpoint by naver.
the class JoinResponseTimeSampler method sampleDataPoints.
@Override
public AggreJoinResponseTimeBo sampleDataPoints(int index, long timestamp, List<JoinResponseTimeBo> joinResponseTimeBoList, JoinResponseTimeBo previousDataPoint) {
if (CollectionUtils.isEmpty(joinResponseTimeBoList)) {
return AggreJoinResponseTimeBo.createUncollectedObject(timestamp);
}
JoinResponseTimeBo joinResponseTimeBo = JoinResponseTimeBo.joinResponseTimeBoList(joinResponseTimeBoList, timestamp);
String id = joinResponseTimeBo.getId();
JoinLongFieldBo responseTimeJoinValue = joinResponseTimeBo.getResponseTimeJoinValue();
AggreJoinResponseTimeBo aggreJoinResponseTimeBo = new AggreJoinResponseTimeBo(id, timestamp, responseTimeJoinValue);
return aggreJoinResponseTimeBo;
}
use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo in project pinpoint by naver.
the class JoinTransactionSampler method sampleDataPoints.
@Override
public AggreJoinTransactionBo sampleDataPoints(int index, long timestamp, List<JoinTransactionBo> joinTransactionBoList, JoinTransactionBo previousDataPoint) {
if (CollectionUtils.isEmpty(joinTransactionBoList)) {
return AggreJoinTransactionBo.createUncollectedObject(timestamp);
}
JoinTransactionBo joinTransactionBo = JoinTransactionBo.joinTransactionBoList(joinTransactionBoList, timestamp);
String id = joinTransactionBo.getId();
long collectInterval = joinTransactionBo.getCollectInterval();
final JoinLongFieldBo totalCountJoinValue = joinTransactionBo.getTotalCountJoinValue();
AggreJoinTransactionBo aggreJoinTransactionBo = new AggreJoinTransactionBo(id, collectInterval, totalCountJoinValue, timestamp);
return aggreJoinTransactionBo;
}
use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo in project pinpoint by naver.
the class ApplicationDirectBufferChartGroupTest method testDirectCount.
private void testDirectCount(LongApplicationStatPoint directBufferPoint, AggreJoinDirectBufferBo aggreJoinDirectBufferBo) {
final JoinLongFieldBo directCountJoinValue = aggreJoinDirectBufferBo.getDirectCountJoinValue();
assertEquals(directBufferPoint.getXVal(), aggreJoinDirectBufferBo.getTimestamp());
assertEquals(directBufferPoint.getYValForAvg(), directCountJoinValue.getAvg(), 0);
assertEquals(directBufferPoint.getYValForMin(), directCountJoinValue.getMin(), 0);
assertEquals(directBufferPoint.getYValForMax(), directCountJoinValue.getMax(), 0);
assertEquals(directBufferPoint.getAgentIdForMin(), directCountJoinValue.getMinAgentId());
assertEquals(directBufferPoint.getAgentIdForMax(), directCountJoinValue.getMaxAgentId());
}
Aggregations