use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo in project pinpoint by naver.
the class JoinResponseTimeSamplerTest method sampleDataPoints2Test.
@Test
public void sampleDataPoints2Test() {
long currentTime = 1487149800000L;
JoinResponseTimeSampler joinResponseTimeSampler = new JoinResponseTimeSampler();
List<JoinResponseTimeBo> joinResponseTimeBoList = new ArrayList<JoinResponseTimeBo>();
AggreJoinResponseTimeBo aggreJoinResponseTimeBo = joinResponseTimeSampler.sampleDataPoints(1, currentTime, joinResponseTimeBoList, JoinResponseTimeBo.EMPTY_JOIN_RESPONSE_TIME_BO);
assertEquals(aggreJoinResponseTimeBo.getId(), JoinResponseTimeBo.UNKNOWN_ID);
assertEquals(aggreJoinResponseTimeBo.getTimestamp(), 1487149800000L);
assertEquals(aggreJoinResponseTimeBo.getResponseTimeJoinValue(), new JoinLongFieldBo(JoinResponseTimeBo.UNCOLLECTED_VALUE, JoinResponseTimeBo.UNCOLLECTED_VALUE, JoinResponseTimeBo.UNKNOWN_AGENT, JoinResponseTimeBo.UNCOLLECTED_VALUE, JoinResponseTimeBo.UNKNOWN_AGENT));
}
use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo in project pinpoint by naver.
the class JoinTransactionSamplerTest method sampleDataPointsTest.
@Test
public void sampleDataPointsTest() {
long currentTime = 1487149800000L;
JoinTransactionSampler joinTransactionSampler = new JoinTransactionSampler();
List<JoinTransactionBo> joinTransactionBoList = createJoinTransactionBoList(currentTime);
AggreJoinTransactionBo aggreJoinTransactionBo = joinTransactionSampler.sampleDataPoints(1, currentTime, joinTransactionBoList, JoinTransactionBo.EMPTY_JOIN_TRANSACTION_BO);
assertEquals(aggreJoinTransactionBo.getId(), "test_app");
assertEquals(aggreJoinTransactionBo.getCollectInterval(), 5000);
assertEquals(aggreJoinTransactionBo.getTotalCountJoinValue(), new JoinLongFieldBo(130l, 10l, "app_1_1", 560l, "app_4_2"));
assertEquals(aggreJoinTransactionBo.getTimestamp(), 1487149800000L);
}
use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo in project pinpoint by naver.
the class ApplicationMemoryChartGroupTest method testHeap.
private void testHeap(DoubleApplicationStatPoint memoryPoint, AggreJoinMemoryBo aggreJoinMemoryBo) {
final JoinLongFieldBo heapUsedJoinValue = aggreJoinMemoryBo.getHeapUsedJoinValue();
assertEquals(memoryPoint.getYValForAvg(), heapUsedJoinValue.getAvg(), 0);
assertEquals(memoryPoint.getYValForMin(), heapUsedJoinValue.getMin(), 0);
assertEquals(memoryPoint.getYValForMax(), heapUsedJoinValue.getMax(), 0);
assertEquals(memoryPoint.getAgentIdForMin(), heapUsedJoinValue.getMinAgentId());
assertEquals(memoryPoint.getAgentIdForMax(), heapUsedJoinValue.getMaxAgentId());
}
use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo in project pinpoint by naver.
the class ApplicationDirectBufferChartGroupTest method testMappedMemoryUsed.
private void testMappedMemoryUsed(LongApplicationStatPoint directBufferPoint, AggreJoinDirectBufferBo aggreJoinDirectBufferBo) {
final JoinLongFieldBo mappedMemoryUsedJoinValue = aggreJoinDirectBufferBo.getMappedMemoryUsedJoinValue();
assertEquals(directBufferPoint.getXVal(), aggreJoinDirectBufferBo.getTimestamp());
assertEquals(directBufferPoint.getYValForAvg(), mappedMemoryUsedJoinValue.getAvg(), 0);
assertEquals(directBufferPoint.getYValForMin(), mappedMemoryUsedJoinValue.getMin(), 0);
assertEquals(directBufferPoint.getYValForMax(), mappedMemoryUsedJoinValue.getMax(), 0);
assertEquals(directBufferPoint.getAgentIdForMin(), mappedMemoryUsedJoinValue.getMinAgentId());
assertEquals(directBufferPoint.getAgentIdForMax(), mappedMemoryUsedJoinValue.getMaxAgentId());
}
use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo in project pinpoint by naver.
the class ApplicationLoadedClassChartGroupTest method testLoadedCLass.
private void testLoadedCLass(LongApplicationStatPoint point, AggreJoinLoadedClassBo loadedClassBo) {
final JoinLongFieldBo loadedClass = loadedClassBo.getLoadedClassJoinValue();
assertEquals(point.getXVal(), loadedClassBo.getTimestamp());
assertEquals(point.getYValForAvg(), loadedClass.getAvg(), 0);
assertEquals(point.getYValForMin(), loadedClass.getMin(), 0);
assertEquals(point.getYValForMax(), loadedClass.getMax(), 0);
assertEquals(point.getAgentIdForMin(), loadedClass.getMinAgentId());
assertEquals(point.getAgentIdForMax(), loadedClass.getMaxAgentId());
}
Aggregations