forked from pinpoint-apm/pinpoint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
159 additions
and
336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
...rc/main/java/com/navercorp/pinpoint/web/applicationmap/config/MapMapperConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package com.navercorp.pinpoint.web.applicationmap.config; | ||
|
||
|
||
import com.navercorp.pinpoint.common.hbase.RowMapper; | ||
import com.navercorp.pinpoint.loader.service.ServiceTypeRegistryService; | ||
import com.navercorp.pinpoint.web.applicationmap.dao.mapper.LinkFilter; | ||
import com.navercorp.pinpoint.web.applicationmap.dao.mapper.MapStatisticsCalleeMapper; | ||
import com.navercorp.pinpoint.web.applicationmap.dao.mapper.MapStatisticsCallerMapper; | ||
import com.navercorp.pinpoint.web.applicationmap.dao.mapper.ResponseTimeMapper; | ||
import com.navercorp.pinpoint.web.applicationmap.rawdata.LinkDataMap; | ||
import com.navercorp.pinpoint.web.component.ApplicationFactory; | ||
import com.navercorp.pinpoint.web.util.TimeWindowFunction; | ||
import com.navercorp.pinpoint.web.vo.ResponseTime; | ||
import com.sematext.hbase.wd.RowKeyDistributorByHashPrefix; | ||
import org.springframework.beans.factory.annotation.Qualifier; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration | ||
public class MapMapperConfiguration { | ||
|
||
@Bean | ||
public RowMapper<LinkDataMap> mapStatisticsCallerMapper(ApplicationFactory applicationFactory, | ||
@Qualifier("statisticsCallerRowKeyDistributor") | ||
RowKeyDistributorByHashPrefix rowKeyDistributor) { | ||
return new MapStatisticsCallerMapper(applicationFactory, rowKeyDistributor, LinkFilter::skip, TimeWindowFunction.identity()); | ||
} | ||
|
||
@Bean | ||
public RowMapper<LinkDataMap> mapStatisticsCallerTimeAggregatedMapper(ApplicationFactory applicationFactory, | ||
@Qualifier("statisticsCallerRowKeyDistributor") | ||
RowKeyDistributorByHashPrefix rowKeyDistributor) { | ||
return new MapStatisticsCallerMapper(applicationFactory, rowKeyDistributor, LinkFilter::skip, TimeWindowFunction.ALL_IN_ONE); | ||
} | ||
|
||
@Bean | ||
public RowMapper<LinkDataMap> mapStatisticsCalleeMapper(ServiceTypeRegistryService registry, | ||
ApplicationFactory applicationFactory, | ||
@Qualifier("statisticsCalleeRowKeyDistributor") | ||
RowKeyDistributorByHashPrefix rowKeyDistributor) { | ||
return new MapStatisticsCalleeMapper(registry, applicationFactory, rowKeyDistributor, LinkFilter::skip, TimeWindowFunction.identity()); | ||
} | ||
|
||
@Bean | ||
public RowMapper<LinkDataMap> mapStatisticsCalleeTimeAggregatedMapper(ServiceTypeRegistryService registry, | ||
ApplicationFactory applicationFactory, | ||
@Qualifier("statisticsCalleeRowKeyDistributor") | ||
RowKeyDistributorByHashPrefix rowKeyDistributor) { | ||
return new MapStatisticsCalleeMapper(registry, applicationFactory, rowKeyDistributor, LinkFilter::skip, TimeWindowFunction.ALL_IN_ONE); | ||
} | ||
|
||
@Bean | ||
public RowMapper<ResponseTime> responseTimeMapper(ServiceTypeRegistryService registry, | ||
@Qualifier("statisticsSelfRowKeyDistributor") | ||
RowKeyDistributorByHashPrefix rowKeyDistributor) { | ||
return new ResponseTimeMapper(registry, rowKeyDistributor); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
139 changes: 0 additions & 139 deletions
139
...rcorp/pinpoint/web/applicationmap/dao/mapper/MapStatisticsCalleeTimeAggregatedMapper.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.