ArafatKhan2198 commented on code in PR #5037:
URL: https://github.com/apache/ozone/pull/5037#discussion_r1469134319
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/tasks/OmTableInsightTask.java:
##########
@@ -65,14 +65,29 @@ public class OmTableInsightTask implements ReconOmTask {
private GlobalStatsDao globalStatsDao;
private Configuration sqlConfiguration;
private ReconOMMetadataManager reconOMMetadataManager;
+ private ReconNamespaceSummaryManagerImpl reconNamespaceSummaryManager;
+ private Table<Long, NSSummary> nsSummaryTable;
+ private Map<String, OmTableHandler> tableHandlers;
@Inject
public OmTableInsightTask(GlobalStatsDao globalStatsDao,
- Configuration sqlConfiguration,
- ReconOMMetadataManager reconOMMetadataManager) {
+ Configuration sqlConfiguration,
+ ReconOMMetadataManager reconOMMetadataManager,
+ ReconNamespaceSummaryManagerImpl
+ reconNamespaceSummaryManager) {
this.globalStatsDao = globalStatsDao;
this.sqlConfiguration = sqlConfiguration;
this.reconOMMetadataManager = reconOMMetadataManager;
+ this.reconNamespaceSummaryManager = reconNamespaceSummaryManager;
+ this.nsSummaryTable = reconNamespaceSummaryManager.getNSSummaryTable();
+
+ // Initialize table handlers
+ tableHandlers = new HashMap<>();
+ tableHandlers.put(OPEN_KEY_TABLE, new OpenKeysInsightHandler());
Review Comment:
Changes made!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]