use of com.navercorp.pinpoint.web.applicationmap.appender.histogram.datasource.WasNodeHistogramDataSource in project pinpoint by naver.
the class FilteredMapServiceImpl method createMap.
private ApplicationMap createMap(FilteredMapServiceOption option, FilteredMap filteredMap) {
final ApplicationMapBuilder applicationMapBuilder = applicationMapBuilderFactory.createApplicationMapBuilder(option.getOriginalRange());
applicationMapBuilder.linkType(LinkType.DETAILED);
final WasNodeHistogramDataSource wasNodeHistogramDataSource = new ResponseHistogramsNodeHistogramDataSource(filteredMap.getResponseHistograms());
applicationMapBuilder.includeNodeHistogram(new DefaultNodeHistogramFactory(wasNodeHistogramDataSource));
ServerInstanceListDataSource serverInstanceListDataSource = new AgentInfoServerInstanceListDataSource(agentInfoService);
if (option.isUseStatisticsAgentState()) {
applicationMapBuilder.includeServerInfo(new StatisticsServerInstanceListFactory(serverInstanceListDataSource));
} else {
applicationMapBuilder.includeServerInfo(new DefaultServerInstanceListFactory(serverInstanceListDataSource));
}
ApplicationMap map = applicationMapBuilder.build(filteredMap.getLinkDataDuplexMap(), buildTimeoutMillis);
if (serverMapDataFilter != null) {
map = serverMapDataFilter.dataFiltering(map);
}
return map;
}
use of com.navercorp.pinpoint.web.applicationmap.appender.histogram.datasource.WasNodeHistogramDataSource in project pinpoint by naver.
the class MapServiceImpl method createApplicationMapBuilder.
private ApplicationMapBuilder createApplicationMapBuilder(MapServiceOption option) {
ApplicationMapBuilder builder = applicationMapBuilderFactory.createApplicationMapBuilder(option.getRange());
builder.nodeType(option.getNodeType());
builder.linkType(option.getLinkType());
WasNodeHistogramDataSource wasNodeHistogramDataSource = new MapResponseNodeHistogramDataSource(mapResponseDao);
NodeHistogramFactory nodeHistogramFactory = new DefaultNodeHistogramFactory(wasNodeHistogramDataSource);
builder.includeNodeHistogram(nodeHistogramFactory);
ServerInstanceListDataSource serverInstanceListDataSource = new AgentInfoServerInstanceListDataSource(agentInfoService);
if (option.isUseStatisticsAgentState()) {
builder.includeServerInfo(new StatisticsServerInstanceListFactory(serverInstanceListDataSource));
} else {
builder.includeServerInfo(new DefaultServerInstanceListFactory(serverInstanceListDataSource));
}
return builder;
}
Aggregations