Skip to content

Commit d0ca91c

Browse files
committed
Move into hlrc and fix comment
1 parent d5353cb commit d0ca91c

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

client/rest-high-level/src/main/java/org/elasticsearch/client/RestHighLevelClient.java

+4-10
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@
6666
import org.elasticsearch.index.rankeval.RankEvalRequest;
6767
import org.elasticsearch.index.rankeval.RankEvalResponse;
6868
import org.elasticsearch.plugins.spi.NamedXContentProvider;
69-
import org.elasticsearch.protocol.xpack.common.Validatable;
70-
import org.elasticsearch.protocol.xpack.common.ValidationException;
7169
import org.elasticsearch.rest.BytesRestResponse;
7270
import org.elasticsearch.rest.RestStatus;
7371
import org.elasticsearch.script.mustache.MultiSearchTemplateRequest;
@@ -953,8 +951,7 @@ public final void fieldCapsAsync(FieldCapabilitiesRequest fieldCapabilitiesReque
953951

954952
/**
955953
* @deprecated If creating a new HLRC ReST API call, consider creating new actions instead of reusing server actions. The Validation
956-
* layer has been added to the ReST client, and requests should extend
957-
* {@link org.elasticsearch.protocol.xpack.common.ValidationException} instead of `ActionRequest`.
954+
* layer has been added to the ReST client, and requests should extend {@link Validatable} instead of `ActionRequest`.
958955
*/
959956
@Deprecated
960957
protected final <Req extends ActionRequest, Resp> Resp performRequestAndParseEntity(Req request,
@@ -980,8 +977,7 @@ protected final <Req extends Validatable, Resp> Resp performRequestAndParseEntit
980977

981978
/**
982979
* @deprecated If creating a new HLRC ReST API call, consider creating new actions instead of reusing server actions. The Validation
983-
* layer has been added to the ReST client, and requests should extend
984-
* {@link org.elasticsearch.protocol.xpack.common.ValidationException} instead of `ActionRequest`.
980+
* layer has been added to the ReST client, and requests should extend {@link Validatable} instead of `ActionRequest`.
985981
*/
986982
@Deprecated
987983
protected final <Req extends ActionRequest, Resp> Resp performRequest(Req request,
@@ -1048,8 +1044,7 @@ private <Req, Resp> Resp internalPerformRequest(Req request,
10481044

10491045
/**
10501046
* @deprecated If creating a new HLRC ReST API call, consider creating new actions instead of reusing server actions. The Validation
1051-
* layer has been added to the ReST client, and requests should extend
1052-
* {@link org.elasticsearch.protocol.xpack.common.ValidationException} instead of `ActionRequest`.
1047+
* layer has been added to the ReST client, and requests should extend {@link Validatable} instead of `ActionRequest`.
10531048
*/
10541049
@Deprecated
10551050
protected final <Req extends ActionRequest, Resp> void performRequestAsyncAndParseEntity(Req request,
@@ -1076,8 +1071,7 @@ protected final <Req extends Validatable, Resp> void performRequestAsyncAndParse
10761071

10771072
/**
10781073
* @deprecated If creating a new HLRC ReST API call, consider creating new actions instead of reusing server actions. The Validation
1079-
* layer has been added to the ReST client, and requests should extend
1080-
* {@link org.elasticsearch.protocol.xpack.common.ValidationException} instead of `ActionRequest`.
1074+
* layer has been added to the ReST client, and requests should extend {@link Validatable} instead of `ActionRequest`.
10811075
*/
10821076
@Deprecated
10831077
protected final <Req extends ActionRequest, Resp> void performRequestAsync(Req request,

x-pack/protocol/src/main/java/org/elasticsearch/protocol/xpack/common/Validatable.java renamed to client/rest-high-level/src/main/java/org/elasticsearch/client/Validatable.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19-
package org.elasticsearch.protocol.xpack.common;
19+
package org.elasticsearch.client;
2020

2121
/**
2222
* Defines a validation layer for Requests.
+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19-
package org.elasticsearch.protocol.xpack.common;
19+
package org.elasticsearch.client;
2020

2121
import java.util.ArrayList;
2222
import java.util.List;

0 commit comments

Comments
 (0)