-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#8755] Remove duplicate HbaseAgentUriStatDaoOperations
- Loading branch information
Showing
8 changed files
with
52 additions
and
154 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
31 changes: 31 additions & 0 deletions
31
...ain/java/com/navercorp/pinpoint/web/dao/hbase/config/AgentStatOperationConfiguration.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,31 @@ | ||
package com.navercorp.pinpoint.web.dao.hbase.config; | ||
|
||
import com.navercorp.pinpoint.common.hbase.HbaseColumnFamily; | ||
import com.navercorp.pinpoint.common.hbase.HbaseOperations2; | ||
import com.navercorp.pinpoint.common.hbase.TableNameProvider; | ||
import com.navercorp.pinpoint.common.server.bo.serializer.stat.AgentStatHbaseOperationFactory; | ||
import com.navercorp.pinpoint.web.dao.hbase.stat.HbaseAgentStatDaoOperations; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.context.annotation.Primary; | ||
|
||
@Configuration | ||
public class AgentStatOperationConfiguration { | ||
|
||
@Primary | ||
@Bean("agentStatDaoOperations") | ||
public HbaseAgentStatDaoOperations getHbaseAgentStatDaoOperations(HbaseOperations2 hbaseOperations2, | ||
TableNameProvider tableNameProvider, | ||
AgentStatHbaseOperationFactory operationFactory) { | ||
HbaseColumnFamily.AgentStatStatistics stat = HbaseColumnFamily.AGENT_STAT_STATISTICS; | ||
return new HbaseAgentStatDaoOperations(stat, stat.TIMESPAN_MS, hbaseOperations2, tableNameProvider, operationFactory); | ||
} | ||
|
||
@Bean("agentUriDaoOperations") | ||
public HbaseAgentStatDaoOperations getHbaseAgentUriDaoOperations(HbaseOperations2 hbaseOperations2, | ||
TableNameProvider tableNameProvider, | ||
AgentStatHbaseOperationFactory operationFactory) { | ||
HbaseColumnFamily.AgentUriStatStatistics uri = HbaseColumnFamily.AGENT_URI_STAT_STATISTICS; | ||
return new HbaseAgentStatDaoOperations(uri, uri.TIMESPAN_MS, hbaseOperations2, tableNameProvider, operationFactory); | ||
} | ||
} |
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
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
132 changes: 0 additions & 132 deletions
132
...c/main/java/com/navercorp/pinpoint/web/dao/hbase/stat/HbaseAgentUriStatDaoOperations.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
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
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