diff --git a/plugin/src/main/java/org/elasticsearch/xpack/ml/action/GetDatafeedsAction.java b/plugin/src/main/java/org/elasticsearch/xpack/ml/action/GetDatafeedsAction.java index 24502c97eda..2985c9b98a5 100644 --- a/plugin/src/main/java/org/elasticsearch/xpack/ml/action/GetDatafeedsAction.java +++ b/plugin/src/main/java/org/elasticsearch/xpack/ml/action/GetDatafeedsAction.java @@ -71,10 +71,13 @@ public class GetDatafeedsAction extends Action { + public static class Request extends ActionRequest { private String filterId; private PageParams pageParams; @@ -146,10 +146,10 @@ public class GetFiltersAction extends Action { + public static class RequestBuilder extends ActionRequestBuilder { - public RequestBuilder(ElasticsearchClient client, GetFiltersAction action) { - super(client, action, new Request()); + public RequestBuilder(ElasticsearchClient client) { + super(client, INSTANCE, new Request()); } } diff --git a/plugin/src/main/java/org/elasticsearch/xpack/ml/action/GetJobsAction.java b/plugin/src/main/java/org/elasticsearch/xpack/ml/action/GetJobsAction.java index 05139cd532c..ee8ac8c3981 100644 --- a/plugin/src/main/java/org/elasticsearch/xpack/ml/action/GetJobsAction.java +++ b/plugin/src/main/java/org/elasticsearch/xpack/ml/action/GetJobsAction.java @@ -65,10 +65,13 @@ public class GetJobsAction extends Action implements ToXContentObject { + public static class Request extends ActionRequest implements ToXContentObject { public static Request parseRequest(String filterId, XContentParser parser) { MlFilter.Builder filter = MlFilter.PARSER.apply(parser, null); @@ -132,10 +132,10 @@ public class PutFilterAction extends Action { + public static class RequestBuilder extends ActionRequestBuilder { - public RequestBuilder(ElasticsearchClient client, PutFilterAction action) { - super(client, action, new Request()); + public RequestBuilder(ElasticsearchClient client) { + super(client, INSTANCE, new Request()); } }