Search in sources :

Example 16 with TransactionBo

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;
}
Also used : TransactionBo(com.navercorp.pinpoint.common.server.bo.stat.TransactionBo)

Example 17 with TransactionBo

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);
}
Also used : SampledTransaction(com.navercorp.pinpoint.web.vo.stat.SampledTransaction) SampledAgentStatResultExtractor(com.navercorp.pinpoint.web.mapper.stat.SampledAgentStatResultExtractor) Range(com.navercorp.pinpoint.web.vo.Range) TransactionBo(com.navercorp.pinpoint.common.server.bo.stat.TransactionBo)

Example 18 with TransactionBo

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);
    }
}
Also used : TransactionBo(com.navercorp.pinpoint.common.server.bo.stat.TransactionBo)

Aggregations

TransactionBo (com.navercorp.pinpoint.common.server.bo.stat.TransactionBo)18 ArrayList (java.util.ArrayList)7 AgentStatBo (com.navercorp.pinpoint.common.server.bo.stat.AgentStatBo)3 SampledTransaction (com.navercorp.pinpoint.web.vo.stat.SampledTransaction)3 AgentStatHeaderDecoder (com.navercorp.pinpoint.common.server.bo.codec.stat.header.AgentStatHeaderDecoder)2 BitCountingHeaderDecoder (com.navercorp.pinpoint.common.server.bo.codec.stat.header.BitCountingHeaderDecoder)2 StrategyAnalyzer (com.navercorp.pinpoint.common.server.bo.codec.stat.strategy.StrategyAnalyzer)2 UnsignedLongEncodingStrategy (com.navercorp.pinpoint.common.server.bo.codec.stat.strategy.UnsignedLongEncodingStrategy)2 ActiveTraceBo (com.navercorp.pinpoint.common.server.bo.stat.ActiveTraceBo)2 CpuLoadBo (com.navercorp.pinpoint.common.server.bo.stat.CpuLoadBo)2 DataSourceBo (com.navercorp.pinpoint.common.server.bo.stat.DataSourceBo)2 DataSourceListBo (com.navercorp.pinpoint.common.server.bo.stat.DataSourceListBo)2 JvmGcBo (com.navercorp.pinpoint.common.server.bo.stat.JvmGcBo)2 JvmGcDetailedBo (com.navercorp.pinpoint.common.server.bo.stat.JvmGcDetailedBo)2 TDataSource (com.navercorp.pinpoint.thrift.dto.TDataSource)2 TDataSourceList (com.navercorp.pinpoint.thrift.dto.TDataSourceList)2 SampledAgentStatResultExtractor (com.navercorp.pinpoint.web.mapper.stat.SampledAgentStatResultExtractor)2 Range (com.navercorp.pinpoint.web.vo.Range)2 PTransaction (com.navercorp.pinpoint.grpc.trace.PTransaction)1 TAgentStat (com.navercorp.pinpoint.thrift.dto.TAgentStat)1