use of com.navercorp.pinpoint.common.server.bo.stat.TransactionBo in project pinpoint by naver.
the class GrpcTransactionBoMapper method map.
public TransactionBo map(final PTransaction tTransaction) {
final TransactionBo transaction = new TransactionBo();
transaction.setSampledNewCount(tTransaction.getSampledNewCount());
transaction.setSampledContinuationCount(tTransaction.getSampledContinuationCount());
transaction.setUnsampledNewCount(tTransaction.getUnsampledNewCount());
transaction.setUnsampledContinuationCount(tTransaction.getUnsampledContinuationCount());
transaction.setSkippedNewSkipCount(tTransaction.getSkippedNewCount());
transaction.setSkippedContinuationCount(tTransaction.getSkippedContinuationCount());
return transaction;
}
use of com.navercorp.pinpoint.common.server.bo.stat.TransactionBo in project pinpoint by naver.
the class HbaseSampledTransactionDaoV2 method getSampledAgentStatList.
@Override
public List<SampledTransaction> getSampledAgentStatList(String agentId, TimeWindow timeWindow) {
long scanFrom = timeWindow.getWindowRange().getFrom();
long scanTo = timeWindow.getWindowRange().getTo() + timeWindow.getWindowSlotSize();
Range range = Range.newRange(scanFrom, scanTo);
AgentStatMapperV2<TransactionBo> mapper = operations.createRowMapper(transactionDecoder, range);
SampledAgentStatResultExtractor<TransactionBo, SampledTransaction> resultExtractor = new SampledAgentStatResultExtractor<>(timeWindow, mapper, transactionSampler);
return operations.getSampledAgentStatList(AgentStatType.TRANSACTION, resultExtractor, agentId, range);
}
use of com.navercorp.pinpoint.common.server.bo.stat.TransactionBo in project pinpoint by naver.
the class ThriftTransactionBoMapper method map.
@Override
public void map(AgentStatBo.Builder.StatBuilder agentStatBo, TAgentStat tAgentStat) {
// transaction
if (tAgentStat.isSetTransaction()) {
TransactionBo transactionBo = this.map(tAgentStat.getTransaction());
transactionBo.setCollectInterval(tAgentStat.getCollectInterval());
agentStatBo.addTransaction(transactionBo);
}
}
Aggregations