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);
}
Aggregations