use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo in project pinpoint by naver.
the class JoinFileDescriptorSampler method sampleDataPoints.
@Override
public AggreJoinFileDescriptorBo sampleDataPoints(int timeWindowIndex, long timestamp, List<JoinFileDescriptorBo> joinFileDescriptorBoList, JoinFileDescriptorBo previousDataPoint) {
if (CollectionUtils.isEmpty(joinFileDescriptorBoList)) {
return AggreJoinFileDescriptorBo.createUncollectedObject(timestamp);
}
JoinFileDescriptorBo joinFileDescriptorBo = JoinFileDescriptorBo.joinFileDescriptorBoList(joinFileDescriptorBoList, timestamp);
String id = joinFileDescriptorBo.getId();
final JoinLongFieldBo openFdCountJoinValue = joinFileDescriptorBo.getOpenFdCountJoinValue();
AggreJoinFileDescriptorBo aggreJoinFileDescriptorBo = new AggreJoinFileDescriptorBo(id, openFdCountJoinValue, timestamp);
return aggreJoinFileDescriptorBo;
}
use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo in project pinpoint by naver.
the class JoinTotalThreadCountSampler method sampleDataPoints.
@Override
public AggreJoinTotalThreadCountBo sampleDataPoints(int index, long timestamp, List<JoinTotalThreadCountBo> dataPoints, JoinTotalThreadCountBo previousDataPoint) {
if (CollectionUtils.isEmpty(dataPoints)) {
return AggreJoinTotalThreadCountBo.createUncollectedObject(timestamp);
}
JoinTotalThreadCountBo joinTotalThreadCountBo = JoinTotalThreadCountBo.joinTotalThreadCountBoList(dataPoints, timestamp);
String id = joinTotalThreadCountBo.getId();
final JoinLongFieldBo totalThreadCountJoinValue = joinTotalThreadCountBo.getTotalThreadCountJoinValue();
AggreJoinTotalThreadCountBo aggreJoinTotalThraedCountBo = new AggreJoinTotalThreadCountBo(id, timestamp, totalThreadCountJoinValue);
return aggreJoinTotalThraedCountBo;
}
use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo in project pinpoint by naver.
the class JoinLoadedClassBoMapper method map.
@Override
public JoinLoadedClassBo map(TFAgentStat thriftObject) {
if (!thriftObject.isSetLoadedClass()) {
return JoinLoadedClassBo.EMPTY_JOIN_LOADED_CLASS_BO;
}
JoinLoadedClassBo joinLoadedClassBo = new JoinLoadedClassBo();
final String agentId = thriftObject.getAgentId();
final long loadedClass = thriftObject.getLoadedClass().getLoadedClassCount();
final long unloadedClass = thriftObject.getLoadedClass().getUnloadedClassCount();
joinLoadedClassBo.setId(agentId);
joinLoadedClassBo.setTimestamp(thriftObject.getTimestamp());
joinLoadedClassBo.setLoadedClassJoinValue(new JoinLongFieldBo(loadedClass, loadedClass, agentId, loadedClass, agentId));
joinLoadedClassBo.setUnloadedClassJoinValue(new JoinLongFieldBo(unloadedClass, unloadedClass, agentId, unloadedClass, agentId));
return joinLoadedClassBo;
}
use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo in project pinpoint by naver.
the class JoinResponseTimeBoMapper method map.
public JoinResponseTimeBo map(TFAgentStat tFAgentStat) {
if (!tFAgentStat.isSetResponseTime()) {
return JoinResponseTimeBo.EMPTY_JOIN_RESPONSE_TIME_BO;
}
final String agentId = tFAgentStat.getAgentId();
final TFResponseTime tFResponseTime = tFAgentStat.getResponseTime();
final long avg = tFResponseTime.getAvg();
JoinResponseTimeBo joinResponseTimeBo = new JoinResponseTimeBo();
joinResponseTimeBo.setId(agentId);
joinResponseTimeBo.setTimestamp(tFAgentStat.getTimestamp());
joinResponseTimeBo.setResponseTimeJoinValue(new JoinLongFieldBo(avg, avg, agentId, avg, agentId));
return joinResponseTimeBo;
}
use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo in project pinpoint by naver.
the class JoinTransactionBoMapper method map.
@Override
public JoinTransactionBo map(TFAgentStat tFAgentStat) {
if (!tFAgentStat.isSetTransaction()) {
return JoinTransactionBo.EMPTY_JOIN_TRANSACTION_BO;
}
TFTransaction tFtransaction = tFAgentStat.getTransaction();
final long totalCount = calculateTotalCount(tFtransaction);
final String agentId = tFAgentStat.getAgentId();
JoinTransactionBo joinTransactionBo = new JoinTransactionBo();
joinTransactionBo.setId(agentId);
joinTransactionBo.setCollectInterval(tFAgentStat.getCollectInterval());
joinTransactionBo.setTimestamp(tFAgentStat.getTimestamp());
joinTransactionBo.setTotalCountJoinValue(new JoinLongFieldBo(totalCount, totalCount, agentId, totalCount, agentId));
return joinTransactionBo;
}
Aggregations