uninherit from AbstractComponent in IndexLifecycleService

This commit is contained in:
Tal Levy 2018-11-01 10:22:55 -07:00
parent c3cf7dd305
commit 6b312a500d
1 changed files with 2 additions and 3 deletions

View File

@ -18,7 +18,6 @@ import org.elasticsearch.cluster.LocalNodeMasterListener;
import org.elasticsearch.cluster.metadata.IndexMetaData; import org.elasticsearch.cluster.metadata.IndexMetaData;
import org.elasticsearch.cluster.service.ClusterService; import org.elasticsearch.cluster.service.ClusterService;
import org.elasticsearch.common.Strings; import org.elasticsearch.common.Strings;
import org.elasticsearch.common.component.AbstractComponent;
import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.unit.TimeValue; import org.elasticsearch.common.unit.TimeValue;
import org.elasticsearch.common.xcontent.NamedXContentRegistry; 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. * 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 { implements ClusterStateListener, ClusterStateApplier, SchedulerEngine.Listener, Closeable, LocalNodeMasterListener {
private static final Logger logger = LogManager.getLogger(IndexLifecycleService.class); private static final Logger logger = LogManager.getLogger(IndexLifecycleService.class);
private static final Set<String> IGNORE_ACTIONS_MAINTENANCE_REQUESTED = Collections.singleton(ShrinkAction.NAME); private static final Set<String> 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, public IndexLifecycleService(Settings settings, Client client, ClusterService clusterService, Clock clock, LongSupplier nowSupplier,
NamedXContentRegistry xContentRegistry) { NamedXContentRegistry xContentRegistry) {
super(settings); super();
this.settings = settings; this.settings = settings;
this.client = client; this.client = client;
this.clusterService = clusterService; this.clusterService = clusterService;