Search in sources :

Example 6 with SampledAgentStatResultExtractor

use of com.navercorp.pinpoint.web.mapper.stat.SampledAgentStatResultExtractor in project pinpoint by naver.

the class HbaseSampledJvmGcDaoV2 method getSampledAgentStatList.

@Override
public List<SampledJvmGc> getSampledAgentStatList(String agentId, TimeWindow timeWindow) {
    long scanFrom = timeWindow.getWindowRange().getFrom();
    long scanTo = timeWindow.getWindowRange().getTo() + timeWindow.getWindowSlotSize();
    Range range = new Range(scanFrom, scanTo);
    AgentStatMapperV2<JvmGcBo> mapper = operations.createRowMapper(jvmGcDecoder, range);
    SampledAgentStatResultExtractor<JvmGcBo, SampledJvmGc> resultExtractor = new SampledAgentStatResultExtractor<>(timeWindow, mapper, jvmGcSampler);
    return operations.getSampledAgentStatList(AgentStatType.JVM_GC, resultExtractor, agentId, range);
}
Also used : JvmGcBo(com.navercorp.pinpoint.common.server.bo.stat.JvmGcBo) SampledAgentStatResultExtractor(com.navercorp.pinpoint.web.mapper.stat.SampledAgentStatResultExtractor) SampledJvmGc(com.navercorp.pinpoint.web.vo.stat.SampledJvmGc) Range(com.navercorp.pinpoint.web.vo.Range)

Example 7 with SampledAgentStatResultExtractor

use of com.navercorp.pinpoint.web.mapper.stat.SampledAgentStatResultExtractor in project pinpoint by naver.

the class HbaseSampledJvmGcDetailedDaoV2 method getSampledAgentStatList.

@Override
public List<SampledJvmGcDetailed> getSampledAgentStatList(String agentId, TimeWindow timeWindow) {
    long scanFrom = timeWindow.getWindowRange().getFrom();
    long scanTo = timeWindow.getWindowRange().getTo() + timeWindow.getWindowSlotSize();
    Range range = new Range(scanFrom, scanTo);
    AgentStatMapperV2<JvmGcDetailedBo> mapper = operations.createRowMapper(jvmGcDetailedDecoder, range);
    SampledAgentStatResultExtractor<JvmGcDetailedBo, SampledJvmGcDetailed> resultExtractor = new SampledAgentStatResultExtractor<>(timeWindow, mapper, jvmGcDetailedSampler);
    return operations.getSampledAgentStatList(AgentStatType.JVM_GC_DETAILED, resultExtractor, agentId, range);
}
Also used : SampledAgentStatResultExtractor(com.navercorp.pinpoint.web.mapper.stat.SampledAgentStatResultExtractor) JvmGcDetailedBo(com.navercorp.pinpoint.common.server.bo.stat.JvmGcDetailedBo) SampledJvmGcDetailed(com.navercorp.pinpoint.web.vo.stat.SampledJvmGcDetailed) Range(com.navercorp.pinpoint.web.vo.Range)

Example 8 with SampledAgentStatResultExtractor

use of com.navercorp.pinpoint.web.mapper.stat.SampledAgentStatResultExtractor 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 = new Range(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 9 with SampledAgentStatResultExtractor

use of com.navercorp.pinpoint.web.mapper.stat.SampledAgentStatResultExtractor in project pinpoint by naver.

the class HbaseSampledCpuLoadDao method getSampledAgentStatList.

@Override
public List<SampledCpuLoad> getSampledAgentStatList(String agentId, TimeWindow timeWindow) {
    long scanFrom = timeWindow.getWindowRange().getFrom();
    long scanTo = timeWindow.getWindowRange().getTo() + timeWindow.getWindowSlotSize();
    Range range = new Range(scanFrom, scanTo);
    SampledAgentStatResultExtractor<CpuLoadBo, SampledCpuLoad> resultExtractor = new SampledAgentStatResultExtractor<>(timeWindow, mapper, cpuLoadSampler);
    return operations.getSampledAgentStatList(resultExtractor, agentId, range);
}
Also used : SampledCpuLoad(com.navercorp.pinpoint.web.vo.stat.SampledCpuLoad) CpuLoadBo(com.navercorp.pinpoint.common.server.bo.stat.CpuLoadBo) SampledAgentStatResultExtractor(com.navercorp.pinpoint.web.mapper.stat.SampledAgentStatResultExtractor) Range(com.navercorp.pinpoint.web.vo.Range)

Aggregations

SampledAgentStatResultExtractor (com.navercorp.pinpoint.web.mapper.stat.SampledAgentStatResultExtractor)9 Range (com.navercorp.pinpoint.web.vo.Range)9 ActiveTraceBo (com.navercorp.pinpoint.common.server.bo.stat.ActiveTraceBo)2 CpuLoadBo (com.navercorp.pinpoint.common.server.bo.stat.CpuLoadBo)2 JvmGcBo (com.navercorp.pinpoint.common.server.bo.stat.JvmGcBo)2 TransactionBo (com.navercorp.pinpoint.common.server.bo.stat.TransactionBo)2 SampledActiveTrace (com.navercorp.pinpoint.web.vo.stat.SampledActiveTrace)2 SampledCpuLoad (com.navercorp.pinpoint.web.vo.stat.SampledCpuLoad)2 SampledJvmGc (com.navercorp.pinpoint.web.vo.stat.SampledJvmGc)2 SampledTransaction (com.navercorp.pinpoint.web.vo.stat.SampledTransaction)2 JvmGcDetailedBo (com.navercorp.pinpoint.common.server.bo.stat.JvmGcDetailedBo)1 SampledJvmGcDetailed (com.navercorp.pinpoint.web.vo.stat.SampledJvmGcDetailed)1