Search in sources :

Example 1 with SampledAgentStatResultExtractor

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

the class HbaseSampledActiveTraceDao method getSampledAgentStatList.

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

Example 2 with SampledAgentStatResultExtractor

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

the class HbaseSampledJvmGcDao 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);
    SampledAgentStatResultExtractor<JvmGcBo, SampledJvmGc> resultExtractor = new SampledAgentStatResultExtractor<>(timeWindow, mapper, sampler);
    return operations.getSampledAgentStatList(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 3 with SampledAgentStatResultExtractor

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

the class HbaseSampledTransactionDao 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);
    SampledAgentStatResultExtractor<TransactionBo, SampledTransaction> resultExtractor = new SampledAgentStatResultExtractor<>(timeWindow, mapper, transactionSampler);
    return operations.getSampledAgentStatList(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 4 with SampledAgentStatResultExtractor

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

the class HbaseSampledActiveTraceDaoV2 method getSampledAgentStatList.

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

Example 5 with SampledAgentStatResultExtractor

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

the class HbaseSampledCpuLoadDaoV2 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);
    AgentStatMapperV2<CpuLoadBo> mapper = operations.createRowMapper(cpuLoadDecoder, range);
    SampledAgentStatResultExtractor<CpuLoadBo, SampledCpuLoad> resultExtractor = new SampledAgentStatResultExtractor<>(timeWindow, mapper, cpuLoadSampler);
    return operations.getSampledAgentStatList(AgentStatType.CPU_LOAD, 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