Search in sources :

Example 1 with SampledDataSourceResultExtractor

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

the class HbaseSampledDataSourceDaoV2 method getSampledAgentStatList.

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

Aggregations

DataSourceListBo (com.navercorp.pinpoint.common.server.bo.stat.DataSourceListBo)1 SampledDataSourceResultExtractor (com.navercorp.pinpoint.web.mapper.stat.SampledDataSourceResultExtractor)1 Range (com.navercorp.pinpoint.web.vo.Range)1