diff --git a/build.gradle b/build.gradle index 5c63a9c61..bfc652dcf 100644 --- a/build.gradle +++ b/build.gradle @@ -54,7 +54,7 @@ plugins { id "de.undercouch.download" version "5.5.0" id 'com.adarshr.test-logger' version '4.0.0' id 'org.gradle.test-retry' version '1.5.8' - id 'com.diffplug.spotless' version '5.11.0' + id 'com.diffplug.spotless' version '6.25.0' } application { @@ -87,7 +87,7 @@ distributions { spotless { java { licenseHeaderFile(file('license-header')) - googleJavaFormat('1.12.0').aosp() + googleJavaFormat('1.17.0').aosp() importOrder() removeUnusedImports() trimTrailingWhitespace() diff --git a/src/main/java/org/opensearch/performanceanalyzer/AppContext.java b/src/main/java/org/opensearch/performanceanalyzer/AppContext.java index 84afdaf58..de80cca2f 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/AppContext.java +++ b/src/main/java/org/opensearch/performanceanalyzer/AppContext.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer; - import com.google.common.annotations.VisibleForTesting; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSet; diff --git a/src/main/java/org/opensearch/performanceanalyzer/CertificateUtils.java b/src/main/java/org/opensearch/performanceanalyzer/CertificateUtils.java index 7dd920fd0..79f3d17bf 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/CertificateUtils.java +++ b/src/main/java/org/opensearch/performanceanalyzer/CertificateUtils.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer; - import java.io.File; import java.io.FileReader; import java.security.KeyStore; diff --git a/src/main/java/org/opensearch/performanceanalyzer/ClientServers.java b/src/main/java/org/opensearch/performanceanalyzer/ClientServers.java index fdb756838..d005a935f 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/ClientServers.java +++ b/src/main/java/org/opensearch/performanceanalyzer/ClientServers.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer; - import com.sun.net.httpserver.HttpServer; import org.opensearch.performanceanalyzer.net.NetClient; import org.opensearch.performanceanalyzer.net.NetServer; diff --git a/src/main/java/org/opensearch/performanceanalyzer/DBUtils.java b/src/main/java/org/opensearch/performanceanalyzer/DBUtils.java index a320e2335..b30d16aa9 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/DBUtils.java +++ b/src/main/java/org/opensearch/performanceanalyzer/DBUtils.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer; - import java.util.Collection; import java.util.HashSet; import java.util.List; diff --git a/src/main/java/org/opensearch/performanceanalyzer/LocalhostConnectionUtil.java b/src/main/java/org/opensearch/performanceanalyzer/LocalhostConnectionUtil.java index c40fcbea8..f9438fb62 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/LocalhostConnectionUtil.java +++ b/src/main/java/org/opensearch/performanceanalyzer/LocalhostConnectionUtil.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer; - import io.netty.handler.codec.http.HttpMethod; import java.io.DataOutputStream; import java.net.HttpURLConnection; diff --git a/src/main/java/org/opensearch/performanceanalyzer/PerformanceAnalyzerApp.java b/src/main/java/org/opensearch/performanceanalyzer/PerformanceAnalyzerApp.java index 455bbbed4..196f810fa 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/PerformanceAnalyzerApp.java +++ b/src/main/java/org/opensearch/performanceanalyzer/PerformanceAnalyzerApp.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer; - import com.google.common.annotations.VisibleForTesting; import com.google.common.util.concurrent.ThreadFactoryBuilder; import com.sun.net.httpserver.HttpServer; diff --git a/src/main/java/org/opensearch/performanceanalyzer/PerformanceAnalyzerThreads.java b/src/main/java/org/opensearch/performanceanalyzer/PerformanceAnalyzerThreads.java index f536a9902..c838cf0d9 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/PerformanceAnalyzerThreads.java +++ b/src/main/java/org/opensearch/performanceanalyzer/PerformanceAnalyzerThreads.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer; - import org.opensearch.performanceanalyzer.commons.stats.metrics.StatExceptionCode; /** diff --git a/src/main/java/org/opensearch/performanceanalyzer/PerformanceAnalyzerWebServer.java b/src/main/java/org/opensearch/performanceanalyzer/PerformanceAnalyzerWebServer.java index bd1e25114..ccf63ec47 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/PerformanceAnalyzerWebServer.java +++ b/src/main/java/org/opensearch/performanceanalyzer/PerformanceAnalyzerWebServer.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer; - import com.google.common.annotations.VisibleForTesting; import com.sun.net.httpserver.HttpServer; import com.sun.net.httpserver.HttpsConfigurator; @@ -32,6 +31,7 @@ public class PerformanceAnalyzerWebServer { @VisibleForTesting public static final String WEBSERVICE_BIND_HOST_NAME = "webservice-bind-host"; + // Use system default for max backlog. private static final int INCOMING_QUEUE_LENGTH = 1; diff --git a/src/main/java/org/opensearch/performanceanalyzer/collections/TimeExpiringSet.java b/src/main/java/org/opensearch/performanceanalyzer/collections/TimeExpiringSet.java index 178b49fe0..ac47596f8 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/collections/TimeExpiringSet.java +++ b/src/main/java/org/opensearch/performanceanalyzer/collections/TimeExpiringSet.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.collections; - import com.google.common.cache.Cache; import com.google.common.cache.CacheBuilder; import java.util.Iterator; diff --git a/src/main/java/org/opensearch/performanceanalyzer/config/overrides/ConfigOverridesApplier.java b/src/main/java/org/opensearch/performanceanalyzer/config/overrides/ConfigOverridesApplier.java index 741c679fc..bf9f54391 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/config/overrides/ConfigOverridesApplier.java +++ b/src/main/java/org/opensearch/performanceanalyzer/config/overrides/ConfigOverridesApplier.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.config.overrides; - import com.google.common.annotations.VisibleForTesting; import java.io.IOException; import java.util.HashSet; diff --git a/src/main/java/org/opensearch/performanceanalyzer/core/Util.java b/src/main/java/org/opensearch/performanceanalyzer/core/Util.java index b4303cac1..1f9a6641d 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/core/Util.java +++ b/src/main/java/org/opensearch/performanceanalyzer/core/Util.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.core; - import java.io.File; import java.security.AccessController; import java.security.PrivilegedAction; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/Action.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/Action.java index a367b11e9..3eb2dddce 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/Action.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/Action.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.actions; - import java.util.List; import java.util.Map; import org.opensearch.performanceanalyzer.rca.store.rca.cluster.NodeKey; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/HeapSizeIncreaseAction.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/HeapSizeIncreaseAction.java index dab3c2f5e..ca0d7b636 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/HeapSizeIncreaseAction.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/HeapSizeIncreaseAction.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.actions; - import com.google.gson.JsonObject; import com.google.gson.JsonParser; import java.util.HashMap; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/ImpactVector.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/ImpactVector.java index 2bf914b3b..9560f22c8 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/ImpactVector.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/ImpactVector.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.actions; - import java.util.Collections; import java.util.HashMap; import java.util.Map; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/JvmGenAction.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/JvmGenAction.java index c34fc8049..33381a792 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/JvmGenAction.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/JvmGenAction.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.actions; - import com.google.gson.JsonObject; import com.google.gson.JsonParser; import java.util.HashMap; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/ModifyCacheMaxSizeAction.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/ModifyCacheMaxSizeAction.java index 516416f5c..117ce2d08 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/ModifyCacheMaxSizeAction.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/ModifyCacheMaxSizeAction.java @@ -305,6 +305,7 @@ public static class Summary { @SerializedName(value = CURRENT_MAX_SIZE) private long currentCacheMaxSizeInBytes; + // TODO: remove coolOffPeriodInMillis and canUpdate from summary // as those already exist in baseline action object @SerializedName(value = COOL_OFF_PERIOD) diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/ModifyQueueCapacityAction.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/ModifyQueueCapacityAction.java index f6568df13..cf00bb2e1 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/ModifyQueueCapacityAction.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/ModifyQueueCapacityAction.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.actions; - import com.google.common.annotations.VisibleForTesting; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -274,6 +273,7 @@ public static class Summary { @SerializedName(value = CURRENT_CAPACITY) private int currentCapacity; + // TODO: remove coolOffPeriodInMillis and canUpdate from summary // as those already exist in baseline action object @SerializedName(value = COOL_OFF_PERIOD) diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/SuppressibleAction.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/SuppressibleAction.java index cdfdc8d28..0e4bbfc04 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/SuppressibleAction.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/SuppressibleAction.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.actions; - import org.opensearch.performanceanalyzer.AppContext; /** Actions that can be suppressed through a config. */ diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/TimedFlipFlopDetector.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/TimedFlipFlopDetector.java index 84187a5f0..0a10878eb 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/TimedFlipFlopDetector.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/TimedFlipFlopDetector.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.actions; - import java.util.HashMap; import java.util.Map; import java.util.concurrent.TimeUnit; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/configs/CacheActionConfig.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/configs/CacheActionConfig.java index bdbfdbd46..489ed55ec 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/configs/CacheActionConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/configs/CacheActionConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.actions.configs; - import java.util.Collections; import java.util.HashMap; import java.util.Map; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/configs/QueueActionConfig.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/configs/QueueActionConfig.java index f5da63f0a..f78c7c256 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/configs/QueueActionConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/actions/configs/QueueActionConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.actions.configs; - import java.util.Collections; import java.util.HashMap; import java.util.Map; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/CacheHealthDecider.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/CacheHealthDecider.java index 8b245f270..b3099e16f 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/CacheHealthDecider.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/CacheHealthDecider.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders; - import com.google.common.collect.ImmutableMap; import java.util.ArrayList; import java.util.HashSet; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/Decider.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/Decider.java index f61dabd8e..b91379175 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/Decider.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/Decider.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders; - import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.opensearch.performanceanalyzer.commons.stats.ServiceMetrics; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/Decision.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/Decision.java index 911a5c3a8..7e5998aba 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/Decision.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/Decision.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders; - import java.util.ArrayList; import java.util.List; import org.opensearch.performanceanalyzer.decisionmaker.actions.Action; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/DecisionPolicy.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/DecisionPolicy.java index e3dd29888..7dc21b1bf 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/DecisionPolicy.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/DecisionPolicy.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders; - import java.util.List; import org.opensearch.performanceanalyzer.decisionmaker.actions.Action; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/EmptyFlowUnit.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/EmptyFlowUnit.java index 3c3472259..4a135b06f 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/EmptyFlowUnit.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/EmptyFlowUnit.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders; - import org.opensearch.performanceanalyzer.grpc.FlowUnitMessage; import org.opensearch.performanceanalyzer.rca.framework.core.GenericFlowUnit; import org.opensearch.performanceanalyzer.rca.framework.util.InstanceDetails; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/HeapBasedDecider.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/HeapBasedDecider.java index 254a34d44..8b18d7845 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/HeapBasedDecider.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/HeapBasedDecider.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders; - import com.google.common.collect.ImmutableMap; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/Publisher.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/Publisher.java index 76644cd93..082ce1b8a 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/Publisher.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/Publisher.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders; - import com.google.common.annotations.VisibleForTesting; import java.time.Instant; import java.util.ArrayList; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/QueueHealthDecider.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/QueueHealthDecider.java index c61bcaf90..db86b65ac 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/QueueHealthDecider.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/QueueHealthDecider.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders; - import java.util.ArrayList; import java.util.List; import org.apache.logging.log4j.LogManager; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/collator/Collator.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/collator/Collator.java index 7bdc49a1a..97f7c76a4 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/collator/Collator.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/collator/Collator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.collator; - import com.google.common.annotations.VisibleForTesting; import java.io.Serializable; import java.util.ArrayList; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/collator/ImpactAssessment.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/collator/ImpactAssessment.java index f74169261..b5b245a00 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/collator/ImpactAssessment.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/collator/ImpactAssessment.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.collator; - import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/collator/ImpactAssessor.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/collator/ImpactAssessor.java index 4e95d0be3..d87f877c1 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/collator/ImpactAssessor.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/collator/ImpactAssessor.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.collator; - import java.util.HashMap; import java.util.List; import java.util.Map; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/CachePriorityOrderConfig.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/CachePriorityOrderConfig.java index e5950b44b..cedb85877 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/CachePriorityOrderConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/CachePriorityOrderConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.configs; - import java.util.Arrays; import java.util.Collections; import java.util.List; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/DeciderConfig.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/DeciderConfig.java index c2b3ed444..f4a240189 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/DeciderConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/DeciderConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.configs; - import org.opensearch.performanceanalyzer.decisionmaker.deciders.configs.jvm.OldGenDecisionPolicyConfig; import org.opensearch.performanceanalyzer.decisionmaker.deciders.configs.jvm.young_gen.JvmGenTuningPolicyConfig; import org.opensearch.performanceanalyzer.rca.framework.core.NestedConfig; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/WorkLoadTypeConfig.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/WorkLoadTypeConfig.java index b9f00f30a..afd4f621c 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/WorkLoadTypeConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/WorkLoadTypeConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.configs; - import org.opensearch.performanceanalyzer.rca.framework.core.Config; import org.opensearch.performanceanalyzer.rca.framework.core.NestedConfig; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/LevelOneActionBuilderConfig.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/LevelOneActionBuilderConfig.java index 3f107cbcb..6973ece71 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/LevelOneActionBuilderConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/LevelOneActionBuilderConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.configs.jvm; - import org.opensearch.performanceanalyzer.rca.framework.core.Config; import org.opensearch.performanceanalyzer.rca.framework.core.NestedConfig; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/LevelThreeActionBuilderConfig.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/LevelThreeActionBuilderConfig.java index e771e99d5..92b68a15d 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/LevelThreeActionBuilderConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/LevelThreeActionBuilderConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.configs.jvm; - import org.opensearch.performanceanalyzer.rca.framework.core.Config; import org.opensearch.performanceanalyzer.rca.framework.core.NestedConfig; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/LevelTwoActionBuilderConfig.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/LevelTwoActionBuilderConfig.java index 8469d13fa..d40a70c3e 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/LevelTwoActionBuilderConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/LevelTwoActionBuilderConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.configs.jvm; - import org.opensearch.performanceanalyzer.rca.framework.core.Config; import org.opensearch.performanceanalyzer.rca.framework.core.NestedConfig; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/OldGenDecisionPolicyConfig.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/OldGenDecisionPolicyConfig.java index fb488d660..22e26b0f5 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/OldGenDecisionPolicyConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/OldGenDecisionPolicyConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.configs.jvm; - import org.opensearch.performanceanalyzer.rca.framework.core.Config; import org.opensearch.performanceanalyzer.rca.framework.core.NestedConfig; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/young_gen/JvmGenTuningPolicyConfig.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/young_gen/JvmGenTuningPolicyConfig.java index 064880884..4acd268b1 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/young_gen/JvmGenTuningPolicyConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/young_gen/JvmGenTuningPolicyConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.configs.jvm.young_gen; - import java.util.concurrent.TimeUnit; import org.opensearch.performanceanalyzer.decisionmaker.deciders.jvm.JvmGenTuningPolicy; import org.opensearch.performanceanalyzer.rca.framework.core.Config; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/HeapHealthDecider.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/HeapHealthDecider.java index a576ca42c..e2837ead4 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/HeapHealthDecider.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/HeapHealthDecider.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.jvm; - import java.util.List; import org.opensearch.performanceanalyzer.AppContext; import org.opensearch.performanceanalyzer.decisionmaker.actions.Action; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/JvmActionsAlarmMonitor.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/JvmActionsAlarmMonitor.java index aa3db3ca5..65e54ad49 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/JvmActionsAlarmMonitor.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/JvmActionsAlarmMonitor.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.jvm; - import com.google.common.annotations.VisibleForTesting; import java.nio.file.Path; import java.nio.file.Paths; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/old_gen/LevelOneActionBuilder.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/old_gen/LevelOneActionBuilder.java index 84ba8de91..fb7c14c47 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/old_gen/LevelOneActionBuilder.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/old_gen/LevelOneActionBuilder.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.jvm.old_gen; - import java.util.ArrayList; import java.util.HashMap; import java.util.List; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/old_gen/LevelThreeActionBuilder.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/old_gen/LevelThreeActionBuilder.java index c152c2c8b..f762d0225 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/old_gen/LevelThreeActionBuilder.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/old_gen/LevelThreeActionBuilder.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.jvm.old_gen; - import java.util.ArrayList; import java.util.List; import org.opensearch.performanceanalyzer.AppContext; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/old_gen/LevelTwoActionBuilder.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/old_gen/LevelTwoActionBuilder.java index 10dc8c6ba..70f2f31c6 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/old_gen/LevelTwoActionBuilder.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/old_gen/LevelTwoActionBuilder.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.jvm.old_gen; - import java.util.ArrayList; import java.util.HashMap; import java.util.List; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/old_gen/OldGenDecisionPolicy.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/old_gen/OldGenDecisionPolicy.java index 6faf4e1e9..0ee398e69 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/old_gen/OldGenDecisionPolicy.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/old_gen/OldGenDecisionPolicy.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.jvm.old_gen; - import java.util.ArrayList; import java.util.List; import org.apache.logging.log4j.LogManager; diff --git a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/sizing/HeapSizeIncreasePolicy.java b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/sizing/HeapSizeIncreasePolicy.java index dae7e5377..25d6e681e 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/sizing/HeapSizeIncreasePolicy.java +++ b/src/main/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/sizing/HeapSizeIncreasePolicy.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.jvm.sizing; - import com.google.common.annotations.VisibleForTesting; import java.nio.file.Paths; import java.util.ArrayList; diff --git a/src/main/java/org/opensearch/performanceanalyzer/metrics/MetricsRestUtil.java b/src/main/java/org/opensearch/performanceanalyzer/metrics/MetricsRestUtil.java index 8a9d3a891..9538f5dc4 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/metrics/MetricsRestUtil.java +++ b/src/main/java/org/opensearch/performanceanalyzer/metrics/MetricsRestUtil.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.metrics; - import java.security.InvalidParameterException; import java.util.ArrayList; import java.util.Arrays; diff --git a/src/main/java/org/opensearch/performanceanalyzer/metrics/handler/MetricsServerHandler.java b/src/main/java/org/opensearch/performanceanalyzer/metrics/handler/MetricsServerHandler.java index 0e045d362..81fe3448f 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/metrics/handler/MetricsServerHandler.java +++ b/src/main/java/org/opensearch/performanceanalyzer/metrics/handler/MetricsServerHandler.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.metrics.handler; - import io.grpc.stub.StreamObserver; import java.util.List; import java.util.Map; diff --git a/src/main/java/org/opensearch/performanceanalyzer/metricsdb/Dimensions.java b/src/main/java/org/opensearch/performanceanalyzer/metricsdb/Dimensions.java index f0416ac3f..3c0af9b0d 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/metricsdb/Dimensions.java +++ b/src/main/java/org/opensearch/performanceanalyzer/metricsdb/Dimensions.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.metricsdb; - import java.util.HashMap; import java.util.Map; import java.util.Set; diff --git a/src/main/java/org/opensearch/performanceanalyzer/metricsdb/MetricsDB.java b/src/main/java/org/opensearch/performanceanalyzer/metricsdb/MetricsDB.java index 0411e0461..33d6c97c1 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/metricsdb/MetricsDB.java +++ b/src/main/java/org/opensearch/performanceanalyzer/metricsdb/MetricsDB.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.metricsdb; - import com.google.common.annotations.VisibleForTesting; import java.io.File; import java.io.FileNotFoundException; diff --git a/src/main/java/org/opensearch/performanceanalyzer/model/MetricAttributes.java b/src/main/java/org/opensearch/performanceanalyzer/model/MetricAttributes.java index 36230b8e5..6b59e0c8d 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/model/MetricAttributes.java +++ b/src/main/java/org/opensearch/performanceanalyzer/model/MetricAttributes.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.model; - import java.util.HashSet; import org.opensearch.performanceanalyzer.commons.metrics.MetricDimension; diff --git a/src/main/java/org/opensearch/performanceanalyzer/model/MetricsModel.java b/src/main/java/org/opensearch/performanceanalyzer/model/MetricsModel.java index 5b144ac12..1c3b3c3e7 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/model/MetricsModel.java +++ b/src/main/java/org/opensearch/performanceanalyzer/model/MetricsModel.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.model; - import java.util.Collections; import java.util.HashMap; import java.util.Map; diff --git a/src/main/java/org/opensearch/performanceanalyzer/net/GRPCConnectionManager.java b/src/main/java/org/opensearch/performanceanalyzer/net/GRPCConnectionManager.java index 3e82e4455..122aec26a 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/net/GRPCConnectionManager.java +++ b/src/main/java/org/opensearch/performanceanalyzer/net/GRPCConnectionManager.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.net; - import com.google.common.annotations.VisibleForTesting; import io.grpc.ManagedChannel; import io.grpc.ManagedChannelBuilder; diff --git a/src/main/java/org/opensearch/performanceanalyzer/net/NetClient.java b/src/main/java/org/opensearch/performanceanalyzer/net/NetClient.java index c43a13984..7b5b49156 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/net/NetClient.java +++ b/src/main/java/org/opensearch/performanceanalyzer/net/NetClient.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.net; - import io.grpc.StatusRuntimeException; import io.grpc.stub.StreamObserver; import java.util.Map; diff --git a/src/main/java/org/opensearch/performanceanalyzer/net/NetServer.java b/src/main/java/org/opensearch/performanceanalyzer/net/NetServer.java index 9638d4beb..efad30a64 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/net/NetServer.java +++ b/src/main/java/org/opensearch/performanceanalyzer/net/NetServer.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.net; - import com.google.common.annotations.VisibleForTesting; import io.grpc.Server; import io.grpc.netty.GrpcSslContexts; diff --git a/src/main/java/org/opensearch/performanceanalyzer/plugins/PluginController.java b/src/main/java/org/opensearch/performanceanalyzer/plugins/PluginController.java index 60a7f471f..8591c671b 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/plugins/PluginController.java +++ b/src/main/java/org/opensearch/performanceanalyzer/plugins/PluginController.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.plugins; - import com.google.common.annotations.VisibleForTesting; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; diff --git a/src/main/java/org/opensearch/performanceanalyzer/plugins/PluginControllerConfig.java b/src/main/java/org/opensearch/performanceanalyzer/plugins/PluginControllerConfig.java index 5ab09c616..ad10f54f1 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/plugins/PluginControllerConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/plugins/PluginControllerConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.plugins; - import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/org/opensearch/performanceanalyzer/plugins/PublisherEventsLogger.java b/src/main/java/org/opensearch/performanceanalyzer/plugins/PublisherEventsLogger.java index 581bbd137..216c368e5 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/plugins/PublisherEventsLogger.java +++ b/src/main/java/org/opensearch/performanceanalyzer/plugins/PublisherEventsLogger.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.plugins; - import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.opensearch.performanceanalyzer.decisionmaker.actions.Action; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/RcaController.java b/src/main/java/org/opensearch/performanceanalyzer/rca/RcaController.java index 9e32cddbb..144fc37cc 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/RcaController.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/RcaController.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca; - import com.google.common.annotations.VisibleForTesting; import com.sun.net.httpserver.HttpServer; import java.io.IOException; @@ -164,8 +163,11 @@ public RcaController() { } protected List getRcaGraphComponents(RcaConf rcaConf) - throws ClassNotFoundException, NoSuchMethodException, InstantiationException, - IllegalAccessException, InvocationTargetException { + throws ClassNotFoundException, + NoSuchMethodException, + InstantiationException, + IllegalAccessException, + InvocationTargetException { return RcaUtil.getAnalysisGraphComponents(rcaConf); } diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/RcaControllerHelper.java b/src/main/java/org/opensearch/performanceanalyzer/rca/RcaControllerHelper.java index 1b522da8f..226e7ee83 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/RcaControllerHelper.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/RcaControllerHelper.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca; - import com.google.common.collect.ImmutableList; import com.google.common.util.concurrent.ThreadFactoryBuilder; import java.io.BufferedReader; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/Version.java b/src/main/java/org/opensearch/performanceanalyzer/rca/Version.java index 402013cf7..07342bf9e 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/Version.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/Version.java @@ -40,7 +40,9 @@ static final class Minor { static final String RCA_MINOR_VERSION = ".0.1"; } - /** @return The version string. */ + /** + * @return The version string. + */ public static String getRcaVersion() { return Major.RCA_MAJ_VERSION + Minor.RCA_MINOR_VERSION; } diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/configs/AdmissionControlRcaConfig.java b/src/main/java/org/opensearch/performanceanalyzer/rca/configs/AdmissionControlRcaConfig.java index aec22e604..9a7043735 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/configs/AdmissionControlRcaConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/configs/AdmissionControlRcaConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.configs; - import java.util.Collections; import java.util.List; import java.util.Map; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/configs/FieldDataCacheRcaConfig.java b/src/main/java/org/opensearch/performanceanalyzer/rca/configs/FieldDataCacheRcaConfig.java index 4d3bf1e2a..b97d03f73 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/configs/FieldDataCacheRcaConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/configs/FieldDataCacheRcaConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.configs; - import org.opensearch.performanceanalyzer.rca.framework.core.RcaConf; /** config object to store rca config settings for FieldDataCacheRca */ diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HeapSizeIncreasePolicyConfig.java b/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HeapSizeIncreasePolicyConfig.java index 168c7d393..107d693b5 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HeapSizeIncreasePolicyConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HeapSizeIncreasePolicyConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.configs; - import org.opensearch.performanceanalyzer.rca.framework.core.RcaConf; public class HeapSizeIncreasePolicyConfig { diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HighHeapUsageOldGenRcaConfig.java b/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HighHeapUsageOldGenRcaConfig.java index f42ca5cb0..62c122658 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HighHeapUsageOldGenRcaConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HighHeapUsageOldGenRcaConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.configs; - import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.opensearch.performanceanalyzer.rca.framework.core.RcaConf; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HighHeapUsageYoungGenRcaConfig.java b/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HighHeapUsageYoungGenRcaConfig.java index 8ce443106..b17c4b4b8 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HighHeapUsageYoungGenRcaConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HighHeapUsageYoungGenRcaConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.configs; - import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.opensearch.performanceanalyzer.rca.framework.core.RcaConf; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HighOldGenOccupancyRcaConfig.java b/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HighOldGenOccupancyRcaConfig.java index 512b4ae6b..2d493a698 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HighOldGenOccupancyRcaConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HighOldGenOccupancyRcaConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.configs; - import org.opensearch.performanceanalyzer.rca.framework.core.RcaConf; public class HighOldGenOccupancyRcaConfig { diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HotNodeClusterRcaConfig.java b/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HotNodeClusterRcaConfig.java index 4d06c5b77..2e17e88d2 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HotNodeClusterRcaConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HotNodeClusterRcaConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.configs; - import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.opensearch.performanceanalyzer.rca.framework.core.RcaConf; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HotShardClusterRcaConfig.java b/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HotShardClusterRcaConfig.java index 0e8e77553..30199b665 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HotShardClusterRcaConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HotShardClusterRcaConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.configs; - import org.opensearch.performanceanalyzer.rca.framework.core.RcaConf; public class HotShardClusterRcaConfig { diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HotShardRcaConfig.java b/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HotShardRcaConfig.java index eed7a4eec..322ffa88d 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HotShardRcaConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/configs/HotShardRcaConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.configs; - import org.opensearch.performanceanalyzer.rca.framework.core.RcaConf; public class HotShardRcaConfig { diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/configs/OldGenContendedRcaConfig.java b/src/main/java/org/opensearch/performanceanalyzer/rca/configs/OldGenContendedRcaConfig.java index 4a02b4531..eedd94b4a 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/configs/OldGenContendedRcaConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/configs/OldGenContendedRcaConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.configs; - import org.opensearch.performanceanalyzer.rca.framework.core.RcaConf; public class OldGenContendedRcaConfig { diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/configs/QueueRejectionRcaConfig.java b/src/main/java/org/opensearch/performanceanalyzer/rca/configs/QueueRejectionRcaConfig.java index 7b38d8aed..f33e6b024 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/configs/QueueRejectionRcaConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/configs/QueueRejectionRcaConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.configs; - import org.opensearch.performanceanalyzer.rca.framework.core.RcaConf; public class QueueRejectionRcaConfig { diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/configs/ShardRequestCacheRcaConfig.java b/src/main/java/org/opensearch/performanceanalyzer/rca/configs/ShardRequestCacheRcaConfig.java index 991d76142..e2006dd13 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/configs/ShardRequestCacheRcaConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/configs/ShardRequestCacheRcaConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.configs; - import org.opensearch.performanceanalyzer.rca.framework.core.RcaConf; /** config object to store rca config settings for ShardRequestCacheRca */ diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/AnalysisGraph.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/AnalysisGraph.java index 976757e25..0fbd02191 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/AnalysisGraph.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/AnalysisGraph.java @@ -10,7 +10,6 @@ * and */ - import java.util.ArrayList; import java.util.List; import org.apache.logging.log4j.LogManager; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/BooleanAggregator.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/BooleanAggregator.java index c47b01bc5..cc2f1fbe4 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/BooleanAggregator.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/BooleanAggregator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api; - import org.opensearch.performanceanalyzer.rca.framework.core.Aggregator; public class BooleanAggregator extends Aggregator {} diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/Metric.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/Metric.java index 5d456f676..a2e9004e6 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/Metric.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/Metric.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api; - import java.util.Collections; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/OpenSearchConfigNode.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/OpenSearchConfigNode.java index 7ee74effd..63a72b765 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/OpenSearchConfigNode.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/OpenSearchConfigNode.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api; - import java.util.ArrayList; import java.util.List; import org.apache.logging.log4j.LogManager; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/Rca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/Rca.java index b1580ccfd..dd37b016e 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/Rca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/Rca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api; - import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.opensearch.performanceanalyzer.commons.stats.ServiceMetrics; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/Symptom.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/Symptom.java index 4aa05c6ae..d4b6d2b4d 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/Symptom.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/Symptom.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api; - import java.util.Collections; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/BucketizedSlidingWindow.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/BucketizedSlidingWindow.java index de49fb040..05c090e38 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/BucketizedSlidingWindow.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/BucketizedSlidingWindow.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.aggregators; - import java.io.IOException; import java.nio.file.Path; import java.util.concurrent.TimeUnit; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/BucketizedSlidingWindowConfig.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/BucketizedSlidingWindowConfig.java index 2cdad5d53..4f670a2a3 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/BucketizedSlidingWindowConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/BucketizedSlidingWindowConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.aggregators; - import java.nio.file.Path; import java.util.concurrent.TimeUnit; import javax.annotation.Nullable; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/PersistableSlidingWindow.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/PersistableSlidingWindow.java index fdacf1afd..2b2291de5 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/PersistableSlidingWindow.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/PersistableSlidingWindow.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.aggregators; - import com.fasterxml.jackson.databind.ObjectMapper; import java.io.BufferedWriter; import java.io.FileWriter; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/SlidingWindow.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/SlidingWindow.java index 5a5a8a1cb..90b5a3c17 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/SlidingWindow.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/SlidingWindow.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.aggregators; - import java.util.Deque; import java.util.LinkedList; import java.util.concurrent.TimeUnit; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/SummarizedWindow.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/SummarizedWindow.java index b827e7f58..d5f525eeb 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/SummarizedWindow.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/SummarizedWindow.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.aggregators; - import java.util.concurrent.TimeUnit; import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/contexts/ResourceContext.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/contexts/ResourceContext.java index 3bff99458..4dbd3e70c 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/contexts/ResourceContext.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/contexts/ResourceContext.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.contexts; - import java.util.ArrayList; import java.util.List; import org.jooq.Field; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/contexts/SymptomContext.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/contexts/SymptomContext.java index efbe83d4a..48817e37d 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/contexts/SymptomContext.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/contexts/SymptomContext.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.contexts; - import org.opensearch.performanceanalyzer.rca.framework.api.Resources; import org.opensearch.performanceanalyzer.rca.framework.core.GenericContext; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/MetricFlowUnit.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/MetricFlowUnit.java index 5926ce05e..53f160457 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/MetricFlowUnit.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/MetricFlowUnit.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.flow_units; - import org.jooq.Record; import org.jooq.Result; import org.opensearch.performanceanalyzer.grpc.FlowUnitMessage; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/NodeConfigFlowUnit.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/NodeConfigFlowUnit.java index dfcfbbab0..262b99207 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/NodeConfigFlowUnit.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/NodeConfigFlowUnit.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.flow_units; - import java.util.ArrayList; import java.util.HashMap; import java.util.List; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/ResourceFlowUnit.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/ResourceFlowUnit.java index 5eefacbd2..04cfc2978 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/ResourceFlowUnit.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/ResourceFlowUnit.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.flow_units; - import java.util.ArrayList; import java.util.List; import org.apache.logging.log4j.LogManager; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/SymptomFlowUnit.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/SymptomFlowUnit.java index 607d56d75..39a246da1 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/SymptomFlowUnit.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/SymptomFlowUnit.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.flow_units; - import java.util.List; import org.opensearch.performanceanalyzer.grpc.FlowUnitMessage; import org.opensearch.performanceanalyzer.rca.framework.api.contexts.SymptomContext; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/temperature/ClusterTemperatureFlowUnit.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/temperature/ClusterTemperatureFlowUnit.java index 6bb90c0bc..d226cd905 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/temperature/ClusterTemperatureFlowUnit.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/temperature/ClusterTemperatureFlowUnit.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.flow_units.temperature; - import org.opensearch.performanceanalyzer.grpc.FlowUnitMessage; import org.opensearch.performanceanalyzer.rca.framework.api.contexts.ResourceContext; import org.opensearch.performanceanalyzer.rca.framework.api.flow_units.ResourceFlowUnit; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/temperature/CompactNodeTemperatureFlowUnit.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/temperature/CompactNodeTemperatureFlowUnit.java index bb4c1a2fa..72341927f 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/temperature/CompactNodeTemperatureFlowUnit.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/temperature/CompactNodeTemperatureFlowUnit.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.flow_units.temperature; - import org.opensearch.performanceanalyzer.grpc.FlowUnitMessage; import org.opensearch.performanceanalyzer.rca.framework.api.Resources; import org.opensearch.performanceanalyzer.rca.framework.api.contexts.ResourceContext; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/temperature/DimensionalTemperatureFlowUnit.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/temperature/DimensionalTemperatureFlowUnit.java index 22629f514..9b413bf24 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/temperature/DimensionalTemperatureFlowUnit.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/temperature/DimensionalTemperatureFlowUnit.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.flow_units.temperature; - import org.opensearch.performanceanalyzer.grpc.FlowUnitMessage; import org.opensearch.performanceanalyzer.rca.framework.api.contexts.ResourceContext; import org.opensearch.performanceanalyzer.rca.framework.api.flow_units.ResourceFlowUnit; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/AdmissionControl_CurrentValue.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/AdmissionControl_CurrentValue.java index 6be6a3642..3fdf717f8 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/AdmissionControl_CurrentValue.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/AdmissionControl_CurrentValue.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/AdmissionControl_RejectionCount.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/AdmissionControl_RejectionCount.java index 91232aa6f..a84b5377e 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/AdmissionControl_RejectionCount.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/AdmissionControl_RejectionCount.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/AdmissionControl_ThresholdValue.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/AdmissionControl_ThresholdValue.java index 8394c2117..0e06039e6 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/AdmissionControl_ThresholdValue.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/AdmissionControl_ThresholdValue.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Bitset_Memory.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Bitset_Memory.java index aed2a8e63..6bd2ac618 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Bitset_Memory.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Bitset_Memory.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/CB_ConfiguredSize.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/CB_ConfiguredSize.java index 0f91c0979..2fb98acd7 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/CB_ConfiguredSize.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/CB_ConfiguredSize.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/CB_EstimatedSize.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/CB_EstimatedSize.java index bb183d1ae..8e4dbac88 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/CB_EstimatedSize.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/CB_EstimatedSize.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/CB_TrippedEvents.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/CB_TrippedEvents.java index 8770221e0..62384562c 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/CB_TrippedEvents.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/CB_TrippedEvents.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/CPU_Utilization.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/CPU_Utilization.java index 0583e0c8d..ab9f58183 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/CPU_Utilization.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/CPU_Utilization.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_FieldData_Eviction.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_FieldData_Eviction.java index b2c0f8fed..9054dc253 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_FieldData_Eviction.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_FieldData_Eviction.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_FieldData_Size.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_FieldData_Size.java index b0efc5495..d98003572 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_FieldData_Size.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_FieldData_Size.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Max_Size.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Max_Size.java index 349172efd..88035308d 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Max_Size.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Max_Size.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Query_Hit.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Query_Hit.java index 18ff31721..1cb38b60e 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Query_Hit.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Query_Hit.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Query_Miss.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Query_Miss.java index 5a57336b8..4a705404f 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Query_Miss.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Query_Miss.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Query_Size.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Query_Size.java index c673930ed..6ecc5df57 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Query_Size.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Query_Size.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Request_Eviction.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Request_Eviction.java index de6d9faf3..0843d38ff 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Request_Eviction.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Request_Eviction.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Request_Hit.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Request_Hit.java index 7fc79e8bb..c7877b29e 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Request_Hit.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Request_Hit.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Request_Miss.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Request_Miss.java index b3d84fd8f..deac29e1a 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Request_Miss.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Request_Miss.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Request_Size.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Request_Size.java index 9a59d3853..913224d55 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Request_Size.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Cache_Request_Size.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ClusterApplierService_Failure.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ClusterApplierService_Failure.java index 29a4b8a6f..bf7643962 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ClusterApplierService_Failure.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ClusterApplierService_Failure.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ClusterApplierService_Latency.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ClusterApplierService_Latency.java index 72a835392..91ced700f 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ClusterApplierService_Latency.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ClusterApplierService_Latency.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ClusterManager_PendingQueueSize.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ClusterManager_PendingQueueSize.java index 337c793aa..aabb835f5 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ClusterManager_PendingQueueSize.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ClusterManager_PendingQueueSize.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ClusterManager_Task_Queue_Time.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ClusterManager_Task_Queue_Time.java index 1dab47ede..2604c3f86 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ClusterManager_Task_Queue_Time.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ClusterManager_Task_Queue_Time.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ClusterManager_Task_Run_Time.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ClusterManager_Task_Run_Time.java index 353b4bc92..036273059 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ClusterManager_Task_Run_Time.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ClusterManager_Task_Run_Time.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Disk_ServiceRate.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Disk_ServiceRate.java index 74ef925aa..9d05dcc27 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Disk_ServiceRate.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Disk_ServiceRate.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Disk_Utilization.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Disk_Utilization.java index 77d937e3b..506430e52 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Disk_Utilization.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Disk_Utilization.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Disk_WaitTime.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Disk_WaitTime.java index 3476c0e9c..1ab56e801 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Disk_WaitTime.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Disk_WaitTime.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ElectionTerm.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ElectionTerm.java index bcce573d9..9a939362b 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ElectionTerm.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ElectionTerm.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Flush_Event.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Flush_Event.java index 6642db6e1..897dd8873 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Flush_Event.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Flush_Event.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Flush_Time.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Flush_Time.java index da3df5425..4a23b5b34 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Flush_Time.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Flush_Time.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/GC_Collection_Event.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/GC_Collection_Event.java index 1b7d1748c..06b18578c 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/GC_Collection_Event.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/GC_Collection_Event.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/GC_Collection_Time.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/GC_Collection_Time.java index 59f61f9eb..c32faaf1f 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/GC_Collection_Time.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/GC_Collection_Time.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/GC_Type.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/GC_Type.java index 42f2dcd61..a01d323d4 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/GC_Type.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/GC_Type.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/HTTP_RequestDocs.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/HTTP_RequestDocs.java index 63aba03a9..03d8c482c 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/HTTP_RequestDocs.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/HTTP_RequestDocs.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/HTTP_TotalRequests.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/HTTP_TotalRequests.java index d0e2348fe..8640f301b 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/HTTP_TotalRequests.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/HTTP_TotalRequests.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Heap_AllocRate.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Heap_AllocRate.java index a9fb28086..18663e7aa 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Heap_AllocRate.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Heap_AllocRate.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Heap_Committed.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Heap_Committed.java index 6f98bf820..c51110994 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Heap_Committed.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Heap_Committed.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Heap_Init.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Heap_Init.java index 2c4f46b2a..3b4f5f3dc 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Heap_Init.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Heap_Init.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Heap_Max.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Heap_Max.java index 4a31dd278..adcf96f7d 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Heap_Max.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Heap_Max.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Heap_Used.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Heap_Used.java index 7671c1608..9e9521b83 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Heap_Used.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Heap_Used.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IO_ReadSyscallRate.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IO_ReadSyscallRate.java index a199ec826..f19bd6651 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IO_ReadSyscallRate.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IO_ReadSyscallRate.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IO_ReadThroughput.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IO_ReadThroughput.java index b9f296695..d9afcb853 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IO_ReadThroughput.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IO_ReadThroughput.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IO_TotThroughput.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IO_TotThroughput.java index 7e98aff42..2bfc6b58a 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IO_TotThroughput.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IO_TotThroughput.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IO_TotalSyscallRate.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IO_TotalSyscallRate.java index 4363a6e80..5cd10ceed 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IO_TotalSyscallRate.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IO_TotalSyscallRate.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IO_WriteSyscallRate.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IO_WriteSyscallRate.java index 90c4e3eeb..4f85c39a2 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IO_WriteSyscallRate.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IO_WriteSyscallRate.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IO_WriteThroughput.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IO_WriteThroughput.java index 1b990bd6b..7c26bba3a 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IO_WriteThroughput.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IO_WriteThroughput.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IndexWriter_Memory.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IndexWriter_Memory.java index b7dc0e476..f35149ed7 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IndexWriter_Memory.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/IndexWriter_Memory.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Indexing_Buffer.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Indexing_Buffer.java index 40bb84a54..adb7ef72c 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Indexing_Buffer.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Indexing_Buffer.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Indexing_ThrottleTime.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Indexing_ThrottleTime.java index dab2c9998..7f2602505 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Indexing_ThrottleTime.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Indexing_ThrottleTime.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Latency.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Latency.java index 5d0cfb3b1..bd9bbfe7a 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Latency.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Latency.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Merge_CurrentEvent.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Merge_CurrentEvent.java index 32d7c6579..a5891ffa0 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Merge_CurrentEvent.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Merge_CurrentEvent.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Merge_Event.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Merge_Event.java index 335143806..7972e4cfc 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Merge_Event.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Merge_Event.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Merge_Time.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Merge_Time.java index 07f6b3a5e..5477201e7 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Merge_Time.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Merge_Time.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_PacketDropRate4.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_PacketDropRate4.java index 28f5e47cf..ef76e25a3 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_PacketDropRate4.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_PacketDropRate4.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_PacketDropRate6.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_PacketDropRate6.java index ede68b41f..fa5c675c6 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_PacketDropRate6.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_PacketDropRate6.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_PacketRate4.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_PacketRate4.java index bee6313d0..7c50dbdd9 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_PacketRate4.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_PacketRate4.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_PacketRate6.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_PacketRate6.java index 9470c819c..02e8bd476 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_PacketRate6.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_PacketRate6.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_TCP_Lost.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_TCP_Lost.java index 33c1d622e..7577d9c7e 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_TCP_Lost.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_TCP_Lost.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_TCP_NumFlows.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_TCP_NumFlows.java index fb5d97297..623aea9a0 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_TCP_NumFlows.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_TCP_NumFlows.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_TCP_RxQ.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_TCP_RxQ.java index ac15f80e3..1b7ef22d6 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_TCP_RxQ.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_TCP_RxQ.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_TCP_SSThresh.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_TCP_SSThresh.java index 2719006eb..239dbdc7e 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_TCP_SSThresh.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_TCP_SSThresh.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_TCP_SendCWND.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_TCP_SendCWND.java index a73beb7df..086655505 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_TCP_SendCWND.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_TCP_SendCWND.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_TCP_TxQ.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_TCP_TxQ.java index b9284b0a2..f17afba0d 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_TCP_TxQ.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_TCP_TxQ.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_Throughput.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_Throughput.java index ea4372ce9..4ba2d84e8 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_Throughput.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Net_Throughput.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Paging_MajfltRate.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Paging_MajfltRate.java index e7760a4dc..68237adb7 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Paging_MajfltRate.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Paging_MajfltRate.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Paging_MinfltRate.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Paging_MinfltRate.java index c21ee2cb2..544135077 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Paging_MinfltRate.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Paging_MinfltRate.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Paging_RSS.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Paging_RSS.java index cff7671ec..4e3ac5db6 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Paging_RSS.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Paging_RSS.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/PublishClusterState_Failure.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/PublishClusterState_Failure.java index d41859325..8905c8b4f 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/PublishClusterState_Failure.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/PublishClusterState_Failure.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.metricsdb.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/PublishClusterState_Latency.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/PublishClusterState_Latency.java index 343c4f0f2..444415833 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/PublishClusterState_Latency.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/PublishClusterState_Latency.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.metricsdb.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Refresh_Event.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Refresh_Event.java index 9adff1b4a..eb5a18d09 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Refresh_Event.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Refresh_Event.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Refresh_Time.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Refresh_Time.java index 09af5f0d5..8449f22bc 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Refresh_Time.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Refresh_Time.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Sched_CtxRate.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Sched_CtxRate.java index 9cb9ad80d..8a2312a1d 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Sched_CtxRate.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Sched_CtxRate.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Sched_Runtime.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Sched_Runtime.java index 6f85c3b63..d30308083 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Sched_Runtime.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Sched_Runtime.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Sched_Waittime.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Sched_Waittime.java index cf4014dd8..900797aa1 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Sched_Waittime.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Sched_Waittime.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Segments_Total.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Segments_Total.java index efa0b77c8..686d940c7 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Segments_Total.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Segments_Total.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ShardBulkDocs.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ShardBulkDocs.java index 1d3bbf4cc..d87cf6766 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ShardBulkDocs.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ShardBulkDocs.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ShardEvents.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ShardEvents.java index 29baa8d37..71fd6e1fc 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ShardEvents.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ShardEvents.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ShardSize.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ShardSize.java index 4cd5a53c7..8a67de0f0 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ShardSize.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ShardSize.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ThreadPool_ActiveThreads.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ThreadPool_ActiveThreads.java index 27bb50f1e..e6f2c6562 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ThreadPool_ActiveThreads.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ThreadPool_ActiveThreads.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ThreadPool_QueueCapacity.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ThreadPool_QueueCapacity.java index 6dd4c726c..688fc42a3 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ThreadPool_QueueCapacity.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ThreadPool_QueueCapacity.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ThreadPool_QueueSize.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ThreadPool_QueueSize.java index 505f5978b..d2743c764 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ThreadPool_QueueSize.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ThreadPool_QueueSize.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ThreadPool_RejectedReqs.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ThreadPool_RejectedReqs.java index b946d6ba5..b23824ea9 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ThreadPool_RejectedReqs.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ThreadPool_RejectedReqs.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ThreadPool_TotalThreads.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ThreadPool_TotalThreads.java index 105e99b86..0630c5f58 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ThreadPool_TotalThreads.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/ThreadPool_TotalThreads.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Thread_Blocked_Event.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Thread_Blocked_Event.java index 3775d5a28..d035b0a7f 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Thread_Blocked_Event.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Thread_Blocked_Event.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Thread_Blocked_Time.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Thread_Blocked_Time.java index c203e1870..a59cb9572 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Thread_Blocked_Time.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Thread_Blocked_Time.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Thread_Waited_Event.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Thread_Waited_Event.java index c1636039a..e5e2c3254 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Thread_Waited_Event.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Thread_Waited_Event.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Thread_Waited_Time.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Thread_Waited_Time.java index 3bc495910..4cfd9f111 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Thread_Waited_Time.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/Thread_Waited_Time.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/VersionMap_Memory.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/VersionMap_Memory.java index 34ae3ff30..8e2b058b4 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/VersionMap_Memory.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/VersionMap_Memory.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/persist/JooqFieldValue.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/persist/JooqFieldValue.java index 918d6307a..d9c980112 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/persist/JooqFieldValue.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/persist/JooqFieldValue.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.persist; - import org.jooq.Field; /** diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/persist/SQLParsingUtil.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/persist/SQLParsingUtil.java index dac42263c..6b85f7471 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/persist/SQLParsingUtil.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/persist/SQLParsingUtil.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.persist; - import java.util.List; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotClusterSummary.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotClusterSummary.java index f3cfe1416..2abf97071 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotClusterSummary.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotClusterSummary.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries; - import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.protobuf.GeneratedMessageV3; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotNodeSummary.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotNodeSummary.java index 428f82ab1..a44522841 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotNodeSummary.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotNodeSummary.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries; - import com.google.gson.JsonElement; import com.google.gson.JsonObject; import java.util.ArrayList; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotResourceSummary.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotResourceSummary.java index b0a335eee..1f7cb9008 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotResourceSummary.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotResourceSummary.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries; - import com.google.gson.JsonElement; import com.google.gson.JsonObject; import java.util.ArrayList; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotShardSummary.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotShardSummary.java index 5837f681f..c5611576b 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotShardSummary.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotShardSummary.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries; - import com.google.gson.JsonElement; import com.google.gson.JsonObject; import java.util.ArrayList; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/ResourceUtil.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/ResourceUtil.java index 876cd4ca1..5aac31030 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/ResourceUtil.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/ResourceUtil.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries; - import org.opensearch.performanceanalyzer.grpc.AdditionalFields; import org.opensearch.performanceanalyzer.grpc.MetricEnum; import org.opensearch.performanceanalyzer.grpc.PANetworking; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/SummaryBuilder.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/SummaryBuilder.java index 7f36f306b..2bcc3b37e 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/SummaryBuilder.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/SummaryBuilder.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries; - import org.jooq.Record; import org.opensearch.performanceanalyzer.rca.framework.core.GenericSummary; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/SummaryBuilderFunction.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/SummaryBuilderFunction.java index 7dcdc7177..cef3cf1f8 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/SummaryBuilderFunction.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/SummaryBuilderFunction.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries; - import org.jooq.Record; @FunctionalInterface diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/TopConsumerSummary.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/TopConsumerSummary.java index e6e2082a2..018df82a1 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/TopConsumerSummary.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/TopConsumerSummary.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries; - import com.google.gson.JsonElement; import com.google.gson.JsonObject; import java.util.ArrayList; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/bucket/BasicBucketCalculator.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/bucket/BasicBucketCalculator.java index 203a2beab..063dc6783 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/bucket/BasicBucketCalculator.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/bucket/BasicBucketCalculator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries.bucket; - import java.util.Map; import org.opensearch.performanceanalyzer.grpc.Resource; import org.opensearch.performanceanalyzer.grpc.ResourceEnum; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/bucket/BucketCalculator.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/bucket/BucketCalculator.java index 948c6c26c..c1f4137c7 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/bucket/BucketCalculator.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/bucket/BucketCalculator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries.bucket; - import org.opensearch.performanceanalyzer.grpc.Resource; import org.opensearch.performanceanalyzer.grpc.ResourceEnum; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/bucket/UsageBucket.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/bucket/UsageBucket.java index 3aac70592..a7de41cc4 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/bucket/UsageBucket.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/bucket/UsageBucket.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries.bucket; - import org.opensearch.performanceanalyzer.grpc.Resource; /** diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/ClusterDimensionalSummary.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/ClusterDimensionalSummary.java index 0a96dd9d5..607f30a71 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/ClusterDimensionalSummary.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/ClusterDimensionalSummary.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries.temperature; - import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; @@ -40,6 +39,7 @@ public class ClusterDimensionalSummary extends GenericSummary { private static final Logger LOG = LogManager.getLogger(ClusterDimensionalSummary.class); + /** The name of the table in which this summary is persisted. */ public static final String TABLE_NAME = ClusterDimensionalSummary.class.getSimpleName(); diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/ClusterTemperatureSummary.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/ClusterTemperatureSummary.java index 09c9a68c6..3ff21e2a8 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/ClusterTemperatureSummary.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/ClusterTemperatureSummary.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries.temperature; - import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/CompactNodeSummary.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/CompactNodeSummary.java index b00e1f0cf..3c57f62e5 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/CompactNodeSummary.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/CompactNodeSummary.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries.temperature; - import com.google.gson.JsonElement; import com.google.gson.JsonObject; import java.util.ArrayList; @@ -37,6 +36,7 @@ public class CompactNodeSummary extends GenericSummary { private static final Logger LOG = LogManager.getLogger(CompactNodeSummary.class); + /** This will determine the name of the SQLite when this summary is persisted. */ public static final String TABLE_NAME = CompactNodeSummary.class.getSimpleName(); @@ -278,7 +278,9 @@ public static CompactNodeSummary buildNodeTemperatureProfileFromMessage( return compactNodeTemperatureSummary; } - /** @return Returns a list of columns that this table would contain. */ + /** + * @return Returns a list of columns that this table would contain. + */ @Override public List> getSqlSchema() { List> schema = new ArrayList<>(); diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/FullNodeTemperatureSummary.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/FullNodeTemperatureSummary.java index bd5910a31..7fe03b6db 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/FullNodeTemperatureSummary.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/FullNodeTemperatureSummary.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries.temperature; - import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.protobuf.GeneratedMessageV3; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/NodeLevelDimensionalSummary.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/NodeLevelDimensionalSummary.java index 27b189457..8c97d9623 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/NodeLevelDimensionalSummary.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/NodeLevelDimensionalSummary.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries.temperature; - import com.google.common.annotations.VisibleForTesting; import com.google.gson.JsonArray; import com.google.gson.JsonElement; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/ShardProfileSummary.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/ShardProfileSummary.java index 46ffdd990..8ca2c9920 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/ShardProfileSummary.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/ShardProfileSummary.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries.temperature; - import com.google.gson.JsonObject; import com.google.protobuf.GeneratedMessageV3; import java.util.ArrayList; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/ConfJsonWrapper.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/ConfJsonWrapper.java index fe25f624a..0c6ffb245 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/ConfJsonWrapper.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/ConfJsonWrapper.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.core; - import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import com.google.common.collect.ImmutableList; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/Config.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/Config.java index 9e7e83f47..f4875cecf 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/Config.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/Config.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.core; - import java.util.Map; import java.util.function.Predicate; import javax.annotation.Nullable; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/ConnectedComponent.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/ConnectedComponent.java index 70a9c1c32..d0d0f2372 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/ConnectedComponent.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/ConnectedComponent.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.core; - import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Deque; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/GenericContext.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/GenericContext.java index 56dd971d2..8e544fc9e 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/GenericContext.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/GenericContext.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.core; - import org.opensearch.performanceanalyzer.rca.framework.api.Resources; public abstract class GenericContext { diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/GenericFlowUnit.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/GenericFlowUnit.java index bd3e01c14..b2e2305c0 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/GenericFlowUnit.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/GenericFlowUnit.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.core; - import org.opensearch.performanceanalyzer.grpc.FlowUnitMessage; import org.opensearch.performanceanalyzer.rca.framework.util.InstanceDetails; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/GenericSummary.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/GenericSummary.java index 53ef21b93..012f424d6 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/GenericSummary.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/GenericSummary.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.core; - import com.google.common.annotations.VisibleForTesting; import com.google.gson.JsonArray; import com.google.gson.JsonElement; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/MetricsDBProvider.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/MetricsDBProvider.java index 625661208..1e1e6c3f0 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/MetricsDBProvider.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/MetricsDBProvider.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.core; - import java.util.Collections; import java.util.Map; import org.apache.logging.log4j.LogManager; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/NestedConfig.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/NestedConfig.java index a63622cc0..1a7ed46d5 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/NestedConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/NestedConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.core; - import java.util.Map; import javax.annotation.Nullable; import org.apache.logging.log4j.LogManager; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/Node.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/Node.java index f20cb5766..1973cae61 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/Node.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/Node.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.core; - import com.google.common.annotations.VisibleForTesting; import java.util.ArrayList; import java.util.Collections; @@ -45,6 +44,7 @@ public abstract class Node { /** Flow unit produced by this vertex obtained from evaluating it locally. */ protected T localFlowUnit; + /** * These are matched against the tags in the rca.conf, to determine if a node is to executed at * a location. diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/NonLeafNode.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/NonLeafNode.java index ab2484a07..f13c32620 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/NonLeafNode.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/NonLeafNode.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.core; - import java.util.LinkedList; import java.util.List; import java.util.Queue; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/Queryable.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/Queryable.java index f9d64700c..e8ed12c66 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/Queryable.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/Queryable.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.core; - import org.jooq.Record; import org.jooq.Result; import org.opensearch.performanceanalyzer.metricsdb.MetricsDB; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/RcaConf.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/RcaConf.java index 4005e1c15..0a36252a4 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/RcaConf.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/RcaConf.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.core; - import com.fasterxml.jackson.core.JsonFactory; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/SortByIngressOrder.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/SortByIngressOrder.java index f6da2ef79..11b94f357 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/SortByIngressOrder.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/SortByIngressOrder.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.core; - import java.io.Serializable; import java.util.Comparator; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/Stats.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/Stats.java index 738a4e953..601cb8784 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/Stats.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/Stats.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.core; - import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/Threshold.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/Threshold.java index 43e41ca09..a3e60302d 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/Threshold.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/Threshold.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.core; - import com.fasterxml.jackson.annotation.JsonProperty; import java.io.File; import java.util.ArrayList; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/ThresholdMain.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/ThresholdMain.java index ce95e5ff6..1ec0fa700 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/ThresholdMain.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/ThresholdMain.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.core; - import com.fasterxml.jackson.core.JsonFactory; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/temperature/RawMetricsVector.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/temperature/RawMetricsVector.java index 5568ac973..c30d9487d 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/temperature/RawMetricsVector.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/temperature/RawMetricsVector.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.core.temperature; - import com.google.gson.JsonArray; import com.google.gson.JsonObject; import javax.annotation.Nullable; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/temperature/ShardStore.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/temperature/ShardStore.java index 141854801..5f889d4f9 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/temperature/ShardStore.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/temperature/ShardStore.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.core.temperature; - import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import javax.annotation.Nonnull; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/temperature/TemperatureDimension.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/temperature/TemperatureDimension.java index becc11ce8..078ea0232 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/temperature/TemperatureDimension.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/temperature/TemperatureDimension.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.core.temperature; - import org.opensearch.performanceanalyzer.rca.framework.api.metrics.ShardSize; /** diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/temperature/TemperatureVector.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/temperature/TemperatureVector.java index 2a3e8ab9f..2bccbb21b 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/temperature/TemperatureVector.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/core/temperature/TemperatureVector.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.core.temperature; - import com.google.gson.JsonArray; import com.google.gson.JsonObject; import java.util.Comparator; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/metrics/ExceptionsAndErrors.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/metrics/ExceptionsAndErrors.java index 803638cf5..c28aec009 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/metrics/ExceptionsAndErrors.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/metrics/ExceptionsAndErrors.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.metrics; - import java.util.Collections; import java.util.List; import org.opensearch.performanceanalyzer.commons.stats.eval.Statistics; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/metrics/JvmMetrics.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/metrics/JvmMetrics.java index 22693cf35..593da3740 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/metrics/JvmMetrics.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/metrics/JvmMetrics.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.metrics; - import java.util.Collections; import java.util.List; import org.opensearch.performanceanalyzer.commons.stats.eval.Statistics; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/metrics/RcaGraphMetrics.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/metrics/RcaGraphMetrics.java index 44d684268..f505cad76 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/metrics/RcaGraphMetrics.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/metrics/RcaGraphMetrics.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.metrics; - import java.util.Arrays; import java.util.Collections; import java.util.List; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/metrics/RcaRuntimeMetrics.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/metrics/RcaRuntimeMetrics.java index 9a40f3ae5..0f3669a72 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/metrics/RcaRuntimeMetrics.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/metrics/RcaRuntimeMetrics.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.metrics; - import java.util.Collections; import java.util.List; import org.opensearch.performanceanalyzer.commons.stats.eval.Statistics; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/metrics/RcaVerticesMetrics.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/metrics/RcaVerticesMetrics.java index 4d5a1b277..5adab598f 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/metrics/RcaVerticesMetrics.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/metrics/RcaVerticesMetrics.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.metrics; - import java.util.Collections; import java.util.List; import org.opensearch.performanceanalyzer.commons.stats.eval.Statistics; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/metrics/ReaderMetrics.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/metrics/ReaderMetrics.java index 4c9fc5a04..13eb19b5f 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/metrics/ReaderMetrics.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/metrics/ReaderMetrics.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.metrics; - import java.util.Arrays; import java.util.Collections; import java.util.List; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/sys/AllJvmSamplers.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/sys/AllJvmSamplers.java index 4abc208e5..b90d47aa7 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/sys/AllJvmSamplers.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/sys/AllJvmSamplers.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.sys; - import java.util.Arrays; import java.util.List; import org.opensearch.performanceanalyzer.commons.stats.emitters.ISampler; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/sys/JvmFreeMem.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/sys/JvmFreeMem.java index 874f90e7b..aab7a7a6d 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/sys/JvmFreeMem.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/sys/JvmFreeMem.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.sys; - import org.opensearch.performanceanalyzer.commons.stats.collectors.SampleAggregator; import org.opensearch.performanceanalyzer.commons.stats.emitters.ISampler; import org.opensearch.performanceanalyzer.rca.framework.metrics.JvmMetrics; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/sys/JvmTotalMem.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/sys/JvmTotalMem.java index 1541d487f..df3337cdf 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/sys/JvmTotalMem.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/sys/JvmTotalMem.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.sys; - import org.opensearch.performanceanalyzer.commons.stats.collectors.SampleAggregator; import org.opensearch.performanceanalyzer.commons.stats.emitters.ISampler; import org.opensearch.performanceanalyzer.rca.framework.metrics.JvmMetrics; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/util/InstanceDetails.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/util/InstanceDetails.java index 7cd459abb..c701f105b 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/util/InstanceDetails.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/util/InstanceDetails.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.util; - import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Objects; import com.google.common.net.InetAddresses; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/util/RcaConsts.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/util/RcaConsts.java index 4ce9cde77..7a2e11a98 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/util/RcaConsts.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/util/RcaConsts.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.util; - import java.nio.file.Paths; import java.util.concurrent.TimeUnit; import org.opensearch.performanceanalyzer.commons.util.Util; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/util/RcaUtil.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/util/RcaUtil.java index 274c0c0f0..13e702532 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/util/RcaUtil.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/util/RcaUtil.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.util; - import java.lang.reflect.InvocationTargetException; import java.util.Arrays; import java.util.List; @@ -23,8 +22,11 @@ public class RcaUtil { private static final Logger LOG = LogManager.getLogger(RcaUtil.class); private static AnalysisGraph getAnalysisGraphImplementor(RcaConf rcaConf) - throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, - InvocationTargetException, InstantiationException { + throws ClassNotFoundException, + NoSuchMethodException, + IllegalAccessException, + InvocationTargetException, + InstantiationException { return (AnalysisGraph) Class.forName(rcaConf.getAnalysisGraphEntryPoint()) .getDeclaredConstructor() @@ -32,15 +34,21 @@ private static AnalysisGraph getAnalysisGraphImplementor(RcaConf rcaConf) } public static List getAnalysisGraphComponents(RcaConf rcaConf) - throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, - InstantiationException, IllegalAccessException { + throws ClassNotFoundException, + NoSuchMethodException, + InvocationTargetException, + InstantiationException, + IllegalAccessException { AnalysisGraph graph = getAnalysisGraphImplementor(rcaConf); return getAnalysisGraphComponents(graph); } public static List getAnalysisGraphComponents(String analysisGraphClass) - throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, - InstantiationException, IllegalAccessException { + throws ClassNotFoundException, + NoSuchMethodException, + InvocationTargetException, + InstantiationException, + IllegalAccessException { AnalysisGraph graph = (AnalysisGraph) Class.forName(analysisGraphClass).getDeclaredConstructor().newInstance(); diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/util/SQLiteQueryUtils.java b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/util/SQLiteQueryUtils.java index 758d134fa..59d3098e4 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/framework/util/SQLiteQueryUtils.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/framework/util/SQLiteQueryUtils.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.util; - import com.google.common.collect.ImmutableList; import java.util.Collections; import java.util.HashSet; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/listener/MisbehavingGraphOperateMethodListener.java b/src/main/java/org/opensearch/performanceanalyzer/rca/listener/MisbehavingGraphOperateMethodListener.java index 3a2f804c2..30d18af02 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/listener/MisbehavingGraphOperateMethodListener.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/listener/MisbehavingGraphOperateMethodListener.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.listener; - import java.util.Arrays; import java.util.HashSet; import java.util.Map; @@ -22,6 +21,7 @@ public class MisbehavingGraphOperateMethodListener implements IListener { private static final Logger LOG = LogManager.getLogger(MisbehavingGraphOperateMethodListener.class); + /** * A map to keep track of the graphNodeName and the number of times it threw an exception in the * {@code operate()} method. diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/messages/DataMsg.java b/src/main/java/org/opensearch/performanceanalyzer/rca/messages/DataMsg.java index 50e73657e..67ff4faff 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/messages/DataMsg.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/messages/DataMsg.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.messages; - import java.util.List; import org.opensearch.performanceanalyzer.rca.framework.core.GenericFlowUnit; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/messages/IntentMsg.java b/src/main/java/org/opensearch/performanceanalyzer/rca/messages/IntentMsg.java index cf57a8740..371edf1c5 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/messages/IntentMsg.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/messages/IntentMsg.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.messages; - import java.util.Map; public class IntentMsg { diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/messages/UnicastIntentMsg.java b/src/main/java/org/opensearch/performanceanalyzer/rca/messages/UnicastIntentMsg.java index 4d449151b..6cc7d673c 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/messages/UnicastIntentMsg.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/messages/UnicastIntentMsg.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.messages; - import java.util.Map; import org.opensearch.performanceanalyzer.rca.framework.util.InstanceDetails; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/net/NodeStateManager.java b/src/main/java/org/opensearch/performanceanalyzer/rca/net/NodeStateManager.java index 168fa3c25..2775fa9f7 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/net/NodeStateManager.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/net/NodeStateManager.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.net; - import com.google.common.annotations.VisibleForTesting; import com.google.common.collect.ImmutableList; import java.util.HashSet; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/net/ReceivedFlowUnitStore.java b/src/main/java/org/opensearch/performanceanalyzer/rca/net/ReceivedFlowUnitStore.java index 2dce75d0e..b31127c04 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/net/ReceivedFlowUnitStore.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/net/ReceivedFlowUnitStore.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.net; - import com.google.common.collect.ImmutableList; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/net/SubscribeResponseHandler.java b/src/main/java/org/opensearch/performanceanalyzer/rca/net/SubscribeResponseHandler.java index fdfe7e0c0..2179d55c3 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/net/SubscribeResponseHandler.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/net/SubscribeResponseHandler.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.net; - import io.grpc.Status; import io.grpc.StatusException; import io.grpc.StatusRuntimeException; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/net/SubscriptionManager.java b/src/main/java/org/opensearch/performanceanalyzer/rca/net/SubscriptionManager.java index 49fc91663..ae9e5e59c 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/net/SubscriptionManager.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/net/SubscriptionManager.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.net; - import com.google.common.collect.ImmutableSet; import java.util.Arrays; import java.util.Collections; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/net/WireHopper.java b/src/main/java/org/opensearch/performanceanalyzer/rca/net/WireHopper.java index d874983d6..b378a4b3c 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/net/WireHopper.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/net/WireHopper.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.net; - import com.google.common.annotations.VisibleForTesting; import com.google.common.collect.ImmutableList; import java.util.List; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/net/handler/PublishRequestHandler.java b/src/main/java/org/opensearch/performanceanalyzer/rca/net/handler/PublishRequestHandler.java index 9fbdbaf45..ad18872ea 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/net/handler/PublishRequestHandler.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/net/handler/PublishRequestHandler.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.net.handler; - import io.grpc.stub.StreamObserver; import java.util.ArrayList; import java.util.Collections; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/net/handler/SubscribeServerHandler.java b/src/main/java/org/opensearch/performanceanalyzer/rca/net/handler/SubscribeServerHandler.java index e37589008..7a93c31ae 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/net/handler/SubscribeServerHandler.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/net/handler/SubscribeServerHandler.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.net.handler; - import io.grpc.stub.StreamObserver; import java.util.concurrent.ExecutorService; import java.util.concurrent.RejectedExecutionException; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/net/requests/CompositeSubscribeRequest.java b/src/main/java/org/opensearch/performanceanalyzer/rca/net/requests/CompositeSubscribeRequest.java index 94c5f96a1..f8744bfa3 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/net/requests/CompositeSubscribeRequest.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/net/requests/CompositeSubscribeRequest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.net.requests; - import io.grpc.stub.StreamObserver; import org.opensearch.performanceanalyzer.grpc.SubscribeMessage; import org.opensearch.performanceanalyzer.grpc.SubscribeResponse; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/net/tasks/BroadcastSubscriptionTxTask.java b/src/main/java/org/opensearch/performanceanalyzer/rca/net/tasks/BroadcastSubscriptionTxTask.java index 05d5ea145..1351bff42 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/net/tasks/BroadcastSubscriptionTxTask.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/net/tasks/BroadcastSubscriptionTxTask.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.net.tasks; - import java.util.Map; import org.opensearch.performanceanalyzer.AppContext; import org.opensearch.performanceanalyzer.net.NetClient; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/net/tasks/FlowUnitRxTask.java b/src/main/java/org/opensearch/performanceanalyzer/rca/net/tasks/FlowUnitRxTask.java index 5b0dae779..6fd66c6c1 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/net/tasks/FlowUnitRxTask.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/net/tasks/FlowUnitRxTask.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.net.tasks; - import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.opensearch.performanceanalyzer.commons.stats.ServiceMetrics; @@ -19,6 +18,7 @@ public class FlowUnitRxTask implements Runnable { private static final Logger LOG = LogManager.getLogger(FlowUnitRxTask.class); + /** Node state manager instance. */ private final NodeStateManager nodeStateManager; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/net/tasks/FlowUnitTxTask.java b/src/main/java/org/opensearch/performanceanalyzer/rca/net/tasks/FlowUnitTxTask.java index e4afce8c9..de1ab1c40 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/net/tasks/FlowUnitTxTask.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/net/tasks/FlowUnitTxTask.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.net.tasks; - import io.grpc.stub.StreamObserver; import java.util.Set; import org.apache.logging.log4j.LogManager; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/net/tasks/SubscriptionRxTask.java b/src/main/java/org/opensearch/performanceanalyzer/rca/net/tasks/SubscriptionRxTask.java index af7543fab..4b24f9424 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/net/tasks/SubscriptionRxTask.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/net/tasks/SubscriptionRxTask.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.net.tasks; - import io.grpc.stub.StreamObserver; import java.util.Map; import org.apache.logging.log4j.LogManager; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/net/tasks/SubscriptionTxTask.java b/src/main/java/org/opensearch/performanceanalyzer/rca/net/tasks/SubscriptionTxTask.java index c934c4f6f..7ba09e6f0 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/net/tasks/SubscriptionTxTask.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/net/tasks/SubscriptionTxTask.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.net.tasks; - import java.util.Map; import java.util.Set; import org.apache.logging.log4j.LogManager; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/net/tasks/UnicastSubscriptionTxTask.java b/src/main/java/org/opensearch/performanceanalyzer/rca/net/tasks/UnicastSubscriptionTxTask.java index 87cb2724c..febb32079 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/net/tasks/UnicastSubscriptionTxTask.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/net/tasks/UnicastSubscriptionTxTask.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.net.tasks; - import java.util.Map; import org.opensearch.performanceanalyzer.AppContext; import org.opensearch.performanceanalyzer.net.NetClient; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/FileGC.java b/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/FileGC.java index 74986cac3..d9144dc32 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/FileGC.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/FileGC.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.persistence; - import java.io.File; import java.io.IOException; import java.nio.file.Files; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/FileRotate.java b/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/FileRotate.java index 349574c27..29c4db8d2 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/FileRotate.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/FileRotate.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.persistence; - import java.io.IOException; import java.nio.file.FileAlreadyExistsException; import java.nio.file.Files; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/NetPersistor.java b/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/NetPersistor.java index 3a141a4fc..3505e3a88 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/NetPersistor.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/NetPersistor.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.persistence; - import java.util.ArrayList; import java.util.List; import java.util.concurrent.ArrayBlockingQueue; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/Persistable.java b/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/Persistable.java index 4fd1b7527..008bedd96 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/Persistable.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/Persistable.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.persistence; - import com.google.common.annotations.VisibleForTesting; import com.google.gson.JsonElement; import java.io.IOException; @@ -58,8 +57,11 @@ public interface Persistable { * @throws DataAccessException Thrown by the DB layer. */ @Nullable T read(Class clz) - throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, - InstantiationException, DataAccessException; + throws NoSuchMethodException, + IllegalAccessException, + InvocationTargetException, + InstantiationException, + DataAccessException; /** * This API reads all the rows from the table corresponding to the maximum value in the field @@ -78,8 +80,11 @@ public interface Persistable { * @throws DataAccessException Thrown by the DB layer. */ @Nullable List readAllForMaxField(Class clz, String fieldName, Class fieldClz) - throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, - InstantiationException, DataAccessException; + throws NoSuchMethodException, + IllegalAccessException, + InvocationTargetException, + InstantiationException, + DataAccessException; /** * Write data to the database. @@ -120,7 +125,10 @@ void write(Node node, T flowUnit) * @throws InvocationTargetException Invoking the getter or setter throws an exception. */ void write(@NonNull T object) - throws SQLException, IOException, IllegalAccessException, NoSuchMethodException, + throws SQLException, + IOException, + IllegalAccessException, + NoSuchMethodException, InvocationTargetException; void close() throws SQLException; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/PersistenceFactory.java b/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/PersistenceFactory.java index 4b8ca77b5..e00c4c0a3 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/PersistenceFactory.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/PersistenceFactory.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.persistence; - import java.io.IOException; import java.sql.SQLException; import java.util.Map; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/PersistorBase.java b/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/PersistorBase.java index ac7413536..2b05e1e2a 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/PersistorBase.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/PersistorBase.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.persistence; - import com.google.common.annotations.VisibleForTesting; import com.google.gson.JsonArray; import com.google.gson.JsonElement; @@ -199,7 +198,10 @@ public synchronized void write(Node node, T flow } public synchronized void write(T obj) - throws SQLException, IOException, IllegalAccessException, NoSuchMethodException, + throws SQLException, + IOException, + IllegalAccessException, + NoSuchMethodException, InvocationTargetException { Objects.requireNonNull(obj); rotateRegisterGarbageThenCreateNewDB(RotationType.TRY_ROTATE); @@ -225,7 +227,9 @@ public synchronized void write(T obj) } abstract void writeImpl(T obj) - throws IllegalAccessException, InvocationTargetException, NoSuchMethodException, + throws IllegalAccessException, + InvocationTargetException, + NoSuchMethodException, SQLException; private synchronized void rotateRegisterGarbageThenCreateNewDB(RotationType type) diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/PublisherEventsPersistor.java b/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/PublisherEventsPersistor.java index e1422c86f..b1e12e5d7 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/PublisherEventsPersistor.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/PublisherEventsPersistor.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.persistence; - import java.util.List; import java.util.Objects; import java.util.stream.Collectors; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/RefColumn.java b/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/RefColumn.java index 6c2f247d1..7b7f08c8f 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/RefColumn.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/RefColumn.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.persistence; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/SQLitePersistor.java b/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/SQLitePersistor.java index 88990de89..07841d4c8 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/SQLitePersistor.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/SQLitePersistor.java @@ -246,14 +246,19 @@ synchronized int insertRow(String tableName, List row) throws SQLExcepti @Override public synchronized @org.checkerframework.checker.nullness.qual.Nullable T read( Class clz) - throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, - InstantiationException, DataAccessException { + throws NoSuchMethodException, + IllegalAccessException, + InvocationTargetException, + InstantiationException, + DataAccessException { return read(clz, -1 /* To indicate this is the top level call */); } public synchronized @org.checkerframework.checker.nullness.qual.Nullable T read( Class clz, int rowId) - throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, + throws NoSuchMethodException, + IllegalAccessException, + InvocationTargetException, InstantiationException { String tableName = getTableNameFromClassName(clz); String primaryKeyCol = SQLiteQueryUtils.getPrimaryKeyColumnName(tableName); @@ -301,8 +306,11 @@ synchronized int insertRow(String tableName, List row) throws SQLExcepti @Override public synchronized @org.checkerframework.checker.nullness.qual.Nullable List readAllForMaxField(Class clz, String fieldName, Class fieldClz) - throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, - InstantiationException, DataAccessException { + throws NoSuchMethodException, + IllegalAccessException, + InvocationTargetException, + InstantiationException, + DataAccessException { String tableName = getTableNameFromClassName(clz); List recordsWithMaxFieldValue; Field field = DSL.field(fieldName, fieldClz); @@ -333,7 +341,9 @@ List readAllForMaxField(Class clz, String fieldName, Class fieldClz) public synchronized @org.checkerframework.checker.nullness.qual.Nullable T readFields( Class clz, Record record, String tableName) - throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, + throws NoSuchMethodException, + IllegalAccessException, + InvocationTargetException, InstantiationException { Map fieldNameToGetterSetterMap = @@ -434,8 +444,12 @@ List readAllForMaxField(Class clz, String fieldName, Class fieldClz) } synchronized void writeImpl(T obj) - throws IllegalStateException, IllegalArgumentException, InvocationTargetException, - NoSuchMethodException, SQLException, IllegalAccessException { + throws IllegalStateException, + IllegalArgumentException, + InvocationTargetException, + NoSuchMethodException, + SQLException, + IllegalAccessException { writeImplInner(obj); } @@ -633,7 +647,9 @@ private String getNoGetterSetterExist( private ColumnValuePair writeCollectionReferenceColumn( java.lang.reflect.Field field, Method getter, T obj) - throws InvocationTargetException, IllegalAccessException, SQLException, + throws InvocationTargetException, + IllegalAccessException, + SQLException, NoSuchMethodException { ColumnValuePair columnValuePair = new ColumnValuePair(); String columnName = NESTED_OBJECT_COLUMN_PREFIX + field.getName(); @@ -667,8 +683,11 @@ private ColumnValuePair writeCollectionReferenceColumn( } private int writeImplInner(T obj) - throws IllegalStateException, IllegalAccessException, InvocationTargetException, - SQLException, NoSuchMethodException { + throws IllegalStateException, + IllegalAccessException, + InvocationTargetException, + SQLException, + NoSuchMethodException { Class clz = obj.getClass(); String tableName = getTableNameFromClassName(clz); Table table = DSL.table(tableName); diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/ValueColumn.java b/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/ValueColumn.java index 0c706511d..b12507635 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/ValueColumn.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/ValueColumn.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.persistence; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/actions/PersistedAction.java b/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/actions/PersistedAction.java index baf9975c0..37bd71ca1 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/actions/PersistedAction.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/persistence/actions/PersistedAction.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.persistence.actions; - import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonParser; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/pyrometer/Api.java b/src/main/java/org/opensearch/performanceanalyzer/rca/pyrometer/Api.java index 6f2698279..9564e12ad 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/pyrometer/Api.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/pyrometer/Api.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.pyrometer; - import java.util.ArrayList; import java.util.HashMap; import java.util.List; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/response/RcaResponse.java b/src/main/java/org/opensearch/performanceanalyzer/rca/response/RcaResponse.java index fc0634d6d..72954df13 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/response/RcaResponse.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/response/RcaResponse.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.response; - import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.protobuf.GeneratedMessageV3; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/samplers/BatchMetricsEnabledSampler.java b/src/main/java/org/opensearch/performanceanalyzer/rca/samplers/BatchMetricsEnabledSampler.java index d2ebbcaab..977868e8c 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/samplers/BatchMetricsEnabledSampler.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/samplers/BatchMetricsEnabledSampler.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.samplers; - import java.util.Objects; import org.opensearch.performanceanalyzer.AppContext; import org.opensearch.performanceanalyzer.commons.stats.collectors.SampleAggregator; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/samplers/MetricsDBFileSampler.java b/src/main/java/org/opensearch/performanceanalyzer/rca/samplers/MetricsDBFileSampler.java index 3631386a2..ef252c2c6 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/samplers/MetricsDBFileSampler.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/samplers/MetricsDBFileSampler.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.samplers; - import java.io.IOException; import java.nio.file.DirectoryStream; import java.nio.file.FileSystems; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/samplers/RcaEnabledSampler.java b/src/main/java/org/opensearch/performanceanalyzer/rca/samplers/RcaEnabledSampler.java index fb7d5d4e9..a6790ec6a 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/samplers/RcaEnabledSampler.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/samplers/RcaEnabledSampler.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.samplers; - import java.util.Objects; import org.opensearch.performanceanalyzer.AppContext; import org.opensearch.performanceanalyzer.PerformanceAnalyzerApp; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/samplers/RcaStateSamplers.java b/src/main/java/org/opensearch/performanceanalyzer/rca/samplers/RcaStateSamplers.java index 710cbf4df..d819e30c0 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/samplers/RcaStateSamplers.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/samplers/RcaStateSamplers.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.samplers; - import org.opensearch.performanceanalyzer.AppContext; import org.opensearch.performanceanalyzer.commons.stats.emitters.ISampler; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/scheduler/FlowUnitOperationArgWrapper.java b/src/main/java/org/opensearch/performanceanalyzer/rca/scheduler/FlowUnitOperationArgWrapper.java index e4d595f68..8288cd964 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/scheduler/FlowUnitOperationArgWrapper.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/scheduler/FlowUnitOperationArgWrapper.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.scheduler; - import org.opensearch.performanceanalyzer.rca.framework.core.Node; import org.opensearch.performanceanalyzer.rca.framework.core.Queryable; import org.opensearch.performanceanalyzer.rca.net.WireHopper; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/scheduler/GraphNodeOperations.java b/src/main/java/org/opensearch/performanceanalyzer/rca/scheduler/GraphNodeOperations.java index 154ba2c87..a20ca71af 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/scheduler/GraphNodeOperations.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/scheduler/GraphNodeOperations.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.scheduler; - import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.opensearch.performanceanalyzer.commons.stats.ServiceMetrics; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/scheduler/RCAScheduler.java b/src/main/java/org/opensearch/performanceanalyzer/rca/scheduler/RCAScheduler.java index fbf631e95..14c8e2d05 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/scheduler/RCAScheduler.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/scheduler/RCAScheduler.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.scheduler; - import com.google.common.annotations.VisibleForTesting; import com.google.common.util.concurrent.ThreadFactoryBuilder; import java.sql.SQLException; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/scheduler/RCASchedulerTask.java b/src/main/java/org/opensearch/performanceanalyzer/rca/scheduler/RCASchedulerTask.java index fa397ae01..55d47c028 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/scheduler/RCASchedulerTask.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/scheduler/RCASchedulerTask.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.scheduler; - import com.google.common.annotations.VisibleForTesting; import java.util.ArrayList; import java.util.Arrays; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/scheduler/Tasklet.java b/src/main/java/org/opensearch/performanceanalyzer/rca/scheduler/Tasklet.java index 08ab2a9e1..fb1d94190 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/scheduler/Tasklet.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/scheduler/Tasklet.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.scheduler; - import com.google.common.annotations.VisibleForTesting; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/AnalysisGraphTest.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/AnalysisGraphTest.java index 491cd6b69..896c84109 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/AnalysisGraphTest.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/AnalysisGraphTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store; - import org.opensearch.performanceanalyzer.rca.framework.api.AnalysisGraph; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; import org.opensearch.performanceanalyzer.rca.framework.api.metrics.CPU_Utilization; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/OpenSearchAnalysisGraph.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/OpenSearchAnalysisGraph.java index 80763befb..550b3a41f 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/OpenSearchAnalysisGraph.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/OpenSearchAnalysisGraph.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store; - import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/collector/NodeConfigCache.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/collector/NodeConfigCache.java index 816240ad8..b808ad9c7 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/collector/NodeConfigCache.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/collector/NodeConfigCache.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.collector; - import com.google.common.cache.Cache; import com.google.common.cache.CacheBuilder; import java.util.concurrent.TimeUnit; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/collector/NodeConfigClusterCollector.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/collector/NodeConfigClusterCollector.java index 3970fdecb..717e8699a 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/collector/NodeConfigClusterCollector.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/collector/NodeConfigClusterCollector.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.collector; - import java.util.List; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/collector/NodeConfigCollector.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/collector/NodeConfigCollector.java index b0130d6e7..0fea935fd 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/collector/NodeConfigCollector.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/collector/NodeConfigCollector.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.collector; - import java.util.HashMap; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/AggregateMetric.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/AggregateMetric.java index 8b8532969..d4732fd84 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/AggregateMetric.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/AggregateMetric.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.metric; - import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/TemperatureMetricsBase.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/TemperatureMetricsBase.java index 758be760e..4d3cdda71 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/TemperatureMetricsBase.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/TemperatureMetricsBase.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.metric.temperature; - import java.util.Arrays; import java.util.List; import org.jooq.DSLContext; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/AvgCpuUtilByShardsMetricBasedTemperatureCalculator.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/AvgCpuUtilByShardsMetricBasedTemperatureCalculator.java index 9059514d6..69dcb8b85 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/AvgCpuUtilByShardsMetricBasedTemperatureCalculator.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/AvgCpuUtilByShardsMetricBasedTemperatureCalculator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.metric.temperature.byShard; - import org.opensearch.performanceanalyzer.rca.framework.core.temperature.TemperatureDimension; import org.opensearch.performanceanalyzer.rca.store.metric.temperature.byShard.calculators.AvgShardBasedTemperatureCalculator; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/CpuUtilByShardsMetricBasedTemperatureCalculator.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/CpuUtilByShardsMetricBasedTemperatureCalculator.java index 7cbaf5a46..2265fa3c4 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/CpuUtilByShardsMetricBasedTemperatureCalculator.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/CpuUtilByShardsMetricBasedTemperatureCalculator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.metric.temperature.byShard; - import org.opensearch.performanceanalyzer.rca.framework.core.temperature.TemperatureDimension; import org.opensearch.performanceanalyzer.rca.store.metric.temperature.byShard.calculators.ShardBasedTemperatureCalculator; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/HeapAllocRateByShardAvgTemperatureCalculator.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/HeapAllocRateByShardAvgTemperatureCalculator.java index d0b2be08d..6739965e9 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/HeapAllocRateByShardAvgTemperatureCalculator.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/HeapAllocRateByShardAvgTemperatureCalculator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.metric.temperature.byShard; - import org.opensearch.performanceanalyzer.rca.framework.core.temperature.TemperatureDimension; import org.opensearch.performanceanalyzer.rca.store.metric.temperature.byShard.calculators.AvgShardBasedTemperatureCalculator; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/HeapAllocRateByShardTemperatureCalculator.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/HeapAllocRateByShardTemperatureCalculator.java index e662dc404..fb1bd29a2 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/HeapAllocRateByShardTemperatureCalculator.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/HeapAllocRateByShardTemperatureCalculator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.metric.temperature.byShard; - import org.opensearch.performanceanalyzer.rca.framework.core.temperature.TemperatureDimension; import org.opensearch.performanceanalyzer.rca.store.metric.temperature.byShard.calculators.ShardBasedTemperatureCalculator; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/ShardSizeAvgTemperatureCalculator.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/ShardSizeAvgTemperatureCalculator.java index 73bdea179..8621f6908 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/ShardSizeAvgTemperatureCalculator.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/ShardSizeAvgTemperatureCalculator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.metric.temperature.byShard; - import org.opensearch.performanceanalyzer.rca.framework.core.temperature.TemperatureDimension; import org.opensearch.performanceanalyzer.rca.store.metric.temperature.byShard.calculators.AvgShardBasedTemperatureCalculator; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/ShardSizeMetricBasedTemperatureCalculator.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/ShardSizeMetricBasedTemperatureCalculator.java index 4ff099640..1a8ad6218 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/ShardSizeMetricBasedTemperatureCalculator.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/ShardSizeMetricBasedTemperatureCalculator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.metric.temperature.byShard; - import org.opensearch.performanceanalyzer.rca.framework.core.temperature.TemperatureDimension; import org.opensearch.performanceanalyzer.rca.store.metric.temperature.byShard.calculators.ShardBasedTemperatureCalculator; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/calculators/AvgShardBasedTemperatureCalculator.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/calculators/AvgShardBasedTemperatureCalculator.java index 071177a13..1f8e95516 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/calculators/AvgShardBasedTemperatureCalculator.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/calculators/AvgShardBasedTemperatureCalculator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.metric.temperature.byShard.calculators; - import java.util.List; import org.jooq.DSLContext; import org.jooq.Field; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/calculators/ShardBasedTemperatureCalculator.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/calculators/ShardBasedTemperatureCalculator.java index d5c217199..113befb55 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/calculators/ShardBasedTemperatureCalculator.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/calculators/ShardBasedTemperatureCalculator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.metric.temperature.byShard.calculators; - import java.util.List; import org.jooq.DSLContext; import org.jooq.Field; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/capacity/HeapAllocRateTotalTemperatureCalculator.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/capacity/HeapAllocRateTotalTemperatureCalculator.java index 0511e3f19..4691fa56c 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/capacity/HeapAllocRateTotalTemperatureCalculator.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/capacity/HeapAllocRateTotalTemperatureCalculator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.metric.temperature.capacity; - import org.opensearch.performanceanalyzer.rca.framework.core.temperature.TemperatureDimension; import org.opensearch.performanceanalyzer.rca.store.metric.temperature.capacity.calculators.TotalNodeTemperatureCalculator; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/capacity/ShardTotalDiskUsageTemperatureCalculator.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/capacity/ShardTotalDiskUsageTemperatureCalculator.java index b7657c60e..d906db78b 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/capacity/ShardTotalDiskUsageTemperatureCalculator.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/capacity/ShardTotalDiskUsageTemperatureCalculator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.metric.temperature.capacity; - import org.opensearch.performanceanalyzer.rca.framework.core.temperature.TemperatureDimension; import org.opensearch.performanceanalyzer.rca.store.metric.temperature.capacity.calculators.TotalNodeTemperatureCalculator; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/capacity/TotalCpuUtilForTotalNodeMetric.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/capacity/TotalCpuUtilForTotalNodeMetric.java index 375eb77cc..f70d509f7 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/capacity/TotalCpuUtilForTotalNodeMetric.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/capacity/TotalCpuUtilForTotalNodeMetric.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.metric.temperature.capacity; - import org.opensearch.performanceanalyzer.rca.framework.core.temperature.TemperatureDimension; import org.opensearch.performanceanalyzer.rca.store.metric.temperature.capacity.calculators.TotalNodeTemperatureCalculator; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/capacity/calculators/TotalNodeTemperatureCalculator.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/capacity/calculators/TotalNodeTemperatureCalculator.java index f1e8ddeef..284f34672 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/capacity/calculators/TotalNodeTemperatureCalculator.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/capacity/calculators/TotalNodeTemperatureCalculator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.metric.temperature.capacity.calculators; - import java.util.List; import org.jooq.DSLContext; import org.jooq.Field; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/shardIndependent/DiskUsageShardIndependentTemperatureCalculator.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/shardIndependent/DiskUsageShardIndependentTemperatureCalculator.java index d6811f5c6..ec78fed4b 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/shardIndependent/DiskUsageShardIndependentTemperatureCalculator.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/shardIndependent/DiskUsageShardIndependentTemperatureCalculator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.metric.temperature.shardIndependent; - import org.opensearch.performanceanalyzer.rca.framework.core.temperature.TemperatureDimension; import org.opensearch.performanceanalyzer.rca.store.metric.temperature.shardIndependent.calculators.ShardIndependentTemperatureCalculator; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/shardIndependent/HeapAllocRateShardIndependentTemperatureCalculator.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/shardIndependent/HeapAllocRateShardIndependentTemperatureCalculator.java index 7adc9dd78..c81c87a88 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/shardIndependent/HeapAllocRateShardIndependentTemperatureCalculator.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/shardIndependent/HeapAllocRateShardIndependentTemperatureCalculator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.metric.temperature.shardIndependent; - import org.opensearch.performanceanalyzer.rca.framework.core.temperature.TemperatureDimension; import org.opensearch.performanceanalyzer.rca.store.metric.temperature.shardIndependent.calculators.ShardIndependentTemperatureCalculator; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/shardIndependent/ShardIndependentTemperatureCalculatorCpuUtilMetric.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/shardIndependent/ShardIndependentTemperatureCalculatorCpuUtilMetric.java index 4f5c4106a..ac6c8ce95 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/shardIndependent/ShardIndependentTemperatureCalculatorCpuUtilMetric.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/shardIndependent/ShardIndependentTemperatureCalculatorCpuUtilMetric.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.metric.temperature.shardIndependent; - import org.opensearch.performanceanalyzer.rca.framework.core.temperature.TemperatureDimension; import org.opensearch.performanceanalyzer.rca.store.metric.temperature.shardIndependent.calculators.ShardIndependentTemperatureCalculator; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/shardIndependent/calculators/ShardIndependentTemperatureCalculator.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/shardIndependent/calculators/ShardIndependentTemperatureCalculator.java index 274e0b383..a89804740 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/shardIndependent/calculators/ShardIndependentTemperatureCalculator.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/shardIndependent/calculators/ShardIndependentTemperatureCalculator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.metric.temperature.shardIndependent.calculators; - import java.util.List; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/HighHeapUsageClusterRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/HighHeapUsageClusterRca.java index 883f43c2f..27fad79c8 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/HighHeapUsageClusterRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/HighHeapUsageClusterRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca; - import com.google.common.cache.CacheBuilder; import com.google.common.cache.CacheLoader; import com.google.common.cache.LoadingCache; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/HotNodeClusterRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/HotNodeClusterRca.java index 963e90512..6e3e62c24 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/HotNodeClusterRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/HotNodeClusterRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca; - import com.google.common.collect.HashBasedTable; import com.google.common.collect.ImmutableList; import com.google.common.collect.Table; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/HotNodeRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/HotNodeRca.java index c74706512..2f23434a4 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/HotNodeRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/HotNodeRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca; - import java.util.ArrayList; import java.util.List; import org.apache.logging.log4j.LogManager; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/OldGenRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/OldGenRca.java index fc3558339..71ff94197 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/OldGenRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/OldGenRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca; - import java.util.List; import java.util.concurrent.TimeUnit; import org.apache.logging.log4j.LogManager; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/admissioncontrol/AdmissionControlClusterRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/admissioncontrol/AdmissionControlClusterRca.java index 9249e8349..84dc5350b 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/admissioncontrol/AdmissionControlClusterRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/admissioncontrol/AdmissionControlClusterRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.admissioncontrol; - import org.opensearch.performanceanalyzer.rca.framework.api.Rca; import org.opensearch.performanceanalyzer.rca.framework.api.flow_units.ResourceFlowUnit; import org.opensearch.performanceanalyzer.rca.framework.api.summaries.HotNodeSummary; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/admissioncontrol/heap/AdmissionControlByHeap.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/admissioncontrol/heap/AdmissionControlByHeap.java index a41ba2349..02ede4465 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/admissioncontrol/heap/AdmissionControlByHeap.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/admissioncontrol/heap/AdmissionControlByHeap.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.admissioncontrol.heap; - import org.opensearch.performanceanalyzer.rca.framework.api.flow_units.ResourceFlowUnit; import org.opensearch.performanceanalyzer.rca.framework.api.summaries.HotNodeSummary; import org.opensearch.performanceanalyzer.rca.framework.util.InstanceDetails; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/admissioncontrol/heap/AdmissionControlByHeapFactory.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/admissioncontrol/heap/AdmissionControlByHeapFactory.java index 85ff2ad0c..e23f0654b 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/admissioncontrol/heap/AdmissionControlByHeapFactory.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/admissioncontrol/heap/AdmissionControlByHeapFactory.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.admissioncontrol.heap; - import java.util.HashMap; import java.util.Map; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/cache/CacheUtil.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/cache/CacheUtil.java index 2618a5608..d48b568f9 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/cache/CacheUtil.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/cache/CacheUtil.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.cache; - import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.jooq.Record; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/cluster/BaseClusterRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/cluster/BaseClusterRca.java index 7d334f5a6..5fab93f91 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/cluster/BaseClusterRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/cluster/BaseClusterRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.cluster; - import com.google.common.annotations.VisibleForTesting; import com.google.common.collect.HashBasedTable; import com.google.common.collect.Table; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/cluster/FieldDataCacheClusterRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/cluster/FieldDataCacheClusterRca.java index b0089d0ad..a8e71a160 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/cluster/FieldDataCacheClusterRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/cluster/FieldDataCacheClusterRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.cluster; - import org.opensearch.performanceanalyzer.rca.framework.api.Rca; import org.opensearch.performanceanalyzer.rca.framework.api.flow_units.ResourceFlowUnit; import org.opensearch.performanceanalyzer.rca.framework.api.summaries.HotNodeSummary; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/cluster/NodeKey.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/cluster/NodeKey.java index 0b723cf5a..a6ea98bbb 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/cluster/NodeKey.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/cluster/NodeKey.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.cluster; - import org.apache.commons.lang3.builder.HashCodeBuilder; import org.opensearch.performanceanalyzer.rca.framework.util.InstanceDetails; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/cluster/QueueRejectionClusterRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/cluster/QueueRejectionClusterRca.java index 801468796..d33b60fa7 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/cluster/QueueRejectionClusterRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/cluster/QueueRejectionClusterRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.cluster; - import org.opensearch.performanceanalyzer.rca.framework.api.Rca; import org.opensearch.performanceanalyzer.rca.framework.api.flow_units.ResourceFlowUnit; import org.opensearch.performanceanalyzer.rca.framework.api.summaries.HotNodeSummary; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/cluster/ShardRequestCacheClusterRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/cluster/ShardRequestCacheClusterRca.java index e5edf8609..057ddeb73 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/cluster/ShardRequestCacheClusterRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/cluster/ShardRequestCacheClusterRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.cluster; - import org.opensearch.performanceanalyzer.rca.framework.api.Rca; import org.opensearch.performanceanalyzer.rca.framework.api.flow_units.ResourceFlowUnit; import org.opensearch.performanceanalyzer.rca.framework.api.summaries.HotNodeSummary; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hot_node/GenericResourceRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hot_node/GenericResourceRca.java index fc2bc36fd..494d417f3 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hot_node/GenericResourceRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hot_node/GenericResourceRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.hot_node; - import java.time.Clock; import java.util.List; import java.util.concurrent.TimeUnit; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hot_node/HighCpuRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hot_node/HighCpuRca.java index 9959883d9..60daae0f9 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hot_node/HighCpuRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hot_node/HighCpuRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.hot_node; - import org.opensearch.performanceanalyzer.rca.framework.api.Metric; import org.opensearch.performanceanalyzer.rca.framework.api.summaries.ResourceUtil; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hot_node/ThreadAnalysis.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hot_node/ThreadAnalysis.java index 65295ffed..bcd8f7bc2 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hot_node/ThreadAnalysis.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hot_node/ThreadAnalysis.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.hot_node; - import java.util.function.Predicate; import org.opensearch.performanceanalyzer.rca.framework.metrics.RcaRuntimeMetrics; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hot_node/ThreadMetricsSlidingWindow.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hot_node/ThreadMetricsSlidingWindow.java index 78015a418..da19d73f4 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hot_node/ThreadMetricsSlidingWindow.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hot_node/ThreadMetricsSlidingWindow.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.hot_node; - import java.util.Collections; import java.util.Deque; import java.util.HashMap; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hotheap/HighHeapUsageOldGenRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hotheap/HighHeapUsageOldGenRca.java index f8416260e..a947d737c 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hotheap/HighHeapUsageOldGenRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hotheap/HighHeapUsageOldGenRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.hotheap; - import java.time.Clock; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hotheap/HighHeapUsageYoungGenRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hotheap/HighHeapUsageYoungGenRca.java index 1ed9656a4..af45cb9cb 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hotheap/HighHeapUsageYoungGenRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hotheap/HighHeapUsageYoungGenRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.hotheap; - import java.time.Clock; import java.util.List; import java.util.concurrent.TimeUnit; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hotheap/NodeStatAggregator.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hotheap/NodeStatAggregator.java index bda51394c..2af0043e3 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hotheap/NodeStatAggregator.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hotheap/NodeStatAggregator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.hotheap; - import java.util.HashMap; import java.util.Iterator; import java.util.concurrent.TimeUnit; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hotshard/HotShardClusterRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hotshard/HotShardClusterRca.java index 143cb0e3c..7ba0b6e7d 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hotshard/HotShardClusterRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hotshard/HotShardClusterRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.hotshard; - import com.google.common.collect.HashBasedTable; import com.google.common.collect.Table; import java.util.ArrayList; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hotshard/HotShardRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hotshard/HotShardRca.java index 8d17d2ae3..5f1b90670 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hotshard/HotShardRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hotshard/HotShardRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.hotshard; - import com.google.common.collect.MinMaxPriorityQueue; import java.time.Clock; import java.util.ArrayList; @@ -234,6 +233,7 @@ public ResourceFlowUnit operate() { return new ResourceFlowUnit<>(this.clock.millis()); } } + /** * read threshold values from rca.conf * @@ -270,6 +270,7 @@ public NamedSummarizedWindow(SummarizedWindow summarizedWindow, IndexShardKey in this.indexShardKey = indexShardKey; } } + /* Comparators for SummarizedWindow, comparing by different metrics. This way already existing structures can be recycled. */ class SummarizedWindowCPUComparator implements Comparator { diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hotshard/IndexShardKey.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hotshard/IndexShardKey.java index 874cbe8da..f0b8228ee 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hotshard/IndexShardKey.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/hotshard/IndexShardKey.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.hotshard; - import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/jvmsizing/HighOldGenOccupancyRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/jvmsizing/HighOldGenOccupancyRca.java index 39d09fbd8..57f12e26e 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/jvmsizing/HighOldGenOccupancyRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/jvmsizing/HighOldGenOccupancyRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.jvmsizing; - import java.util.concurrent.TimeUnit; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/jvmsizing/LargeHeapClusterRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/jvmsizing/LargeHeapClusterRca.java index 68dc1383a..662aeb73b 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/jvmsizing/LargeHeapClusterRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/jvmsizing/LargeHeapClusterRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.jvmsizing; - import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/jvmsizing/OldGenContendedRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/jvmsizing/OldGenContendedRca.java index 28f2a8c0a..aeb667076 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/jvmsizing/OldGenContendedRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/jvmsizing/OldGenContendedRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.jvmsizing; - import java.util.List; import java.util.function.Function; import java.util.stream.Collectors; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/jvmsizing/OldGenReclamationRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/jvmsizing/OldGenReclamationRca.java index 23748c579..182b8f180 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/jvmsizing/OldGenReclamationRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/jvmsizing/OldGenReclamationRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.jvmsizing; - import java.util.concurrent.TimeUnit; import org.opensearch.performanceanalyzer.commons.stats.ServiceMetrics; import org.opensearch.performanceanalyzer.rca.framework.api.Metric; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/temperature/ClusterTemperatureRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/temperature/ClusterTemperatureRca.java index eca82bc0b..54de67ff9 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/temperature/ClusterTemperatureRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/temperature/ClusterTemperatureRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.temperature; - import java.util.HashMap; import java.util.List; import java.util.Map; @@ -40,7 +39,9 @@ public void generateFlowUnitListFromWire(FlowUnitOperationArgWrapper args) { name() + "'s generateFlowUnitListFromWire() should not " + "be required."); } - /** @return */ + /** + * @return + */ @Override public ClusterTemperatureFlowUnit operate() { List flowUnitsAcrossNodes = diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/temperature/DimensionalTemperatureCalculator.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/temperature/DimensionalTemperatureCalculator.java index f7abdaf91..c361815dc 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/temperature/DimensionalTemperatureCalculator.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/temperature/DimensionalTemperatureCalculator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.temperature; - import java.util.ArrayList; import java.util.List; import java.util.concurrent.atomic.AtomicBoolean; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/temperature/NodeTemperatureRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/temperature/NodeTemperatureRca.java index bb0d0db69..285e6f954 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/temperature/NodeTemperatureRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/temperature/NodeTemperatureRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.temperature; - import java.util.ArrayList; import java.util.List; import java.util.concurrent.atomic.AtomicBoolean; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/temperature/dimension/CpuUtilDimensionTemperatureRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/temperature/dimension/CpuUtilDimensionTemperatureRca.java index 1305ae110..0781c5bf0 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/temperature/dimension/CpuUtilDimensionTemperatureRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/temperature/dimension/CpuUtilDimensionTemperatureRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.temperature.dimension; - import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.opensearch.performanceanalyzer.rca.framework.api.Rca; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/temperature/dimension/HeapAllocRateTemperatureRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/temperature/dimension/HeapAllocRateTemperatureRca.java index 5fdffa59c..a3466ee68 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/temperature/dimension/HeapAllocRateTemperatureRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/temperature/dimension/HeapAllocRateTemperatureRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.temperature.dimension; - import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.opensearch.performanceanalyzer.rca.framework.api.Rca; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/temperature/dimension/ShardSizeDimensionTemperatureRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/temperature/dimension/ShardSizeDimensionTemperatureRca.java index 2424877c7..93248bf36 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/temperature/dimension/ShardSizeDimensionTemperatureRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/temperature/dimension/ShardSizeDimensionTemperatureRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.temperature.dimension; - import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.opensearch.performanceanalyzer.rca.framework.api.Rca; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/threadpool/QueueRejectionRca.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/threadpool/QueueRejectionRca.java index e374db3ab..f16a60dae 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/threadpool/QueueRejectionRca.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/threadpool/QueueRejectionRca.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.threadpool; - import com.google.common.annotations.VisibleForTesting; import java.time.Clock; import java.util.ArrayList; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/util/NodeConfigCacheReaderUtil.java b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/util/NodeConfigCacheReaderUtil.java index b83ff0941..b9873970b 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/util/NodeConfigCacheReaderUtil.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/store/rca/util/NodeConfigCacheReaderUtil.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.util; - import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.opensearch.performanceanalyzer.grpc.MetricEnum; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/util/ClusterUtils.java b/src/main/java/org/opensearch/performanceanalyzer/rca/util/ClusterUtils.java index 48dd6743e..3398fa0f7 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/util/ClusterUtils.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/util/ClusterUtils.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.util; - import java.util.List; import org.opensearch.performanceanalyzer.rca.framework.util.InstanceDetails; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rca/util/MemInfoParser.java b/src/main/java/org/opensearch/performanceanalyzer/rca/util/MemInfoParser.java index f78a0308e..63cb74803 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rca/util/MemInfoParser.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rca/util/MemInfoParser.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.util; - import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/AdmissionControlProcessor.java b/src/main/java/org/opensearch/performanceanalyzer/reader/AdmissionControlProcessor.java index 73ec87878..ea70a9759 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/AdmissionControlProcessor.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/AdmissionControlProcessor.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import java.sql.Connection; import java.util.Arrays; import java.util.Map; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/AdmissionControlSnapshot.java b/src/main/java/org/opensearch/performanceanalyzer/reader/AdmissionControlSnapshot.java index 403580f0c..db75f2f66 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/AdmissionControlSnapshot.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/AdmissionControlSnapshot.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import java.sql.Connection; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/ClusterDetailsEventProcessor.java b/src/main/java/org/opensearch/performanceanalyzer/reader/ClusterDetailsEventProcessor.java index 4fa087fa3..24c8eea12 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/ClusterDetailsEventProcessor.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/ClusterDetailsEventProcessor.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import com.google.common.collect.ImmutableList; import java.util.ArrayList; import java.util.Collections; @@ -28,6 +27,7 @@ public class ClusterDetailsEventProcessor implements EventProcessor { private static final Logger LOG = LogManager.getLogger(ClusterDetailsEventProcessor.class); + /** keep a volatile immutable list to make the read/write to this list thread safe. */ private volatile ImmutableList nodesDetails = null; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/ClusterManagerEventMetricsSnapshot.java b/src/main/java/org/opensearch/performanceanalyzer/reader/ClusterManagerEventMetricsSnapshot.java index f84e6a7e9..331663a7c 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/ClusterManagerEventMetricsSnapshot.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/ClusterManagerEventMetricsSnapshot.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import java.sql.Connection; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/ClusterManagerMetricsEventProcessor.java b/src/main/java/org/opensearch/performanceanalyzer/reader/ClusterManagerMetricsEventProcessor.java index 30516fe96..f1a76c620 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/ClusterManagerMetricsEventProcessor.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/ClusterManagerMetricsEventProcessor.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import java.io.File; import java.sql.Connection; import java.util.Map; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/ClusterManagerThrottlingMetricsEventProcessor.java b/src/main/java/org/opensearch/performanceanalyzer/reader/ClusterManagerThrottlingMetricsEventProcessor.java index c8f814607..b670bf87b 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/ClusterManagerThrottlingMetricsEventProcessor.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/ClusterManagerThrottlingMetricsEventProcessor.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/ClusterManagerThrottlingMetricsSnapshot.java b/src/main/java/org/opensearch/performanceanalyzer/reader/ClusterManagerThrottlingMetricsSnapshot.java index a88efc0c3..4fea2e899 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/ClusterManagerThrottlingMetricsSnapshot.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/ClusterManagerThrottlingMetricsSnapshot.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import com.google.common.annotations.VisibleForTesting; import java.sql.Connection; import java.util.ArrayList; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/FaultDetectionMetricsProcessor.java b/src/main/java/org/opensearch/performanceanalyzer/reader/FaultDetectionMetricsProcessor.java index 587b7646b..3af5bce79 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/FaultDetectionMetricsProcessor.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/FaultDetectionMetricsProcessor.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import java.io.File; import java.sql.Connection; import java.util.Map; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/FaultDetectionMetricsSnapshot.java b/src/main/java/org/opensearch/performanceanalyzer/reader/FaultDetectionMetricsSnapshot.java index eca91187f..5d41a107c 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/FaultDetectionMetricsSnapshot.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/FaultDetectionMetricsSnapshot.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import com.google.common.annotations.VisibleForTesting; import java.sql.Connection; import java.util.ArrayList; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/FileHandler.java b/src/main/java/org/opensearch/performanceanalyzer/reader/FileHandler.java index 7ccd629bb..8ec5dadf9 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/FileHandler.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/FileHandler.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import com.google.common.annotations.VisibleForTesting; import java.io.File; import java.io.IOException; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/GarbageCollectorInfoProcessor.java b/src/main/java/org/opensearch/performanceanalyzer/reader/GarbageCollectorInfoProcessor.java index 9a0159197..7dacfa5aa 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/GarbageCollectorInfoProcessor.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/GarbageCollectorInfoProcessor.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import java.sql.Connection; import java.util.Map; import java.util.NavigableMap; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/GarbageCollectorInfoSnapshot.java b/src/main/java/org/opensearch/performanceanalyzer/reader/GarbageCollectorInfoSnapshot.java index 3ec4ae09f..935b5c4e1 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/GarbageCollectorInfoSnapshot.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/GarbageCollectorInfoSnapshot.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import java.sql.Connection; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/HttpRequestEventProcessor.java b/src/main/java/org/opensearch/performanceanalyzer/reader/HttpRequestEventProcessor.java index b5adbecd7..2ae0c3b6f 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/HttpRequestEventProcessor.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/HttpRequestEventProcessor.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import java.io.File; import java.sql.Connection; import java.util.Map; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/HttpRequestMetricsSnapshot.java b/src/main/java/org/opensearch/performanceanalyzer/reader/HttpRequestMetricsSnapshot.java index 0abb30335..2cd247fa4 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/HttpRequestMetricsSnapshot.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/HttpRequestMetricsSnapshot.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import java.sql.Connection; import java.util.ArrayList; import java.util.HashMap; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/MemoryDBSnapshot.java b/src/main/java/org/opensearch/performanceanalyzer/reader/MemoryDBSnapshot.java index 4dfb11397..b1a1e7ae6 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/MemoryDBSnapshot.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/MemoryDBSnapshot.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import java.sql.Connection; import java.util.ArrayList; import java.util.Collection; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/MetricProperties.java b/src/main/java/org/opensearch/performanceanalyzer/reader/MetricProperties.java index 9452a3eb3..1ffa625fd 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/MetricProperties.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/MetricProperties.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import com.fasterxml.jackson.core.JsonProcessingException; import com.google.common.annotations.VisibleForTesting; import java.io.BufferedReader; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/MetricPropertiesConfig.java b/src/main/java/org/opensearch/performanceanalyzer/reader/MetricPropertiesConfig.java index 62f17f8e1..2cb727ef6 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/MetricPropertiesConfig.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/MetricPropertiesConfig.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import com.google.common.annotations.VisibleForTesting; import java.io.File; import java.util.ArrayList; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/MetricsEmitter.java b/src/main/java/org/opensearch/performanceanalyzer/reader/MetricsEmitter.java index 5a225a0ba..f7f2b2664 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/MetricsEmitter.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/MetricsEmitter.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import java.util.ArrayList; import java.util.List; import java.util.Map; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/NodeMetricsEventProcessor.java b/src/main/java/org/opensearch/performanceanalyzer/reader/NodeMetricsEventProcessor.java index ebbd51810..60dad3d45 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/NodeMetricsEventProcessor.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/NodeMetricsEventProcessor.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import com.fasterxml.jackson.core.JsonProcessingException; import java.io.File; import java.io.IOException; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/OSEventProcessor.java b/src/main/java/org/opensearch/performanceanalyzer/reader/OSEventProcessor.java index 545c7e15f..d2497c556 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/OSEventProcessor.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/OSEventProcessor.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import java.io.File; import java.sql.Connection; import java.util.ArrayList; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/OSMetricsSnapshot.java b/src/main/java/org/opensearch/performanceanalyzer/reader/OSMetricsSnapshot.java index fd01fad51..b5c645665 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/OSMetricsSnapshot.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/OSMetricsSnapshot.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import java.sql.Connection; import java.util.ArrayList; import java.util.HashMap; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/ReaderMetricsProcessor.java b/src/main/java/org/opensearch/performanceanalyzer/reader/ReaderMetricsProcessor.java index 512c52f6d..9fa64ec6e 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/ReaderMetricsProcessor.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/ReaderMetricsProcessor.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import com.google.common.annotations.VisibleForTesting; import java.io.File; import java.io.IOException; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/RequestEventProcessor.java b/src/main/java/org/opensearch/performanceanalyzer/reader/RequestEventProcessor.java index 589824997..20b44b83e 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/RequestEventProcessor.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/RequestEventProcessor.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import java.io.File; import java.sql.Connection; import java.util.Map; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/ShardRequestMetricsSnapshot.java b/src/main/java/org/opensearch/performanceanalyzer/reader/ShardRequestMetricsSnapshot.java index 334a5a9ca..567b1a170 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/ShardRequestMetricsSnapshot.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/ShardRequestMetricsSnapshot.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import java.sql.Connection; import java.util.ArrayList; import java.util.Arrays; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/ShardStateMetricsProcessor.java b/src/main/java/org/opensearch/performanceanalyzer/reader/ShardStateMetricsProcessor.java index afe28c5d3..0e500cb4c 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/ShardStateMetricsProcessor.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/ShardStateMetricsProcessor.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; diff --git a/src/main/java/org/opensearch/performanceanalyzer/reader/ShardStateMetricsSnapshot.java b/src/main/java/org/opensearch/performanceanalyzer/reader/ShardStateMetricsSnapshot.java index 7671960c7..761dcfe56 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/reader/ShardStateMetricsSnapshot.java +++ b/src/main/java/org/opensearch/performanceanalyzer/reader/ShardStateMetricsSnapshot.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import com.google.common.annotations.VisibleForTesting; import java.sql.Connection; import java.util.ArrayList; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rest/MetricsHandler.java b/src/main/java/org/opensearch/performanceanalyzer/rest/MetricsHandler.java index ffa32474e..8c050c324 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rest/MetricsHandler.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rest/MetricsHandler.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rest; - import java.util.HashMap; import java.util.Map; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rest/QueryActionRequestHandler.java b/src/main/java/org/opensearch/performanceanalyzer/rest/QueryActionRequestHandler.java index db171ec1e..58900f4a6 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rest/QueryActionRequestHandler.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rest/QueryActionRequestHandler.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rest; - import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rest/QueryBatchRequestHandler.java b/src/main/java/org/opensearch/performanceanalyzer/rest/QueryBatchRequestHandler.java index aa0459ff9..76a9891e3 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rest/QueryBatchRequestHandler.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rest/QueryBatchRequestHandler.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rest; - import com.google.common.annotations.VisibleForTesting; import com.sun.net.httpserver.HttpExchange; import com.sun.net.httpserver.HttpHandler; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rest/QueryMetricsRequestHandler.java b/src/main/java/org/opensearch/performanceanalyzer/rest/QueryMetricsRequestHandler.java index 85190b397..2312f27a8 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rest/QueryMetricsRequestHandler.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rest/QueryMetricsRequestHandler.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rest; - import com.sun.net.httpserver.HttpExchange; import com.sun.net.httpserver.HttpHandler; import io.grpc.stub.StreamObserver; diff --git a/src/main/java/org/opensearch/performanceanalyzer/rest/QueryRcaRequestHandler.java b/src/main/java/org/opensearch/performanceanalyzer/rest/QueryRcaRequestHandler.java index 5bd23c24d..8e339df3a 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/rest/QueryRcaRequestHandler.java +++ b/src/main/java/org/opensearch/performanceanalyzer/rest/QueryRcaRequestHandler.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rest; - import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; diff --git a/src/main/java/org/opensearch/performanceanalyzer/threads/exceptions/PAThreadException.java b/src/main/java/org/opensearch/performanceanalyzer/threads/exceptions/PAThreadException.java index 47a74d26a..8d974f3cb 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/threads/exceptions/PAThreadException.java +++ b/src/main/java/org/opensearch/performanceanalyzer/threads/exceptions/PAThreadException.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.threads.exceptions; - import org.opensearch.performanceanalyzer.PerformanceAnalyzerThreads; import org.opensearch.performanceanalyzer.commons.stats.metrics.StatExceptionCode; diff --git a/src/main/java/org/opensearch/performanceanalyzer/util/SuppressFBWarnings.java b/src/main/java/org/opensearch/performanceanalyzer/util/SuppressFBWarnings.java index 04ef62bad..1bb23a52f 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/util/SuppressFBWarnings.java +++ b/src/main/java/org/opensearch/performanceanalyzer/util/SuppressFBWarnings.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.util; - import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/org/opensearch/performanceanalyzer/util/range/Range.java b/src/main/java/org/opensearch/performanceanalyzer/util/range/Range.java index 9e8087fb4..f34fa388b 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/util/range/Range.java +++ b/src/main/java/org/opensearch/performanceanalyzer/util/range/Range.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.util.range; - import java.util.Objects; public class Range { diff --git a/src/main/java/org/opensearch/performanceanalyzer/util/range/RangeConfiguration.java b/src/main/java/org/opensearch/performanceanalyzer/util/range/RangeConfiguration.java index 489ae5833..491dfae8e 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/util/range/RangeConfiguration.java +++ b/src/main/java/org/opensearch/performanceanalyzer/util/range/RangeConfiguration.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.util.range; - import java.util.Collection; public interface RangeConfiguration { diff --git a/src/main/java/org/opensearch/performanceanalyzer/util/range/RequestSizeHeapRangeConfiguration.java b/src/main/java/org/opensearch/performanceanalyzer/util/range/RequestSizeHeapRangeConfiguration.java index 5e2bd8869..a449d46b2 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/util/range/RequestSizeHeapRangeConfiguration.java +++ b/src/main/java/org/opensearch/performanceanalyzer/util/range/RequestSizeHeapRangeConfiguration.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.util.range; - import java.util.Arrays; import java.util.Collection; import java.util.Collections; diff --git a/src/test/java/org/opensearch/performanceanalyzer/AbstractTests.java b/src/test/java/org/opensearch/performanceanalyzer/AbstractTests.java index 37e16c4a5..501ba7483 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/AbstractTests.java +++ b/src/test/java/org/opensearch/performanceanalyzer/AbstractTests.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer; - import java.io.File; import org.apache.logging.log4j.Level; import org.apache.logging.log4j.core.Filter; diff --git a/src/test/java/org/opensearch/performanceanalyzer/CustomMetricsLocationTestBase.java b/src/test/java/org/opensearch/performanceanalyzer/CustomMetricsLocationTestBase.java index d14d7931a..3664c1806 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/CustomMetricsLocationTestBase.java +++ b/src/test/java/org/opensearch/performanceanalyzer/CustomMetricsLocationTestBase.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer; - import java.io.File; import java.nio.file.Files; import java.nio.file.Path; diff --git a/src/test/java/org/opensearch/performanceanalyzer/PerformanceAnalyzerWebServerTest.java b/src/test/java/org/opensearch/performanceanalyzer/PerformanceAnalyzerWebServerTest.java index 5d283f02e..945c78b9d 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/PerformanceAnalyzerWebServerTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/PerformanceAnalyzerWebServerTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer; - import com.sun.net.httpserver.HttpServer; import io.netty.handler.codec.http.HttpResponseStatus; import java.io.BufferedReader; diff --git a/src/test/java/org/opensearch/performanceanalyzer/collections/TimeExpiringSetTest.java b/src/test/java/org/opensearch/performanceanalyzer/collections/TimeExpiringSetTest.java index b51a35f70..a5b849f59 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/collections/TimeExpiringSetTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/collections/TimeExpiringSetTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.collections; - import java.util.HashSet; import java.util.Iterator; import java.util.Set; diff --git a/src/test/java/org/opensearch/performanceanalyzer/collectors/RcaStatsCollectorTest.java b/src/test/java/org/opensearch/performanceanalyzer/collectors/RcaStatsCollectorTest.java index fe427db90..542995fc6 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/collectors/RcaStatsCollectorTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/collectors/RcaStatsCollectorTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.collectors; - import java.nio.file.Paths; import java.util.*; import java.util.concurrent.Executors; diff --git a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/actions/CacheClearActionTest.java b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/actions/CacheClearActionTest.java index 5227365f9..4df6b3c2d 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/actions/CacheClearActionTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/actions/CacheClearActionTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.actions; - import com.google.common.collect.ImmutableSet; import java.util.ArrayList; import java.util.HashSet; diff --git a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/actions/ImpactVectorTest.java b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/actions/ImpactVectorTest.java index afbb56152..66d6a057c 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/actions/ImpactVectorTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/actions/ImpactVectorTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.actions; - import java.util.Map; import org.junit.Assert; import org.junit.Test; diff --git a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/HeapBasedDeciderTest.java b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/HeapBasedDeciderTest.java index 76be9bef0..fb42a84c6 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/HeapBasedDeciderTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/HeapBasedDeciderTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders; - import org.junit.Assert; import org.junit.Test; import org.opensearch.performanceanalyzer.AppContext; diff --git a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/PublisherTest.java b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/PublisherTest.java index 9b6a518ee..3937bef20 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/PublisherTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/PublisherTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders; - import com.google.common.collect.Lists; import java.util.Collections; import java.util.HashMap; diff --git a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/CachePriorityOrderConfigTest.java b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/CachePriorityOrderConfigTest.java index 4221f2962..c68a073e0 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/CachePriorityOrderConfigTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/CachePriorityOrderConfigTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.configs; - import java.util.Arrays; import org.junit.Assert; import org.junit.Test; diff --git a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/WorkLoadTypeConfigTest.java b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/WorkLoadTypeConfigTest.java index 1057f2ad1..0128b2d3f 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/WorkLoadTypeConfigTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/WorkLoadTypeConfigTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.configs; - import org.junit.Assert; import org.junit.Test; import org.opensearch.performanceanalyzer.rca.framework.core.RcaConf; diff --git a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/LevelOneActionBuilderConfigTest.java b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/LevelOneActionBuilderConfigTest.java index 3eaa7f6d2..65343a8d4 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/LevelOneActionBuilderConfigTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/LevelOneActionBuilderConfigTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.configs.jvm; - import org.junit.Assert; import org.junit.Test; import org.opensearch.performanceanalyzer.decisionmaker.deciders.configs.DeciderConfig; diff --git a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/LevelThreeActionBuilderConfigTest.java b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/LevelThreeActionBuilderConfigTest.java index 20cca0c2f..e7158310c 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/LevelThreeActionBuilderConfigTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/LevelThreeActionBuilderConfigTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.configs.jvm; - import org.junit.Assert; import org.junit.Test; import org.opensearch.performanceanalyzer.decisionmaker.deciders.configs.DeciderConfig; diff --git a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/LevelTwoActionBuilderConfigTest.java b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/LevelTwoActionBuilderConfigTest.java index cab572ed6..f7a8b6787 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/LevelTwoActionBuilderConfigTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/LevelTwoActionBuilderConfigTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.configs.jvm; - import org.junit.Assert; import org.junit.Test; import org.opensearch.performanceanalyzer.decisionmaker.deciders.configs.DeciderConfig; diff --git a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/OldGenDecisionPolicyConfigTest.java b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/OldGenDecisionPolicyConfigTest.java index 943ef7202..7ba19f96d 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/OldGenDecisionPolicyConfigTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/configs/jvm/OldGenDecisionPolicyConfigTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.configs.jvm; - import org.junit.Assert; import org.junit.Test; import org.opensearch.performanceanalyzer.decisionmaker.deciders.configs.DeciderConfig; diff --git a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/LevelOneActionBuilderTest.java b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/LevelOneActionBuilderTest.java index 67d4e3bef..aa7005b23 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/LevelOneActionBuilderTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/LevelOneActionBuilderTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.jvm; - import java.util.List; import org.junit.Assert; import org.junit.Before; diff --git a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/LevelThreeActionBuilderTest.java b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/LevelThreeActionBuilderTest.java index bbcd0468e..00432bc32 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/LevelThreeActionBuilderTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/LevelThreeActionBuilderTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.jvm; - import java.util.ArrayList; import java.util.List; import org.junit.Assert; diff --git a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/LevelTwoActionBuilderTest.java b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/LevelTwoActionBuilderTest.java index 597cd1685..75d48efe8 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/LevelTwoActionBuilderTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/jvm/LevelTwoActionBuilderTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.jvm; - import java.util.List; import java.util.Random; import org.junit.Assert; diff --git a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/test_utils/DeciderActionParserUtil.java b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/test_utils/DeciderActionParserUtil.java index da437f699..544ef2e69 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/test_utils/DeciderActionParserUtil.java +++ b/src/test/java/org/opensearch/performanceanalyzer/decisionmaker/deciders/test_utils/DeciderActionParserUtil.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.decisionmaker.deciders.test_utils; - import java.util.HashMap; import java.util.List; import java.util.Map; diff --git a/src/test/java/org/opensearch/performanceanalyzer/net/GRPCTest.java b/src/test/java/org/opensearch/performanceanalyzer/net/GRPCTest.java index 048a7456c..bde0a2969 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/net/GRPCTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/net/GRPCTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.net; - import io.grpc.StatusRuntimeException; import io.grpc.stub.StreamObserver; import java.util.Objects; diff --git a/src/test/java/org/opensearch/performanceanalyzer/net/TestMultipleNetServers.java b/src/test/java/org/opensearch/performanceanalyzer/net/TestMultipleNetServers.java index a1ee5825d..f0babd351 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/net/TestMultipleNetServers.java +++ b/src/test/java/org/opensearch/performanceanalyzer/net/TestMultipleNetServers.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.net; - import com.google.common.collect.Lists; import java.util.Collections; import java.util.HashMap; diff --git a/src/test/java/org/opensearch/performanceanalyzer/net/TestNetServer.java b/src/test/java/org/opensearch/performanceanalyzer/net/TestNetServer.java index efc1f0bde..5d8ee228a 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/net/TestNetServer.java +++ b/src/test/java/org/opensearch/performanceanalyzer/net/TestNetServer.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.net; - import io.grpc.stub.StreamObserver; import java.util.Objects; import java.util.concurrent.atomic.AtomicBoolean; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/RcaControllerTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/RcaControllerTest.java index 732f449ef..63d5c2770 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/RcaControllerTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/RcaControllerTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca; - import com.google.common.util.concurrent.ThreadFactoryBuilder; import com.sun.net.httpserver.HttpServer; import java.io.IOException; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/RcaTestHelper.java b/src/test/java/org/opensearch/performanceanalyzer/rca/RcaTestHelper.java index 461601966..b17fea691 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/RcaTestHelper.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/RcaTestHelper.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca; - import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/configs/QueueRejectionRcaConfigTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/configs/QueueRejectionRcaConfigTest.java index 9017ddab2..07adae4ba 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/configs/QueueRejectionRcaConfigTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/configs/QueueRejectionRcaConfigTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.configs; - import java.nio.file.Paths; import org.junit.Assert; import org.junit.Before; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/exceptions/MalformedAnalysisGraphTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/exceptions/MalformedAnalysisGraphTest.java index 3ca462506..9bd08dfb7 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/exceptions/MalformedAnalysisGraphTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/exceptions/MalformedAnalysisGraphTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.exceptions; - import org.junit.Assert; import org.junit.Before; import org.junit.Test; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/OperateGatherThrowingExceptionTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/OperateGatherThrowingExceptionTest.java index 95587ec8f..d96acbaa8 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/OperateGatherThrowingExceptionTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/OperateGatherThrowingExceptionTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api; - import java.util.List; import org.jooq.Record; import org.jooq.Result; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/RcaTestHelper.java b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/RcaTestHelper.java index ea7835822..a9e4b5212 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/RcaTestHelper.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/RcaTestHelper.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api; - import java.time.Clock; import java.util.Arrays; import java.util.Collections; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/MovingAverageTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/MovingAverageTest.java index fc2691afd..fda539a51 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/MovingAverageTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/MovingAverageTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.aggregators; - import org.junit.Assert; import org.junit.Test; import org.junit.experimental.categories.Category; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/PersistableSlidingWindowTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/PersistableSlidingWindowTest.java index 70c64100a..d6797595d 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/PersistableSlidingWindowTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/PersistableSlidingWindowTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.aggregators; - import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/SlidingWindowTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/SlidingWindowTest.java index 40280ddb3..51d714c56 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/SlidingWindowTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/SlidingWindowTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.aggregators; - import java.util.concurrent.TimeUnit; import org.junit.Assert; import org.junit.Test; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/SlidingWindowTestUtil.java b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/SlidingWindowTestUtil.java index 4f3ed30e7..04ac7ba21 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/SlidingWindowTestUtil.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/aggregators/SlidingWindowTestUtil.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.aggregators; - import java.util.Iterator; import java.util.Objects; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/contexts/GenericContextTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/contexts/GenericContextTest.java index b08c5ba16..fa519a769 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/contexts/GenericContextTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/contexts/GenericContextTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.contexts; - import org.junit.Assert; import org.junit.Before; import org.junit.Test; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/contexts/ResourceContextTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/contexts/ResourceContextTest.java index 89b75bf35..8181ad88c 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/contexts/ResourceContextTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/contexts/ResourceContextTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.contexts; - import java.util.List; import org.jooq.Field; import org.jooq.impl.DSL; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/contexts/SymptomContextTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/contexts/SymptomContextTest.java index cac2e49a5..f37ae2354 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/contexts/SymptomContextTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/contexts/SymptomContextTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.contexts; - import org.junit.Assert; import org.junit.Before; import org.junit.Test; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/NodeConfigFlowUnitTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/NodeConfigFlowUnitTest.java index 31d645634..960dd5333 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/NodeConfigFlowUnitTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/flow_units/NodeConfigFlowUnitTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.flow_units; - import org.junit.Assert; import org.junit.Test; import org.opensearch.performanceanalyzer.grpc.FlowUnitMessage; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/MetricTestHelper.java b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/MetricTestHelper.java index 309651111..7fd221ac5 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/MetricTestHelper.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/metrics/MetricTestHelper.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.metrics; - import java.util.ArrayList; import java.util.Collections; import java.util.List; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotClusterSummaryTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotClusterSummaryTest.java index bb3285608..bb8321bb0 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotClusterSummaryTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotClusterSummaryTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries; - import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.protobuf.GeneratedMessageV3; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotNodeSummaryTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotNodeSummaryTest.java index 7df6ed2f3..48d4a67b5 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotNodeSummaryTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotNodeSummaryTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries; - import com.google.gson.JsonElement; import com.google.gson.JsonObject; import java.util.List; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotResourceSummaryTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotResourceSummaryTest.java index 2e2cedab2..1884e7258 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotResourceSummaryTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotResourceSummaryTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries; - import com.google.gson.JsonElement; import com.google.gson.JsonObject; import java.util.List; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotShardSummaryTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotShardSummaryTest.java index 75e6a4a03..c1cd170e6 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotShardSummaryTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/HotShardSummaryTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries; - import com.google.gson.JsonElement; import com.google.gson.JsonObject; import java.util.List; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/ResourceUtilTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/ResourceUtilTest.java index 37ffa0182..aa6fc9585 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/ResourceUtilTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/ResourceUtilTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries; - import org.junit.Assert; import org.junit.Test; import org.opensearch.performanceanalyzer.grpc.Resource; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/TopConsumerSummaryTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/TopConsumerSummaryTest.java index f12bbaec9..828791b82 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/TopConsumerSummaryTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/TopConsumerSummaryTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries; - import com.google.gson.JsonElement; import com.google.gson.JsonObject; import java.util.List; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/bucket/BasicBucketCalculatorTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/bucket/BasicBucketCalculatorTest.java index cfb0e85ee..d22a03780 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/bucket/BasicBucketCalculatorTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/bucket/BasicBucketCalculatorTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries.bucket; - import org.junit.Assert; import org.junit.Before; import org.junit.Test; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/bucket/neo/BucketAssignerTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/bucket/neo/BucketAssignerTest.java index f4918dc5a..58b4c7b6c 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/bucket/neo/BucketAssignerTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/bucket/neo/BucketAssignerTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries.bucket.neo; - import com.fasterxml.jackson.core.JsonProcessingException; import java.nio.file.Paths; import org.junit.Assert; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/NodeLevelDimensionalSummaryTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/NodeLevelDimensionalSummaryTest.java index bace80cfa..1dc7c8ecd 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/NodeLevelDimensionalSummaryTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/api/summaries/temperature/NodeLevelDimensionalSummaryTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.api.summaries.temperature; - import java.util.ArrayList; import java.util.List; import org.junit.Assert; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/core/RcaConfTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/core/RcaConfTest.java index 81f696550..d0d01caed 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/core/RcaConfTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/core/RcaConfTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.core; - import java.nio.file.Paths; import java.util.Arrays; import org.junit.Assert; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/flow_units/MetricFlowUnitTestHelper.java b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/flow_units/MetricFlowUnitTestHelper.java index d7c494663..59c1843ac 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/flow_units/MetricFlowUnitTestHelper.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/flow_units/MetricFlowUnitTestHelper.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.flow_units; - import java.util.ArrayList; import java.util.List; import org.jooq.DSLContext; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/util/InstanceDetailsTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/util/InstanceDetailsTest.java index dcb87912d..c94207f34 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/framework/util/InstanceDetailsTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/framework/util/InstanceDetailsTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.framework.util; - import org.junit.Assert; import org.junit.Test; import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/Cluster.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/Cluster.java index 61d150512..888b40922 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/Cluster.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/Cluster.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.framework; - import com.google.gson.JsonElement; import java.io.File; import java.io.IOException; @@ -272,7 +271,9 @@ public void startRcaScheduler() throws Exception { } public void updateGraph(final Class rcaGraphClass) - throws NoSuchMethodException, InstantiationException, IllegalAccessException, + throws NoSuchMethodException, + InstantiationException, + IllegalAccessException, InvocationTargetException { for (Host host : hostList) { host.updateRcaGraph(rcaGraphClass); diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/Host.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/Host.java index d0365227d..0164fd5cd 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/Host.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/Host.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.framework; - import com.google.common.util.concurrent.ThreadFactoryBuilder; import com.google.gson.JsonElement; import com.google.gson.JsonObject; @@ -61,12 +60,15 @@ public class Host { private static final Logger LOG = LogManager.getLogger(Host.class); private final boolean useHttps; + /** Each host has its own AppContext instance. */ private final AppContext appContext; private final HostTag myTag; + /** This uniquely identifies a host. */ private final int hostId; + /** * For Integration tests, where all the virtual nodes are part of the same JVM, Ip string does * not matter. But for the sake of having this value filled, the string is 127.0.0.(hostId). @@ -312,7 +314,9 @@ public void startRcaScheduler() throws Exception { } public void updateRcaGraph(final Class rcaGraphClass) - throws InvocationTargetException, NoSuchMethodException, InstantiationException, + throws InvocationTargetException, + NoSuchMethodException, + InstantiationException, IllegalAccessException { rcaController.setRcaGraphComponents(rcaGraphClass); } diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/TestEnvironment.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/TestEnvironment.java index 4db1f2f7b..6cfa91a98 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/TestEnvironment.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/TestEnvironment.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.framework; - import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.ArrayList; @@ -93,7 +92,9 @@ private void updateRcaConf(ARcaConf aRcaConf, Env env) { } private void updateRcaGraph(ARcaGraph aRcaGraph, Env env) - throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, + throws NoSuchMethodException, + IllegalAccessException, + InvocationTargetException, InstantiationException { Class graphClass = aRcaGraph.value(); env.rcaGraphClass = graphClass; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/AClusterType.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/AClusterType.java index fcc4b1462..03e2eba02 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/AClusterType.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/AClusterType.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.framework.annotations; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/AErrorPatternIgnored.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/AErrorPatternIgnored.java index 1ab3b6a2e..ff91039e8 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/AErrorPatternIgnored.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/AErrorPatternIgnored.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.framework.annotations; - import java.lang.annotation.ElementType; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/AExpect.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/AExpect.java index 3b12a11e1..32b01644e 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/AExpect.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/AExpect.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.framework.annotations; - import java.lang.annotation.ElementType; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; @@ -21,7 +20,9 @@ @Retention(RetentionPolicy.RUNTIME) @Repeatable(value = AExpect.Expectations.class) public @interface AExpect { - /** @return What will be queried and matched against the expectations. */ + /** + * @return What will be queried and matched against the expectations. + */ Type what(); /** diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/AMetric.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/AMetric.java index 745fc26f9..82c608d6c 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/AMetric.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/AMetric.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.framework.annotations; - import java.lang.annotation.ElementType; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/ARcaConf.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/ARcaConf.java index 4e7f68491..c2eb5f8ce 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/ARcaConf.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/ARcaConf.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.framework.annotations; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/ARcaGraph.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/ARcaGraph.java index a3c97fbaf..3a86c4b39 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/ARcaGraph.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/ARcaGraph.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.framework.annotations; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/ATable.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/ATable.java index 8d6bea3f4..8b4ba02d4 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/ATable.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/ATable.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.framework.annotations; - import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import org.opensearch.performanceanalyzer.rca.integTests.framework.configs.HostTag; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/ATuple.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/ATuple.java index 58facdb8e..988a194ae 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/ATuple.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/annotations/ATuple.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.framework.annotations; - import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/api/IValidator.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/api/IValidator.java index 633082b58..b365bb743 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/api/IValidator.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/api/IValidator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.framework.api; - import com.google.gson.JsonElement; /** diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/api/TestApi.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/api/TestApi.java index c2e1e61d0..443d64432 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/api/TestApi.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/api/TestApi.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.framework.api; - import com.google.gson.JsonElement; import com.google.gson.JsonParser; import java.util.Map; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/log/AppenderHelper.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/log/AppenderHelper.java index 4f6a30fde..5f96b383a 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/log/AppenderHelper.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/log/AppenderHelper.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.framework.log; - import java.util.Collection; import java.util.Objects; import org.apache.logging.log4j.Level; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/log/RcaItInMemoryAppender.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/log/RcaItInMemoryAppender.java index 7ff69c1cc..fdfa923b7 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/log/RcaItInMemoryAppender.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/log/RcaItInMemoryAppender.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.framework.log; - import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.Collection; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/overrides/RcaConfIt.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/overrides/RcaConfIt.java index b0e4a54c0..c7c79b6bc 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/overrides/RcaConfIt.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/overrides/RcaConfIt.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.framework.overrides; - import java.util.HashMap; import java.util.Map; import org.opensearch.performanceanalyzer.rca.framework.core.RcaConf; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/overrides/RcaControllerIt.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/overrides/RcaControllerIt.java index a15b82a02..bfd3084f5 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/overrides/RcaControllerIt.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/overrides/RcaControllerIt.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.framework.overrides; - import java.lang.reflect.InvocationTargetException; import java.util.List; import java.util.concurrent.ScheduledExecutorService; @@ -57,8 +56,11 @@ public RcaControllerIt( @Override protected List getRcaGraphComponents(RcaConf rcaConf) - throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, - InstantiationException, IllegalAccessException { + throws ClassNotFoundException, + NoSuchMethodException, + InvocationTargetException, + InstantiationException, + IllegalAccessException { if (rcaGraphComponents != null) { return rcaGraphComponents; } else { @@ -93,7 +95,9 @@ public RcaItMetricsDBProvider getDbProvider() { } public void setRcaGraphComponents(Class rcaGraphClass) - throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, + throws NoSuchMethodException, + IllegalAccessException, + InvocationTargetException, InstantiationException { AnalysisGraph graphObject = (AnalysisGraph) rcaGraphClass.getDeclaredConstructor().newInstance(); diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/overrides/RcaItMetricsDBProvider.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/overrides/RcaItMetricsDBProvider.java index fd09276a2..1aaeed7ba 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/overrides/RcaItMetricsDBProvider.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/overrides/RcaItMetricsDBProvider.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.framework.overrides; - import java.io.IOException; import java.nio.file.Files; import java.nio.file.NoSuchFileException; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/runners/IRcaItRunner.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/runners/IRcaItRunner.java index 8fc34bd3c..63d2e2a24 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/runners/IRcaItRunner.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/runners/IRcaItRunner.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.framework.runners; - import java.io.File; import java.io.IOException; import java.nio.file.Path; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/runners/RcaItRunnerBase.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/runners/RcaItRunnerBase.java index 555d2bf5a..f767bf694 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/runners/RcaItRunnerBase.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/framework/runners/RcaItRunnerBase.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.framework.runners; - import java.io.IOException; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; @@ -185,8 +184,11 @@ private void postRunCleanups() { } private void validateTestRun(Method method) - throws InvocationTargetException, NoSuchMethodException, InstantiationException, - IllegalAccessException, IllegalStateException { + throws InvocationTargetException, + NoSuchMethodException, + InstantiationException, + IllegalAccessException, + IllegalStateException { List failedChecks = validateTestOutput(method); if (!failedChecks.isEmpty()) { @@ -250,7 +252,9 @@ private void applyMethodLevelAnnotationOverrides(Method method) throws Exception } private List validateTestOutput(Method method) - throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, + throws NoSuchMethodException, + IllegalAccessException, + InvocationTargetException, InstantiationException { List failedValidations = new ArrayList<>(); if (method.isAnnotationPresent(AExpect.Expectations.class) diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/cache_tuning/Constants.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/cache_tuning/Constants.java index 0ede82247..e3b787d42 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/cache_tuning/Constants.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/cache_tuning/Constants.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.cache_tuning; - import org.opensearch.performanceanalyzer.rca.integTests.framework.configs.Consts; public class Constants { diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/cache_tuning/validator/FieldDataCacheDeciderValidator.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/cache_tuning/validator/FieldDataCacheDeciderValidator.java index 261185248..e91832667 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/cache_tuning/validator/FieldDataCacheDeciderValidator.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/cache_tuning/validator/FieldDataCacheDeciderValidator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.cache_tuning.validator; - import org.junit.Assert; import org.opensearch.performanceanalyzer.AppContext; import org.opensearch.performanceanalyzer.decisionmaker.actions.ModifyCacheMaxSizeAction; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/cache_tuning/validator/FieldDataCacheValidator.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/cache_tuning/validator/FieldDataCacheValidator.java index 21261d339..6d38ee81d 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/cache_tuning/validator/FieldDataCacheValidator.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/cache_tuning/validator/FieldDataCacheValidator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.cache_tuning.validator; - import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/cache_tuning/validator/ShardRequestCacheDeciderValidator.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/cache_tuning/validator/ShardRequestCacheDeciderValidator.java index affd10813..f01f7a9fd 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/cache_tuning/validator/ShardRequestCacheDeciderValidator.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/cache_tuning/validator/ShardRequestCacheDeciderValidator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.cache_tuning.validator; - import org.junit.Assert; import org.opensearch.performanceanalyzer.AppContext; import org.opensearch.performanceanalyzer.decisionmaker.actions.ModifyCacheMaxSizeAction; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/cache_tuning/validator/ShardRequestCacheValidator.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/cache_tuning/validator/ShardRequestCacheValidator.java index 0121e48df..383206e2b 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/cache_tuning/validator/ShardRequestCacheValidator.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/cache_tuning/validator/ShardRequestCacheValidator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.cache_tuning.validator; - import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/collator/CollatorIT.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/collator/CollatorIT.java index 30169898b..ef3dadbf3 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/collator/CollatorIT.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/collator/CollatorIT.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.collator; - import org.junit.Test; import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/collator/CollatorITConstants.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/collator/CollatorITConstants.java index 9e8b91a6c..1ce6a0c17 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/collator/CollatorITConstants.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/collator/CollatorITConstants.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.collator; - import org.opensearch.performanceanalyzer.rca.integTests.framework.configs.Consts; public class CollatorITConstants { diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/old_gen_policy/validator/LevelOneValidator.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/old_gen_policy/validator/LevelOneValidator.java index 73b148bea..5764bb074 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/old_gen_policy/validator/LevelOneValidator.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/old_gen_policy/validator/LevelOneValidator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.jvm.old_gen_policy.validator; - import com.google.gson.JsonArray; import org.opensearch.performanceanalyzer.grpc.ResourceEnum; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/old_gen_policy/validator/LevelThreeValidator.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/old_gen_policy/validator/LevelThreeValidator.java index 30f7a6687..557cc53da 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/old_gen_policy/validator/LevelThreeValidator.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/old_gen_policy/validator/LevelThreeValidator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.jvm.old_gen_policy.validator; - import com.google.gson.JsonArray; import org.opensearch.performanceanalyzer.grpc.ResourceEnum; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/old_gen_policy/validator/LevelTwoValidator.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/old_gen_policy/validator/LevelTwoValidator.java index 080d50138..167721f2e 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/old_gen_policy/validator/LevelTwoValidator.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/old_gen_policy/validator/LevelTwoValidator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.jvm.old_gen_policy.validator; - import com.google.gson.JsonArray; import org.opensearch.performanceanalyzer.grpc.ResourceEnum; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/old_gen_policy/validator/OldGenPolicyBaseValidator.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/old_gen_policy/validator/OldGenPolicyBaseValidator.java index 54d3b72d4..4c058235f 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/old_gen_policy/validator/OldGenPolicyBaseValidator.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/old_gen_policy/validator/OldGenPolicyBaseValidator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.jvm.old_gen_policy.validator; - import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/young_gen/YoungGenDeciderFullGCPauseIT.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/young_gen/YoungGenDeciderFullGCPauseIT.java index 9f2d7c173..2d73aa0c5 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/young_gen/YoungGenDeciderFullGCPauseIT.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/young_gen/YoungGenDeciderFullGCPauseIT.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.jvm.young_gen; - import org.junit.Test; import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/young_gen/YoungGenHighThresholdTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/young_gen/YoungGenHighThresholdTest.java index 1baffa636..6c0fc078e 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/young_gen/YoungGenHighThresholdTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/young_gen/YoungGenHighThresholdTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.jvm.young_gen; - import java.util.concurrent.TimeUnit; import org.junit.Test; import org.junit.experimental.categories.Category; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/young_gen/YoungGenITConstants.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/young_gen/YoungGenITConstants.java index 76507dcfc..fd08812c1 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/young_gen/YoungGenITConstants.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/young_gen/YoungGenITConstants.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.jvm.young_gen; - import org.opensearch.performanceanalyzer.rca.integTests.framework.configs.Consts; public final class YoungGenITConstants { diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/young_gen/YoungGenMissingMetricsTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/young_gen/YoungGenMissingMetricsTest.java index cbb000e8c..3a472cb25 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/young_gen/YoungGenMissingMetricsTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/young_gen/YoungGenMissingMetricsTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.jvm.young_gen; - import java.util.concurrent.TimeUnit; import org.junit.Test; import org.junit.experimental.categories.Category; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/young_gen/validator/YoungGenNonBreachingValidator.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/young_gen/validator/YoungGenNonBreachingValidator.java index 2807ab2c3..c0272109a 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/young_gen/validator/YoungGenNonBreachingValidator.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/young_gen/validator/YoungGenNonBreachingValidator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.jvm.young_gen.validator; - import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/young_gen/validator/YoungGenRcaValidator.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/young_gen/validator/YoungGenRcaValidator.java index e9a32dd67..055fca963 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/young_gen/validator/YoungGenRcaValidator.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvm/young_gen/validator/YoungGenRcaValidator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.jvm.young_gen.validator; - import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/HeapSizeIncreaseDedicatedClusterManagerIT.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/HeapSizeIncreaseDedicatedClusterManagerIT.java index 554e4f457..8b5b9b64d 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/HeapSizeIncreaseDedicatedClusterManagerIT.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/HeapSizeIncreaseDedicatedClusterManagerIT.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.jvmsizing; - import org.junit.Test; import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/HeapSizeIncreaseHighThresholdTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/HeapSizeIncreaseHighThresholdTest.java index 0cbaf5d9c..44560dffb 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/HeapSizeIncreaseHighThresholdTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/HeapSizeIncreaseHighThresholdTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.jvmsizing; - import java.util.concurrent.TimeUnit; import org.junit.Test; import org.junit.experimental.categories.Category; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/HeapSizeIncreaseIT.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/HeapSizeIncreaseIT.java index f4159ec4c..4ee3bbfe7 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/HeapSizeIncreaseIT.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/HeapSizeIncreaseIT.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.jvmsizing; - import org.junit.Test; import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/HeapSizeIncreaseMissingMetricsTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/HeapSizeIncreaseMissingMetricsTest.java index 7e8e3d974..e462dabbf 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/HeapSizeIncreaseMissingMetricsTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/HeapSizeIncreaseMissingMetricsTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.jvmsizing; - import org.junit.Ignore; import org.junit.Test; import org.junit.experimental.categories.Category; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/JvmSizingITConstants.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/JvmSizingITConstants.java index 0e691798a..c7e5efa5c 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/JvmSizingITConstants.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/JvmSizingITConstants.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.jvmsizing; - import org.opensearch.performanceanalyzer.rca.integTests.framework.configs.Consts; public final class JvmSizingITConstants { diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/validator/HeapSizeIncreaseNonBreachingValidator.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/validator/HeapSizeIncreaseNonBreachingValidator.java index cf879f905..e0c09b506 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/validator/HeapSizeIncreaseNonBreachingValidator.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/validator/HeapSizeIncreaseNonBreachingValidator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.jvmsizing.validator; - import org.junit.Assert; import org.opensearch.performanceanalyzer.decisionmaker.actions.HeapSizeIncreaseAction; import org.opensearch.performanceanalyzer.rca.persistence.actions.PersistedAction; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/validator/HeapSizeIncreaseValidator.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/validator/HeapSizeIncreaseValidator.java index bea00a38d..2565f6c1e 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/validator/HeapSizeIncreaseValidator.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/jvmsizing/validator/HeapSizeIncreaseValidator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.jvmsizing.validator; - import org.opensearch.performanceanalyzer.AppContext; import org.opensearch.performanceanalyzer.rca.integTests.framework.api.IValidator; import org.opensearch.performanceanalyzer.rca.persistence.actions.PersistedAction; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/poc/RcaItPocCoLocatedClusterManager.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/poc/RcaItPocCoLocatedClusterManager.java index 69a6c991a..488210ee8 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/poc/RcaItPocCoLocatedClusterManager.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/poc/RcaItPocCoLocatedClusterManager.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.poc; - import org.junit.Test; import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/poc/RcaItPocDedicated.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/poc/RcaItPocDedicated.java index 351a6eda1..85e2af833 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/poc/RcaItPocDedicated.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/poc/RcaItPocDedicated.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.poc; - import java.util.Arrays; import java.util.Collections; import org.junit.Test; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/poc/RcaItPocSingleNode.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/poc/RcaItPocSingleNode.java index 05e8a6887..8312993d2 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/poc/RcaItPocSingleNode.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/poc/RcaItPocSingleNode.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.poc; - import java.util.Arrays; import java.util.Collections; import org.apache.logging.log4j.LogManager; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/poc/SimpleAnalysisGraph.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/poc/SimpleAnalysisGraph.java index b0d4ffd8b..ac5e57128 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/poc/SimpleAnalysisGraph.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/poc/SimpleAnalysisGraph.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.poc; - import java.util.ArrayList; import java.util.List; import org.jooq.Record; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/poc/validator/PocValidator.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/poc/validator/PocValidator.java index 7f1f1fff9..707173760 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/poc/validator/PocValidator.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/poc/validator/PocValidator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.poc.validator; - import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/queue_tuning/Constants.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/queue_tuning/Constants.java index a1d8f9ca1..a9db3e4f5 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/queue_tuning/Constants.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/queue_tuning/Constants.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.queue_tuning; - import org.opensearch.performanceanalyzer.rca.integTests.framework.configs.Consts; public class Constants { diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/queue_tuning/validator/QDeciderNoActionOnUnhealthyValidator.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/queue_tuning/validator/QDeciderNoActionOnUnhealthyValidator.java index cdcd2a457..ff5a2a25b 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/queue_tuning/validator/QDeciderNoActionOnUnhealthyValidator.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/queue_tuning/validator/QDeciderNoActionOnUnhealthyValidator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.queue_tuning.validator; - import org.junit.Assert; import org.opensearch.performanceanalyzer.AppContext; import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/queue_tuning/validator/QueueDeciderValidator.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/queue_tuning/validator/QueueDeciderValidator.java index a8eeaa1ad..f60f10dd1 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/queue_tuning/validator/QueueDeciderValidator.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/queue_tuning/validator/QueueDeciderValidator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.queue_tuning.validator; - import org.junit.Assert; import org.opensearch.performanceanalyzer.AppContext; import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/queue_tuning/validator/QueueRejectionValidator.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/queue_tuning/validator/QueueRejectionValidator.java index 261abb1b0..31702a303 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/queue_tuning/validator/QueueRejectionValidator.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/queue_tuning/validator/QueueRejectionValidator.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.queue_tuning.validator; - import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/util/JsonParserUtil.java b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/util/JsonParserUtil.java index bbf0ee822..0f77dd3a5 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/util/JsonParserUtil.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/integTests/tests/util/JsonParserUtil.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.integTests.tests.util; - import com.google.gson.JsonArray; import com.google.gson.JsonObject; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/listener/MisbehavingGraphOperateMethodListenerTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/listener/MisbehavingGraphOperateMethodListenerTest.java index d0a23865f..c110b0548 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/listener/MisbehavingGraphOperateMethodListenerTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/listener/MisbehavingGraphOperateMethodListenerTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.listener; - import java.nio.file.Paths; import java.util.Arrays; import java.util.HashMap; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/net/NodeStateManagerTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/net/NodeStateManagerTest.java index d5b00e108..8f4de270f 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/net/NodeStateManagerTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/net/NodeStateManagerTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.net; - import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/net/ReceivedFlowUnitStoreTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/net/ReceivedFlowUnitStoreTest.java index f2c576c28..3be20ecab 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/net/ReceivedFlowUnitStoreTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/net/ReceivedFlowUnitStoreTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.net; - import java.util.Arrays; import java.util.List; import java.util.concurrent.CountDownLatch; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/net/RejectingExecutor.java b/src/test/java/org/opensearch/performanceanalyzer/rca/net/RejectingExecutor.java index ac1ac3d21..b6a1dab2b 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/net/RejectingExecutor.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/net/RejectingExecutor.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.net; - import java.util.Collection; import java.util.List; import java.util.concurrent.Callable; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/net/SubscribeResponseHandlerTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/net/SubscribeResponseHandlerTest.java index 24af85179..1d22036ff 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/net/SubscribeResponseHandlerTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/net/SubscribeResponseHandlerTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.net; - import com.google.common.collect.Sets; import java.util.Objects; import org.junit.After; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/net/SubscriptionManagerTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/net/SubscriptionManagerTest.java index cf3050ad7..987518130 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/net/SubscriptionManagerTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/net/SubscriptionManagerTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.net; - import com.google.common.collect.Sets; import java.util.Collections; import java.util.Objects; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/net/WireHopperTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/net/WireHopperTest.java index a9d7534c0..1be5005b2 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/net/WireHopperTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/net/WireHopperTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.net; - import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/FileGCTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/FileGCTest.java index f93e0072f..286c51fab 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/FileGCTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/FileGCTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.persistence; - import java.io.File; import java.io.IOException; import java.nio.file.Files; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/FileRotateTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/FileRotateTest.java index bae162da5..055d6d045 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/FileRotateTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/FileRotateTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.persistence; - import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/PersistFlowUnitAndSummaryTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/PersistFlowUnitAndSummaryTest.java index 1508ae0d8..daf54ea53 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/PersistFlowUnitAndSummaryTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/PersistFlowUnitAndSummaryTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.persistence; - import java.nio.file.Paths; import java.util.ArrayList; import java.util.Collections; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/PublisherEventsPersistorTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/PublisherEventsPersistorTest.java index 0d1e7707b..e41432709 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/PublisherEventsPersistorTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/PublisherEventsPersistorTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.persistence; - import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/SQLitePersistorTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/SQLitePersistorTest.java index 6bbabc463..ee93d611b 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/SQLitePersistorTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/SQLitePersistorTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.persistence; - import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/SqliteObjectPersistorTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/SqliteObjectPersistorTest.java index 68cf345d3..674535e02 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/SqliteObjectPersistorTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/SqliteObjectPersistorTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.persistence; - import java.io.IOException; import java.lang.reflect.InvocationTargetException; import java.nio.file.Files; @@ -66,8 +65,12 @@ public void testWriteObject() throws Exception { */ @Test public void testNoData() - throws IOException, SQLException, InvocationTargetException, NoSuchMethodException, - InstantiationException, IllegalAccessException { + throws IOException, + SQLException, + InvocationTargetException, + NoSuchMethodException, + InstantiationException, + IllegalAccessException { SQLitePersistor sqlite = new SQLitePersistor( testLocation.toString(), @@ -102,7 +105,10 @@ public void persistTwoClassesWithSameName() throws Exception { @Test public void testObjectWithNoGetters() - throws IOException, SQLException, IllegalAccessException, NoSuchMethodException, + throws IOException, + SQLException, + IllegalAccessException, + NoSuchMethodException, InvocationTargetException { exceptionRule.expect(NoSuchMethodException.class); exceptionRule.expectMessage("Could not find 'getter' for the field 'x' of class"); @@ -123,7 +129,10 @@ class NoGetter { @Test public void testGetterReturnMismatch() - throws IOException, SQLException, IllegalAccessException, NoSuchMethodException, + throws IOException, + SQLException, + IllegalAccessException, + NoSuchMethodException, InvocationTargetException { exceptionRule.expect(NoSuchMethodException.class); exceptionRule.expectMessage( @@ -152,7 +161,10 @@ public void setX(int x) { @Test public void testSetterArgTypeMismatch() - throws IOException, SQLException, IllegalAccessException, NoSuchMethodException, + throws IOException, + SQLException, + IllegalAccessException, + NoSuchMethodException, InvocationTargetException { exceptionRule.expect(NoSuchMethodException.class); exceptionRule.expectMessage("Could not find 'setter' for the field 'x' of class"); @@ -180,7 +192,10 @@ public void setX(Integer x) { @Test public void testNonPublicGetterSetter() - throws IOException, SQLException, IllegalAccessException, NoSuchMethodException, + throws IOException, + SQLException, + IllegalAccessException, + NoSuchMethodException, InvocationTargetException { exceptionRule.expect(IllegalStateException.class); exceptionRule.expectMessage("Found 'getX'. But it is not public"); @@ -208,7 +223,10 @@ public void setX(Integer x) { @Test public void testNoPersistableFields() - throws IOException, SQLException, IllegalAccessException, NoSuchMethodException, + throws IOException, + SQLException, + IllegalAccessException, + NoSuchMethodException, InvocationTargetException { exceptionRule.expect(IllegalStateException.class); exceptionRule.expectMessage( @@ -229,7 +247,10 @@ class NotPersistable { @Test public void testCollectionOfPrimitives() - throws IOException, SQLException, IllegalAccessException, NoSuchMethodException, + throws IOException, + SQLException, + IllegalAccessException, + NoSuchMethodException, InvocationTargetException { exceptionRule.expect(IllegalStateException.class); exceptionRule.expectMessage( diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/pck1/TestPersist.java b/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/pck1/TestPersist.java index 77738bb93..5860dc18c 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/pck1/TestPersist.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/pck1/TestPersist.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.persistence.pck1; - import org.opensearch.performanceanalyzer.rca.persistence.ValueColumn; public class TestPersist { diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/pck2/TestPersist.java b/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/pck2/TestPersist.java index 202166340..052f166bb 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/pck2/TestPersist.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/persistence/pck2/TestPersist.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.persistence.pck2; - import org.opensearch.performanceanalyzer.rca.persistence.ValueColumn; public class TestPersist { diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/scheduler/RcaSchedulerAsyncTaskTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/scheduler/RcaSchedulerAsyncTaskTest.java index 1dd315b62..a9dd0da89 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/scheduler/RcaSchedulerAsyncTaskTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/scheduler/RcaSchedulerAsyncTaskTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.scheduler; - import java.nio.file.Paths; import java.util.ArrayList; import java.util.Arrays; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/spec/MetricsDBProviderTestHelper.java b/src/test/java/org/opensearch/performanceanalyzer/rca/spec/MetricsDBProviderTestHelper.java index 61943bb12..2515a8c6d 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/spec/MetricsDBProviderTestHelper.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/spec/MetricsDBProviderTestHelper.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.spec; - import java.io.IOException; import java.nio.file.Files; import java.nio.file.NoSuchFileException; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/spec/MetricsDBRcaIntegration.java b/src/test/java/org/opensearch/performanceanalyzer/rca/spec/MetricsDBRcaIntegration.java index 5608b62c5..1d3af0bdf 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/spec/MetricsDBRcaIntegration.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/spec/MetricsDBRcaIntegration.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.spec; - import java.util.ArrayList; import java.util.List; import org.jooq.Record; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/spec/helpers/OSMetricHelper.java b/src/test/java/org/opensearch/performanceanalyzer/rca/spec/helpers/OSMetricHelper.java index f75936e2f..06d1980ca 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/spec/helpers/OSMetricHelper.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/spec/helpers/OSMetricHelper.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.spec.helpers; - import java.util.ArrayList; import java.util.List; import org.opensearch.performanceanalyzer.commons.metrics.AllMetrics; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/store/ResourceHeatMapGraphTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/store/ResourceHeatMapGraphTest.java index 54eb6d66d..6bd1cd63e 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/store/ResourceHeatMapGraphTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/store/ResourceHeatMapGraphTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store; - import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/SumOverOperationsForIndexShardProfileSummaryGroupTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/SumOverOperationsForIndexShardProfileSummaryGroupTest.java index f219a8c08..85fef5f0b 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/SumOverOperationsForIndexShardProfileSummaryGroupTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/store/metric/temperature/byShard/SumOverOperationsForIndexShardProfileSummaryGroupTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.metric.temperature.byShard; - import java.nio.file.Path; import java.nio.file.Paths; import java.sql.SQLException; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/store/rca/hot_node/ThreadMetricsSlidingWindowTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/store/rca/hot_node/ThreadMetricsSlidingWindowTest.java index 0febb6af0..762303572 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/store/rca/hot_node/ThreadMetricsSlidingWindowTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/store/rca/hot_node/ThreadMetricsSlidingWindowTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.store.rca.hot_node; - import java.util.Arrays; import java.util.Collections; import org.junit.Assert; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rca/util/ClusterUtilsTest.java b/src/test/java/org/opensearch/performanceanalyzer/rca/util/ClusterUtilsTest.java index 7efcacf46..0a89bc5ec 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rca/util/ClusterUtilsTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rca/util/ClusterUtilsTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rca.util; - import com.google.common.collect.Lists; import java.util.ArrayList; import java.util.Collections; diff --git a/src/test/java/org/opensearch/performanceanalyzer/reader/AbstractReaderTests.java b/src/test/java/org/opensearch/performanceanalyzer/reader/AbstractReaderTests.java index dc5bab43d..50693ec50 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/reader/AbstractReaderTests.java +++ b/src/test/java/org/opensearch/performanceanalyzer/reader/AbstractReaderTests.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import com.fasterxml.jackson.annotation.JsonProperty; import java.io.BufferedWriter; import java.io.File; diff --git a/src/test/java/org/opensearch/performanceanalyzer/reader/ClusterDetailsEventProcessorTestHelper.java b/src/test/java/org/opensearch/performanceanalyzer/reader/ClusterDetailsEventProcessorTestHelper.java index 1508aa8f9..e26fe4bd0 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/reader/ClusterDetailsEventProcessorTestHelper.java +++ b/src/test/java/org/opensearch/performanceanalyzer/reader/ClusterDetailsEventProcessorTestHelper.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.reader; - import java.sql.SQLException; import java.util.ArrayList; import java.util.List; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rest/QueryBatchRequestHandlerTest.java b/src/test/java/org/opensearch/performanceanalyzer/rest/QueryBatchRequestHandlerTest.java index 0d5f84f2f..de1aaeedb 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rest/QueryBatchRequestHandlerTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rest/QueryBatchRequestHandlerTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rest; - import com.sun.net.httpserver.Headers; import com.sun.net.httpserver.HttpExchange; import java.io.File; diff --git a/src/test/java/org/opensearch/performanceanalyzer/rest/QueryRcaRequestHandlerTest.java b/src/test/java/org/opensearch/performanceanalyzer/rest/QueryRcaRequestHandlerTest.java index 8868ba43d..4b27a85fe 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/rest/QueryRcaRequestHandlerTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/rest/QueryRcaRequestHandlerTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.rest; - import com.sun.net.httpserver.Headers; import com.sun.net.httpserver.HttpExchange; import java.io.ByteArrayOutputStream; diff --git a/src/test/java/org/opensearch/performanceanalyzer/store/collector/NodeConfigCacheTest.java b/src/test/java/org/opensearch/performanceanalyzer/store/collector/NodeConfigCacheTest.java index b39d722d4..a42fba28f 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/store/collector/NodeConfigCacheTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/store/collector/NodeConfigCacheTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.store.collector; - import org.junit.Assert; import org.junit.Before; import org.junit.Test; diff --git a/src/test/java/org/opensearch/performanceanalyzer/store/collector/NodeConfigClusterCollectorTest.java b/src/test/java/org/opensearch/performanceanalyzer/store/collector/NodeConfigClusterCollectorTest.java index 6569cdc61..a8ece026d 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/store/collector/NodeConfigClusterCollectorTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/store/collector/NodeConfigClusterCollectorTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.store.collector; - import org.junit.Assert; import org.junit.Before; import org.junit.Test; diff --git a/src/test/java/org/opensearch/performanceanalyzer/store/collector/NodeConfigCollectorTest.java b/src/test/java/org/opensearch/performanceanalyzer/store/collector/NodeConfigCollectorTest.java index 08d9e0aad..bb0af8d0a 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/store/collector/NodeConfigCollectorTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/store/collector/NodeConfigCollectorTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.store.collector; - import java.util.Arrays; import java.util.Collections; import org.junit.Assert; diff --git a/src/test/java/org/opensearch/performanceanalyzer/store/rca/HighHeapUsageClusterRcaTest.java b/src/test/java/org/opensearch/performanceanalyzer/store/rca/HighHeapUsageClusterRcaTest.java index 6c601dffa..d5bfab15c 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/store/rca/HighHeapUsageClusterRcaTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/store/rca/HighHeapUsageClusterRcaTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.store.rca; - import java.util.ArrayList; import java.util.List; import org.junit.Assert; diff --git a/src/test/java/org/opensearch/performanceanalyzer/store/rca/hotheap/NodeStatAggregatorTest.java b/src/test/java/org/opensearch/performanceanalyzer/store/rca/hotheap/NodeStatAggregatorTest.java index 2bc12420f..584516a2f 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/store/rca/hotheap/NodeStatAggregatorTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/store/rca/hotheap/NodeStatAggregatorTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.store.rca.hotheap; - import java.util.Arrays; import java.util.List; import java.util.concurrent.TimeUnit; diff --git a/src/test/java/org/opensearch/performanceanalyzer/store/rca/hotshard/HotShardClusterRcaTest.java b/src/test/java/org/opensearch/performanceanalyzer/store/rca/hotshard/HotShardClusterRcaTest.java index 6a270f767..af35929bf 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/store/rca/hotshard/HotShardClusterRcaTest.java +++ b/src/test/java/org/opensearch/performanceanalyzer/store/rca/hotshard/HotShardClusterRcaTest.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.store.rca.hotshard; - import java.util.Arrays; import java.util.Collections; import java.util.List; diff --git a/src/test/java/org/opensearch/performanceanalyzer/util/SQLiteReader.java b/src/test/java/org/opensearch/performanceanalyzer/util/SQLiteReader.java index a68c38ffa..2ad211be3 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/util/SQLiteReader.java +++ b/src/test/java/org/opensearch/performanceanalyzer/util/SQLiteReader.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.util; - import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; diff --git a/src/test/java/org/opensearch/performanceanalyzer/util/WaitFor.java b/src/test/java/org/opensearch/performanceanalyzer/util/WaitFor.java index fab3f6665..be87d6608 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/util/WaitFor.java +++ b/src/test/java/org/opensearch/performanceanalyzer/util/WaitFor.java @@ -5,7 +5,6 @@ package org.opensearch.performanceanalyzer.util; - import java.time.Duration; import java.time.Instant; import java.util.concurrent.Callable;