Search in sources :

Example 1 with FilteredMapBuilder

use of com.navercorp.pinpoint.web.service.map.FilteredMapBuilder in project pinpoint by naver.

the class FilteredMapServiceImpl method selectApplicationMap.

public ApplicationMap selectApplicationMap(FilteredMapServiceOption option) {
    final List<List<SpanBo>> filterList = selectFilteredSpan(option.getTransactionIdList(), option.getFilter(), option.getColumnGetCount());
    FilteredMapBuilder filteredMapBuilder = new FilteredMapBuilder(applicationFactory, registry, option.getOriginalRange(), option.getVersion());
    filteredMapBuilder.serverMapDataFilter(serverMapDataFilter);
    filteredMapBuilder.addTransactions(filterList);
    FilteredMap filteredMap = filteredMapBuilder.build();
    ApplicationMap map = createMap(option, filteredMap);
    return map;
}
Also used : ApplicationMap(com.navercorp.pinpoint.web.applicationmap.ApplicationMap) FilteredMapBuilder(com.navercorp.pinpoint.web.service.map.FilteredMapBuilder) ArrayList(java.util.ArrayList) List(java.util.List) FilteredMap(com.navercorp.pinpoint.web.service.map.FilteredMap)

Example 2 with FilteredMapBuilder

use of com.navercorp.pinpoint.web.service.map.FilteredMapBuilder in project pinpoint by naver.

the class FilteredMapServiceImpl method selectApplicationMapWithScatterData.

public ApplicationMap selectApplicationMapWithScatterData(FilteredMapServiceOption option) {
    StopWatch watch = new StopWatch();
    watch.start();
    final List<List<SpanBo>> filterList = selectFilteredSpan(option.getTransactionIdList(), option.getFilter(), option.getColumnGetCount());
    FilteredMapBuilder filteredMapBuilder = new FilteredMapBuilder(applicationFactory, registry, option.getOriginalRange(), option.getVersion());
    filteredMapBuilder.serverMapDataFilter(serverMapDataFilter);
    filteredMapBuilder.addTransactions(filterList);
    FilteredMap filteredMap = filteredMapBuilder.build();
    ApplicationMap map = createMap(option, filteredMap);
    Map<Application, ScatterData> applicationScatterData = filteredMap.getApplicationScatterData(option.getOriginalRange().getFrom(), option.getOriginalRange().getTo(), option.getxGroupUnit(), option.getyGroupUnit());
    ApplicationMapWithScatterData applicationMapWithScatterData = new ApplicationMapWithScatterData(map, applicationScatterData);
    watch.stop();
    logger.debug("Select filtered application map elapsed. {}ms", watch.getTotalTimeMillis());
    return applicationMapWithScatterData;
}
Also used : ApplicationMapWithScatterData(com.navercorp.pinpoint.web.applicationmap.ApplicationMapWithScatterData) ApplicationMap(com.navercorp.pinpoint.web.applicationmap.ApplicationMap) FilteredMapBuilder(com.navercorp.pinpoint.web.service.map.FilteredMapBuilder) ArrayList(java.util.ArrayList) List(java.util.List) Application(com.navercorp.pinpoint.web.vo.Application) FilteredMap(com.navercorp.pinpoint.web.service.map.FilteredMap) ScatterData(com.navercorp.pinpoint.web.scatter.ScatterData) ApplicationMapWithScatterData(com.navercorp.pinpoint.web.applicationmap.ApplicationMapWithScatterData) StopWatch(org.springframework.util.StopWatch)

Aggregations

ApplicationMap (com.navercorp.pinpoint.web.applicationmap.ApplicationMap)2 FilteredMap (com.navercorp.pinpoint.web.service.map.FilteredMap)2 FilteredMapBuilder (com.navercorp.pinpoint.web.service.map.FilteredMapBuilder)2 ArrayList (java.util.ArrayList)2 List (java.util.List)2 ApplicationMapWithScatterData (com.navercorp.pinpoint.web.applicationmap.ApplicationMapWithScatterData)1 ScatterData (com.navercorp.pinpoint.web.scatter.ScatterData)1 Application (com.navercorp.pinpoint.web.vo.Application)1 StopWatch (org.springframework.util.StopWatch)1