Skip to content

Commit

Permalink
[ML] Minor tidyups in ML serverless extension
Browse files Browse the repository at this point in the history
  • Loading branch information
droberts195 committed Oct 18, 2023
1 parent dffd842 commit 0006db8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public String[] getAnalyticsDestIndexAllowedSettings() {
return ANALYTICS_DEST_INDEX_ALLOWED_SETTINGS;
}

@Override
public AbstractNodeAvailabilityZoneMapper getNodeAvailabilityZoneMapper(Settings settings, ClusterSettings clusterSettings) {
return new NodeRealAvailabilityZoneMapper(settings, clusterSettings);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import org.elasticsearch.common.settings.ClusterSettings;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.xpack.ml.autoscaling.AbstractNodeAvailabilityZoneMapper;
import org.elasticsearch.xpack.ml.autoscaling.NodeRealAvailabilityZoneMapper;

public interface MachineLearningExtension {

Expand All @@ -26,11 +25,7 @@ default void configure(Settings settings) {}

boolean isNlpEnabled();

default String[] getAnalyticsDestIndexAllowedSettings() {
return DefaultMachineLearningExtension.ANALYTICS_DEST_INDEX_ALLOWED_SETTINGS;
}
String[] getAnalyticsDestIndexAllowedSettings();

default AbstractNodeAvailabilityZoneMapper getNodeAvailabilityZoneMapper(Settings settings, ClusterSettings clusterSettings) {
return new NodeRealAvailabilityZoneMapper(settings, clusterSettings);
}
AbstractNodeAvailabilityZoneMapper getNodeAvailabilityZoneMapper(Settings settings, ClusterSettings clusterSettings);
}

0 comments on commit 0006db8

Please sign in to comment.