Search in sources :

Example 1 with SampledUriStatResultExtractor

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

the class HbaseSampledAgentUriStatDaoV2 method getSampledAgentStatList.

@Override
public List<SampledAgentUriStat> getSampledAgentStatList(String agentId, TimeWindow timeWindow) {
    long scanFrom = timeWindow.getWindowRange().getFrom();
    long scanTo = timeWindow.getWindowRange().getTo() + timeWindow.getWindowSlotSize();
    Range range = Range.newRange(scanFrom, scanTo);
    AgentStatMapperV2<AgentUriStatBo> mapper = operations.createRowMapper(agentUriStatDecoder, range);
    SampledUriStatResultExtractor resultExtractor = new SampledUriStatResultExtractor(timeWindow, mapper, agentUriStatSampler);
    List<SampledAgentUriStat> sampledAgentUriStatList = operations.getSampledAgentStatList(AgentStatType.URI, resultExtractor, agentId, range);
    return sampledAgentUriStatList;
}
Also used : AgentUriStatBo(com.navercorp.pinpoint.common.server.bo.stat.AgentUriStatBo) SampledUriStatResultExtractor(com.navercorp.pinpoint.web.mapper.stat.SampledUriStatResultExtractor) Range(com.navercorp.pinpoint.web.vo.Range) SampledAgentUriStat(com.navercorp.pinpoint.web.vo.stat.SampledAgentUriStat)

Aggregations

AgentUriStatBo (com.navercorp.pinpoint.common.server.bo.stat.AgentUriStatBo)1 SampledUriStatResultExtractor (com.navercorp.pinpoint.web.mapper.stat.SampledUriStatResultExtractor)1 Range (com.navercorp.pinpoint.web.vo.Range)1 SampledAgentUriStat (com.navercorp.pinpoint.web.vo.stat.SampledAgentUriStat)1