From 6b312a500d2db33730576496fdfd2150e9de9ecd Mon Sep 17 00:00:00 2001 From: Tal Levy Date: Thu, 1 Nov 2018 10:22:55 -0700 Subject: [PATCH] uninherit from AbstractComponent in IndexLifecycleService --- .../xpack/indexlifecycle/IndexLifecycleService.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/indexlifecycle/IndexLifecycleService.java b/x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/indexlifecycle/IndexLifecycleService.java index 1f4472daa2b..637c1855dd0 100644 --- a/x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/indexlifecycle/IndexLifecycleService.java +++ b/x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/indexlifecycle/IndexLifecycleService.java @@ -18,7 +18,6 @@ import org.elasticsearch.cluster.LocalNodeMasterListener; import org.elasticsearch.cluster.metadata.IndexMetaData; import org.elasticsearch.cluster.service.ClusterService; import org.elasticsearch.common.Strings; -import org.elasticsearch.common.component.AbstractComponent; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.unit.TimeValue; import org.elasticsearch.common.xcontent.NamedXContentRegistry; @@ -42,7 +41,7 @@ import java.util.function.LongSupplier; /** * A service which runs the {@link LifecyclePolicy}s associated with indexes. */ -public class IndexLifecycleService extends AbstractComponent +public class IndexLifecycleService implements ClusterStateListener, ClusterStateApplier, SchedulerEngine.Listener, Closeable, LocalNodeMasterListener { private static final Logger logger = LogManager.getLogger(IndexLifecycleService.class); private static final Set IGNORE_ACTIONS_MAINTENANCE_REQUESTED = Collections.singleton(ShrinkAction.NAME); @@ -61,7 +60,7 @@ public class IndexLifecycleService extends AbstractComponent public IndexLifecycleService(Settings settings, Client client, ClusterService clusterService, Clock clock, LongSupplier nowSupplier, NamedXContentRegistry xContentRegistry) { - super(settings); + super(); this.settings = settings; this.client = client; this.clusterService = clusterService;