Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
code review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
yu-sun-77 committed Jan 7, 2021
1 parent 2d56891 commit f20228d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
package com.amazon.opendistro.elasticsearch.performanceanalyzer.config;

import com.google.common.annotations.VisibleForTesting;
import com.amazon.opendistro.elasticsearch.performanceanalyzer.ESResources;
import com.amazon.opendistro.elasticsearch.performanceanalyzer.PerformanceAnalyzerPlugin;
import com.amazon.opendistro.elasticsearch.performanceanalyzer.collectors.ScheduledMetricCollectorsExecutor;
import com.amazon.opendistro.elasticsearch.performanceanalyzer.config.overrides.ConfigOverridesWrapper;
import com.amazon.opendistro.elasticsearch.performanceanalyzer.metrics.PerformanceAnalyzerMetrics;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.NoSuchFileException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List;
import java.util.Scanner;

import com.amazon.opendistro.elasticsearch.performanceanalyzer.config.overrides.ConfigOverridesWrapper;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import com.amazon.opendistro.elasticsearch.performanceanalyzer.ESResources;
import com.amazon.opendistro.elasticsearch.performanceanalyzer.metrics.PerformanceAnalyzerMetrics;
import com.amazon.opendistro.elasticsearch.performanceanalyzer.PerformanceAnalyzerPlugin;
import com.amazon.opendistro.elasticsearch.performanceanalyzer.collectors.ScheduledMetricCollectorsExecutor;

public class PerformanceAnalyzerController {
private static final String PERFORMANCE_ANALYZER_ENABLED_CONF = "performance_analyzer_enabled.conf";
private static final String RCA_ENABLED_CONF = "rca_enabled.conf";
Expand All @@ -31,7 +28,7 @@ public class PerformanceAnalyzerController {
private boolean rcaEnabled;
private boolean loggingEnabled;
private boolean batchMetricsEnabled;
@VisibleForTesting volatile int shardsPerCollection;
private volatile int shardsPerCollection;
private static final boolean paEnabledDefaultValue = false;
private static final boolean rcaEnabledDefaultValue = true;
private static final boolean loggingEnabledDefaultValue = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public PerformanceAnalyzerSearchListener(final PerformanceAnalyzerController con

@Override
public String toString() {
return PerformanceAnalyzerSearchListener.class.getName();
return PerformanceAnalyzerSearchListener.class.getSimpleName();
}


Expand Down

0 comments on commit f20228d

Please sign in to comment.