Search in sources :

Example 1 with SampledTotalThreadCount

use of com.navercorp.pinpoint.web.vo.stat.SampledTotalThreadCount in project pinpoint by naver.

the class HBaseSampledTotalThreadCountDaoV2 method getSampledAgentStatList.

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

Aggregations

TotalThreadCountBo (com.navercorp.pinpoint.common.server.bo.stat.TotalThreadCountBo)1 SampledAgentStatResultExtractor (com.navercorp.pinpoint.web.mapper.stat.SampledAgentStatResultExtractor)1 Range (com.navercorp.pinpoint.web.vo.Range)1 SampledTotalThreadCount (com.navercorp.pinpoint.web.vo.stat.SampledTotalThreadCount)1