Search in sources :

Example 1 with JoinLongFieldBo

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;
}
Also used : AggreJoinFileDescriptorBo(com.navercorp.pinpoint.web.vo.stat.AggreJoinFileDescriptorBo) AggreJoinFileDescriptorBo(com.navercorp.pinpoint.web.vo.stat.AggreJoinFileDescriptorBo) JoinFileDescriptorBo(com.navercorp.pinpoint.common.server.bo.stat.join.JoinFileDescriptorBo) JoinLongFieldBo(com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo)

Example 2 with JoinLongFieldBo

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;
}
Also used : AggreJoinTotalThreadCountBo(com.navercorp.pinpoint.web.vo.stat.AggreJoinTotalThreadCountBo) AggreJoinTotalThreadCountBo(com.navercorp.pinpoint.web.vo.stat.AggreJoinTotalThreadCountBo) JoinTotalThreadCountBo(com.navercorp.pinpoint.common.server.bo.stat.join.JoinTotalThreadCountBo) JoinLongFieldBo(com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo)

Example 3 with JoinLongFieldBo

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

Example 4 with JoinLongFieldBo

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;
}
Also used : JoinResponseTimeBo(com.navercorp.pinpoint.common.server.bo.stat.join.JoinResponseTimeBo) JoinLongFieldBo(com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo) TFResponseTime(com.navercorp.pinpoint.thrift.dto.flink.TFResponseTime)

Example 5 with JoinLongFieldBo

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;
}
Also used : TFTransaction(com.navercorp.pinpoint.thrift.dto.flink.TFTransaction) JoinTransactionBo(com.navercorp.pinpoint.common.server.bo.stat.join.JoinTransactionBo) JoinLongFieldBo(com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo)

Aggregations

JoinLongFieldBo (com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo)54 ArrayList (java.util.ArrayList)18 Test (org.junit.Test)18 TFAgentStat (com.navercorp.pinpoint.thrift.dto.flink.TFAgentStat)10 AgentStatHeaderDecoder (com.navercorp.pinpoint.common.server.bo.codec.stat.header.AgentStatHeaderDecoder)8 BitCountingHeaderDecoder (com.navercorp.pinpoint.common.server.bo.codec.stat.header.BitCountingHeaderDecoder)8 JoinLongFieldEncodingStrategy (com.navercorp.pinpoint.common.server.bo.codec.stat.strategy.JoinLongFieldEncodingStrategy)8 JoinStatBo (com.navercorp.pinpoint.common.server.bo.stat.join.JoinStatBo)8 JoinResponseTimeBo (com.navercorp.pinpoint.common.server.bo.stat.join.JoinResponseTimeBo)7 JoinTransactionBo (com.navercorp.pinpoint.common.server.bo.stat.join.JoinTransactionBo)7 JoinDirectBufferBo (com.navercorp.pinpoint.common.server.bo.stat.join.JoinDirectBufferBo)6 JoinLoadedClassBo (com.navercorp.pinpoint.common.server.bo.stat.join.JoinLoadedClassBo)6 JoinTotalThreadCountBo (com.navercorp.pinpoint.common.server.bo.stat.join.JoinTotalThreadCountBo)6 JoinMemoryBo (com.navercorp.pinpoint.common.server.bo.stat.join.JoinMemoryBo)5 JoinAgentStatBo (com.navercorp.pinpoint.common.server.bo.stat.join.JoinAgentStatBo)4 JoinFileDescriptorBo (com.navercorp.pinpoint.common.server.bo.stat.join.JoinFileDescriptorBo)4 TFAgentStatBatch (com.navercorp.pinpoint.thrift.dto.flink.TFAgentStatBatch)4 Date (java.util.Date)4 TFResponseTime (com.navercorp.pinpoint.thrift.dto.flink.TFResponseTime)3 TFTransaction (com.navercorp.pinpoint.thrift.dto.flink.TFTransaction)3